about summary refs log tree commit diff
path: root/nixos/tests/mealie.nix
diff options
context:
space:
mode:
authorLitchi Pi <litchi.pi@proton.me>2024-02-01 08:30:57 +0100
committerLitchi Pi <litchi.pi@proton.me>2024-02-23 07:15:44 +0100
commitaeb79caaf67e8aa73ac7b4b0a477f38b4d0cab09 (patch)
tree21fb1676dc28788ec5e3512bb6e5457d2319c187 /nixos/tests/mealie.nix
parentba9431edf8c436efebe139ebb7aa5182952078da (diff)
nixos/mealie: init tests
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
Diffstat (limited to 'nixos/tests/mealie.nix')
-rw-r--r--nixos/tests/mealie.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nixos/tests/mealie.nix b/nixos/tests/mealie.nix
new file mode 100644
index 0000000000000..88f749c712948
--- /dev/null
+++ b/nixos/tests/mealie.nix
@@ -0,0 +1,24 @@
+import ./make-test-python.nix ({ pkgs, ...} :
+
+{
+  name = "mealie";
+  meta = with pkgs.lib.maintainers; {
+    maintainers = [ litchipi ];
+  };
+
+  nodes = {
+    server = {
+      services.mealie = {
+        enable = true;
+        port = 9001;
+      };
+    };
+  };
+
+  testScript = ''
+    start_all()
+    server.wait_for_unit("mealie.service")
+    server.wait_for_open_port(9001)
+    server.succeed("curl --fail http://localhost:9001")
+  '';
+})