about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/komga.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/tests/komga.nix')
-rw-r--r--nixpkgs/nixos/tests/komga.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/komga.nix b/nixpkgs/nixos/tests/komga.nix
new file mode 100644
index 000000000000..02db50ef25f7
--- /dev/null
+++ b/nixpkgs/nixos/tests/komga.nix
@@ -0,0 +1,22 @@
+import ./make-test-python.nix ({ lib, ... }:
+
+with lib;
+
+{
+  name = "komga";
+  meta.maintainers = with maintainers; [ govanify ];
+
+  nodes.machine =
+    { pkgs, ... }:
+    { services.komga = {
+        enable = true;
+        port = 1234;
+      };
+    };
+
+  testScript = ''
+    machine.wait_for_unit("komga.service")
+    machine.wait_for_open_port(1234)
+    machine.succeed("curl --fail http://localhost:1234/")
+  '';
+})