Update Harbor client and gateway functionality
This commit is contained in:
@@ -93,11 +93,12 @@ test('typed endpoint facade preserves exact request contracts and raw payload id
|
||||
[() => api.gatewayAuto.setEnabled(true), '/api/gateway-auto', {
|
||||
method: 'POST', body: JSON.stringify({ enabled: true }),
|
||||
}],
|
||||
[() => api.routeRules.update([{ type: 'domain', value: 'example.com' }], 7), '/api/route-rules', {
|
||||
[() => api.routeRules.update([{ type: 'domain', value: 'example.com', enabled: true, outbound: 'vpn' }], 7), '/api/route-rules/v2', {
|
||||
method: 'PUT',
|
||||
body: JSON.stringify({
|
||||
rules: [{ type: 'domain', value: 'example.com' }],
|
||||
rules: [{ type: 'domain', value: 'example.com', enabled: true, outbound: 'vpn' }],
|
||||
expectedRulesRevision: 7,
|
||||
rulesContractVersion: 2,
|
||||
}),
|
||||
}],
|
||||
[() => api.devices.list(), '/api/devices', {}],
|
||||
|
||||
Reference in New Issue
Block a user