diff options
author | ckie <25263210+ckiee@users.noreply.github.com> | 2022-06-30 18:29:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 18:29:19 +0300 |
commit | a8c2879f43db911e91ee74d8efe3a11a06e7e839 (patch) | |
tree | fc1cf6daba5b816065f6eb2260cba9817edfd3cc /nixos/tests | |
parent | be443e9adb203d5cf84b51710075a9aa57fa86fe (diff) | |
parent | ce910fca8841061e86bfbfd15f8976132c2bfd78 (diff) | |
download | nixpkgs-a8c2879f43db911e91ee74d8efe3a11a06e7e839.tar nixpkgs-a8c2879f43db911e91ee74d8efe3a11a06e7e839.tar.gz nixpkgs-a8c2879f43db911e91ee74d8efe3a11a06e7e839.tar.bz2 nixpkgs-a8c2879f43db911e91ee74d8efe3a11a06e7e839.tar.lz nixpkgs-a8c2879f43db911e91ee74d8efe3a11a06e7e839.tar.xz nixpkgs-a8c2879f43db911e91ee74d8efe3a11a06e7e839.tar.zst nixpkgs-a8c2879f43db911e91ee74d8efe3a11a06e7e839.zip |
Merge pull request #179425 from McSinyx/phylactery
phylactery: init at 0.1.1
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/web-apps/phylactery.nix | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 6a72130be5f..162e117796a 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -426,6 +426,7 @@ in { php = handleTest ./php {}; php80 = handleTest ./php { php = pkgs.php80; }; php81 = handleTest ./php { php = pkgs.php81; }; + phylactery = handleTest ./web-apps/phylactery.nix {}; pict-rs = handleTest ./pict-rs.nix {}; pinnwand = handleTest ./pinnwand.nix {}; plasma5 = handleTest ./plasma5.nix {}; diff --git a/nixos/tests/web-apps/phylactery.nix b/nixos/tests/web-apps/phylactery.nix new file mode 100644 index 00000000000..cf2689d2300 --- /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 ]; +}) |