Update Harbor client and gateway integration workflows
This commit is contained in:
@@ -32,6 +32,12 @@ test('control uses the dataplane socket protocol', async () => {
|
||||
[{ id: 'custom-test', url: 'https://example.com' }],
|
||||
'site:custom-test',
|
||||
);
|
||||
await client.checkConfig({ outbounds: [] });
|
||||
await client.runFailoverProbe('primary', [], 'site:youtube', 9_000);
|
||||
await client.readFailoverSelector();
|
||||
await client.selectFailoverRole('reserve');
|
||||
await client.setFailoverActivityEnabled(true);
|
||||
await client.readFailoverActivity(1024);
|
||||
assert.equal(client.running, true);
|
||||
await client.restart();
|
||||
assert.equal((await client.stop()).running, false);
|
||||
@@ -44,6 +50,12 @@ test('control uses the dataplane socket protocol', async () => {
|
||||
'GET /device-policy /run/dataplane.sock',
|
||||
'PUT /device-policy /run/dataplane.sock',
|
||||
'POST /diagnostics/connectivity /run/dataplane.sock',
|
||||
'POST /config/check /run/dataplane.sock',
|
||||
'POST /failover/probe /run/dataplane.sock',
|
||||
'GET /failover/selector /run/dataplane.sock',
|
||||
'PUT /failover/selector /run/dataplane.sock',
|
||||
'PUT /failover/activity /run/dataplane.sock',
|
||||
'POST /failover/activity/read /run/dataplane.sock',
|
||||
'POST /restart /run/dataplane.sock',
|
||||
'POST /stop /run/dataplane.sock',
|
||||
]);
|
||||
@@ -53,6 +65,10 @@ test('control uses the dataplane socket protocol', async () => {
|
||||
target: 'site:custom-test',
|
||||
});
|
||||
assert.equal(requests[7].timeoutMs, 25_000);
|
||||
assert.deepEqual(requests[8].body, { config: { outbounds: [] } });
|
||||
assert.deepEqual(requests[9].body, { role: 'primary', services: [], target: 'site:youtube', timeoutMs: 9_000 });
|
||||
assert.equal(requests[9].timeoutMs, 19_000);
|
||||
assert.deepEqual(requests[11].body, { role: 'reserve' });
|
||||
});
|
||||
|
||||
test('connectivity diagnostics expose a retryable domain error', async () => {
|
||||
|
||||
Reference in New Issue
Block a user