Add targeted connectivity diagnostics with sampled results
Build and Deploy Gateway / build-and-push (push) Successful in 15s
Build and Deploy Gateway / deploy (push) Successful in 13s

This commit is contained in:
2026-08-07 22:11:04 +03:00
parent b2a2ed7104
commit e9433e754f
12 changed files with 359 additions and 114 deletions
+6 -2
View File
@@ -26,7 +26,10 @@ 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([{ id: 'custom-test', url: 'https://example.com' }]);
await client.runConnectivityDiagnostics(
[{ id: 'custom-test', url: 'https://example.com' }],
'site:custom-test',
);
assert.equal(client.running, true);
await client.restart();
assert.equal((await client.stop()).running, false);
@@ -44,8 +47,9 @@ test('control uses the dataplane socket protocol', async () => {
assert.deepEqual(requests[5].body, { devices: [{ id: 'dev_0011223344556677' }] });
assert.deepEqual(requests[6].body, {
services: [{ id: 'custom-test', url: 'https://example.com' }],
target: 'site:custom-test',
});
assert.equal(requests[6].timeoutMs, 15_000);
assert.equal(requests[6].timeoutMs, 25_000);
});
test('connectivity diagnostics expose a retryable domain error', async () => {