about summary refs log tree commit diff
path: root/nixos/tests/web-apps
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-06-29 04:17:38 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-06-30 22:50:08 +0900
commitce910fca8841061e86bfbfd15f8976132c2bfd78 (patch)
treee57ce0a707736319b622d72559925d10d9061502 /nixos/tests/web-apps
parentf5f338c8468a84b624980c2fd2cf2fa32d14741b (diff)
nixos/tests: add phlactery
Diffstat (limited to 'nixos/tests/web-apps')
-rw-r--r--nixos/tests/web-apps/phylactery.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixos/tests/web-apps/phylactery.nix b/nixos/tests/web-apps/phylactery.nix
new file mode 100644
index 0000000000000..cf2689d2300d3
--- /dev/null
+++ b/nixos/tests/web-apps/phylactery.nix
@@ -0,0 +1,20 @@
+import ../make-test-python.nix ({ pkgs, lib, ... }: {
+  name = "phylactery";
+
+  nodes.machine = { ... }: {
+    services.phylactery = rec {
+      enable = true;
+      port = 8080;
+      library = "/tmp";
+    };
+  };
+
+  testScript = ''
+    start_all()
+    machine.wait_for_unit('phylactery')
+    machine.wait_for_open_port(8080)
+    machine.wait_until_succeeds('curl localhost:8080')
+  '';
+
+  meta.maintainers = with lib.maintainers; [ McSinyx ];
+})