diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-06-29 04:17:38 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-06-30 22:50:08 +0900 |
commit | ce910fca8841061e86bfbfd15f8976132c2bfd78 (patch) | |
tree | e57ce0a707736319b622d72559925d10d9061502 /nixos/tests/web-apps | |
parent | f5f338c8468a84b624980c2fd2cf2fa32d14741b (diff) |
nixos/tests: add phlactery
Diffstat (limited to 'nixos/tests/web-apps')
-rw-r--r-- | nixos/tests/web-apps/phylactery.nix | 20 |
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 ]; +}) |