diff options
Diffstat (limited to 'nixpkgs/nixos/tests/morty.nix')
-rw-r--r-- | nixpkgs/nixos/tests/morty.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/morty.nix b/nixpkgs/nixos/tests/morty.nix new file mode 100644 index 000000000000..9909596820d3 --- /dev/null +++ b/nixpkgs/nixos/tests/morty.nix @@ -0,0 +1,30 @@ +import ./make-test-python.nix ({ pkgs, ... }: + +{ + name = "morty"; + meta = with pkgs.lib.maintainers; { + maintainers = [ leenaars ]; + }; + + nodes = + { mortyProxyWithKey = + + { ... }: + { services.morty = { + enable = true; + key = "78a9cd0cfee20c672f78427efb2a2a96036027f0"; + port = 3001; + }; + }; + + }; + + testScript = + { ... }: + '' + mortyProxyWithKey.wait_for_unit("default.target") + mortyProxyWithKey.wait_for_open_port(3001) + mortyProxyWithKey.succeed("curl -fL 127.0.0.1:3001 | grep MortyProxy") + ''; + +}) |