Update Harbor client and gateway integration workflows
This commit is contained in:
@@ -506,3 +506,18 @@ test('a targeted custom row validates and samples only that service', async () =
|
||||
assert.deepEqual(calls, ['https://second.example/', 'https://second.example/', 'https://second.example/']);
|
||||
assert.equal(result.direct.sites[0].latencyMs, 120);
|
||||
});
|
||||
|
||||
test('failover VPN checks apply their per-service timeout to curl', async () => {
|
||||
const calls = [];
|
||||
await createConnectivityDiagnosticsService({
|
||||
proxyPort: 18080,
|
||||
execute: async (args) => { calls.push(args); return response(); },
|
||||
}).runVpn({ target: 'site:youtube', timeoutMs: 9_000 });
|
||||
|
||||
assert.equal(calls.length, 3);
|
||||
for (const args of calls) {
|
||||
assert.equal(args[args.indexOf('--max-time') + 1], '9');
|
||||
assert.equal(args[args.indexOf('--connect-timeout') + 1], '3');
|
||||
assert.ok(args.includes('http://127.0.0.1:18080'));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user