Implement Harbor gateway device ecosystem support
This commit is contained in:
@@ -112,6 +112,15 @@ test('typed endpoint facade preserves exact request contracts and raw payload id
|
||||
[() => api.devices.setPolicy('dev_1', 'direct', 9), '/api/devices/dev_1/policy', {
|
||||
method: 'PUT', body: JSON.stringify({ mode: 'direct', expectedRevision: 9 }),
|
||||
}],
|
||||
[() => api.devices.createTag('Дом', 10), '/api/device-tags', {
|
||||
method: 'POST', body: JSON.stringify({ name: 'Дом', expectedRevision: 10 }),
|
||||
}],
|
||||
[() => api.devices.renameTag('tag_1', 'Работа', 11), '/api/device-tags/tag_1', {
|
||||
method: 'PUT', body: JSON.stringify({ name: 'Работа', expectedRevision: 11 }),
|
||||
}],
|
||||
[() => api.devices.deleteTag('tag_1', 12), '/api/device-tags/tag_1', {
|
||||
method: 'DELETE', body: JSON.stringify({ expectedRevision: 12 }),
|
||||
}],
|
||||
[() => api.diagnostics.connectivity(), '/api/diagnostics/connectivity', {
|
||||
method: 'POST', body: JSON.stringify({ target: null }),
|
||||
}],
|
||||
|
||||
Reference in New Issue
Block a user