Skip to content

Commit

Permalink
nixos/tests/frigate: Add check for unauthenticated API
Browse files Browse the repository at this point in the history
  • Loading branch information
fleaz committed Jan 4, 2025
1 parent 3c30d81 commit 22581ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/tests/frigate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ import ./make-test-python.nix (
# login and store session
machine.log(machine.succeed(f"http --check-status --session=frigate post http://localhost/api/login user=admin password={password}"))
# make authenticated api requested
# make authenticated api request
machine.log(machine.succeed("http --check-status --session=frigate get http://localhost/api/version"))
# make unauthenticated api request
machine.log(machine.succeed("http --check-status get http://localhost:5000/api/version"))
# wait for a recording to appear
machine.wait_for_file("/var/cache/frigate/test@*.mp4")
'';
Expand Down

0 comments on commit 22581ea

Please sign in to comment.