Remove initial server health check and bump Harbor versions
All checks were successful
Build and Deploy Gateway / build-and-push (push) Successful in 15s
Build and Deploy Gateway / deploy (push) Successful in 12s

This commit is contained in:
2026-07-13 10:31:01 +03:00
parent 90447de0aa
commit 8c19f2cba9
17 changed files with 398 additions and 53 deletions

View File

@@ -54,3 +54,25 @@ test('removed selected server requires an explicit new choice', () => {
assert.equal(selectRefreshedServer(before[1].id, before, after), '');
assert.equal(selectRefreshedServer('', before, after), '');
});
test('provider placeholders never become selectable servers', () => {
const disabled = outbound('🚫 Subscription disabled', '0.0.0.0', 1);
const trafficExhausted = outbound('🚫 Traffic limit exceeded', '0.0.0.0', 1);
assert.throws(
() => parse([disabled]),
(error) => error.code === 'SUBSCRIPTION_DISABLED',
);
assert.throws(
() => parse([outbound('Account error', '::', 1)]),
(error) => error.code === 'SUBSCRIPTION_REJECTED',
);
assert.throws(
() => parse([trafficExhausted]),
(error) => error.code === 'SUBSCRIPTION_TRAFFIC_EXHAUSTED',
);
const parsed = parse([disabled, outbound('Amsterdam', 'nl.example')]);
assert.deepEqual(parsed.servers.map((server) => server.label), ['Amsterdam']);
assert.equal(parsed.config.outbounds.length, 1);
});