- Introduce HTTP tests for `/modules/self-serve/lane/force/machine/enable` and `/disable`. - Add `ForceMachineRelayBypassTest` to validate bypass behavior of manual gating restrictions.
17 lines
437 B
HTTP
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);
|
|
});
|
|
%}
|