about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorLitchi Pi <litchi.pi@proton.me>2024-02-01 08:30:57 +0100
committerAtemu <atemu.main@gmail.com>2024-02-28 14:30:58 +0100
commit30c38e413f585a869a171653e666d5badf03c2d5 (patch)
tree4f1a618c84de56a0437b048ec27f7ab684b2f029 /nixos/tests
parent29cd3214eb4a54849af3ba69b579e22caf852d5c (diff)
nixos/mealie: init tests
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
(cherry picked from commit aeb79caaf67e8aa73ac7b4b0a477f38b4d0cab09)
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/all-tests.nix1
-rw-r--r--nixos/tests/mealie.nix24
2 files changed, 25 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index ba20943bc7d5b..cdde035e071ab 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -500,6 +500,7 @@ in {
   matrix-synapse = handleTest ./matrix/synapse.nix {};
   matrix-synapse-workers = handleTest ./matrix/synapse-workers.nix {};
   mattermost = handleTest ./mattermost.nix {};
+  mealie = handleTest ./mealie.nix {};
   mediamtx = handleTest ./mediamtx.nix {};
   mediatomb = handleTest ./mediatomb.nix {};
   mediawiki = handleTest ./mediawiki.nix {};
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")
+  '';
+})