Update Harbor client and gateway integration workflows
Build and Deploy Gateway / build-and-push (push) Failing after 14s
Build and Deploy Gateway / deploy (push) Has been skipped

This commit is contained in:
2026-08-19 18:16:10 +03:00
parent 416b2b294a
commit daec12e013
63 changed files with 5016 additions and 108 deletions
+16
View File
@@ -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 () => {