Update VPN client connection flow
This commit is contained in:
@@ -26,7 +26,7 @@ test('control uses the dataplane socket protocol', async () => {
|
||||
assert.equal(traffic.running, true);
|
||||
await client.observeDevicePolicy();
|
||||
await client.applyDevicePolicies([{ id: 'dev_0011223344556677' }]);
|
||||
await client.runConnectivityDiagnostics();
|
||||
await client.runConnectivityDiagnostics([{ id: 'custom-test', url: 'https://example.com' }]);
|
||||
assert.equal(client.running, true);
|
||||
await client.restart();
|
||||
assert.equal((await client.stop()).running, false);
|
||||
@@ -42,6 +42,9 @@ test('control uses the dataplane socket protocol', async () => {
|
||||
'POST /stop /run/dataplane.sock',
|
||||
]);
|
||||
assert.deepEqual(requests[5].body, { devices: [{ id: 'dev_0011223344556677' }] });
|
||||
assert.deepEqual(requests[6].body, {
|
||||
services: [{ id: 'custom-test', url: 'https://example.com' }],
|
||||
});
|
||||
assert.equal(requests[6].timeoutMs, 15_000);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user