diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2024-02-07 00:09:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-07 00:09:42 +0100 |
commit | 7317fb9f77e9748a384b9e45e6e887d4d72612ce (patch) | |
tree | e934d4811ed3ca4fafb3e125ea0ffe4917fd5a15 /nixos/tests | |
parent | e8f25e03718e0b4dca7f5db66364ebc4f62159e1 (diff) | |
parent | 250078ceba19d576437e46f8e1c1d19acf5dfa78 (diff) |
Merge pull request #286287 from fleaz/frigate-update
frigate: 0.12.1 -> 0.13.1
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/frigate.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/nixos/tests/frigate.nix b/nixos/tests/frigate.nix index 836fe0d063f87..03bd2b89611d5 100644 --- a/nixos/tests/frigate.nix +++ b/nixos/tests/frigate.nix @@ -41,6 +41,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : serviceConfig = { DynamicUser = true; ExecStart = "${lib.getBin pkgs.ffmpeg-headless}/bin/ffmpeg -re -f lavfi -i smptebars=size=800x600:rate=10 -f mpegts -listen 1 http://0.0.0.0:8080"; + Restart = "always"; }; }; }; @@ -51,10 +52,14 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : machine.wait_for_unit("frigate.service") + # Frigate startup machine.wait_for_open_port(5001) - machine.succeed("curl http://localhost:5001") + # nginx startup + machine.wait_for_open_port(80) - machine.wait_for_file("/var/cache/frigate/test-*.mp4") + machine.succeed("curl http://localhost") + + machine.wait_for_file("/var/cache/frigate/test@*.mp4") ''; }) |