about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorfleaz <mail@felixbreidenstein.de>2024-02-01 23:09:56 +0100
committerfleaz <mail@felixbreidenstein.de>2024-02-06 22:54:22 +0100
commit250078ceba19d576437e46f8e1c1d19acf5dfa78 (patch)
tree792f40aae66a290e7f1b8c0d2e2beedca25b16f2 /nixos/tests
parentb6eaf6269aa88a51cd6124add36afe99aa72af97 (diff)
frigate: 0.12.1 -> 0.13.1
Changelog:
https://github.com/blakeblackshear/frigate/releases/tag/v0.13.0
https://github.com/blakeblackshear/frigate/releases/tag/v0.13.1

Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/frigate.nix9
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")
   '';
 })