about summary refs log tree commit diff
path: root/nixos/tests/tika.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/tika.nix')
-rw-r--r--nixos/tests/tika.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/tika.nix b/nixos/tests/tika.nix
new file mode 100644
index 0000000000000..61a3a6ad22aed
--- /dev/null
+++ b/nixos/tests/tika.nix
@@ -0,0 +1,21 @@
+{ lib, ... }:
+
+{
+  name = "tika-server";
+
+  nodes = {
+    machine = { pkgs, ... }: {
+      services.tika = {
+        enable = true;
+      };
+    };
+  };
+
+  testScript = ''
+    machine.start()
+    machine.wait_for_unit("tika.service")
+    machine.wait_for_open_port(9998)
+  '';
+
+  meta.maintainers = [ lib.maintainers.drupol ];
+}