- Introduce HTTP tests for `/modules/self-serve/lane/force/machine/enable` and `/disable`. - Add `ForceMachineRelayBypassTest` to validate bypass behavior of manual gating restrictions.
15 lines
392 B
HTTP
15 lines
392 B
HTTP
### Force disable MACHINE relay (superusers only) -> expect 200
|
|
POST http://localhost/modules/self-serve/lane/force/machine/disable
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
{
|
|
"lane_id": 1
|
|
}
|
|
|
|
> {%
|
|
client.test("Force disabling MACHINE should succeed (200)", function() {
|
|
client.assert(response.status === 200, "Expected 200 OK, got " + response.status);
|
|
});
|
|
%}
|