Files
api/services/nginx/app/tests/HTTP/self-serve-force-machine-enable.http
T
Jeppe Bundgaard aaaaedc70c Add tests for forced MACHINE relay control endpoints
- Introduce HTTP tests for `/modules/self-serve/lane/force/machine/enable` and `/disable`.
- Add `ForceMachineRelayBypassTest` to validate bypass behavior of manual gating restrictions.
2026-02-19 11:07:44 +01:00

17 lines
437 B
HTTP

### Force enable MACHINE relay (superusers only) -> expect 200
POST http://localhost/modules/self-serve/lane/force/machine/enable
Content-Type: application/json
Authorization: Bearer {{admin_token}}
{
"lane_id": 1,
"duration": 2,
"license_plate": "TEST1234"
}
> {%
client.test("Force enabling MACHINE should succeed (200)", function() {
client.assert(response.status === 200, "Expected 200 OK, got " + response.status);
});
%}