diff options
author | Michiel Leenaars <ml.software@leenaa.rs> | 2018-05-30 18:13:16 +0200 |
---|---|---|
committer | Michiel Leenaars <ml.software@leenaa.rs> | 2018-05-30 18:13:53 +0200 |
commit | e9ff80d24a14d786e68141cf18e40edcc8e58fa8 (patch) | |
tree | e8d6558628e2777ed6e5ec96e05fb652bb695b9a /nixos/tests/morty.nix | |
parent | f12f058a85b8bb1e48d4f7fec69637b93cea747d (diff) | |
download | nixpkgs-e9ff80d24a14d786e68141cf18e40edcc8e58fa8.tar nixpkgs-e9ff80d24a14d786e68141cf18e40edcc8e58fa8.tar.gz nixpkgs-e9ff80d24a14d786e68141cf18e40edcc8e58fa8.tar.bz2 nixpkgs-e9ff80d24a14d786e68141cf18e40edcc8e58fa8.tar.lz nixpkgs-e9ff80d24a14d786e68141cf18e40edcc8e58fa8.tar.xz nixpkgs-e9ff80d24a14d786e68141cf18e40edcc8e58fa8.tar.zst nixpkgs-e9ff80d24a14d786e68141cf18e40edcc8e58fa8.zip |
morty: init as service
Diffstat (limited to 'nixos/tests/morty.nix')
-rw-r--r-- | nixos/tests/morty.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixos/tests/morty.nix b/nixos/tests/morty.nix new file mode 100644 index 00000000000..e052ee98806 --- /dev/null +++ b/nixos/tests/morty.nix @@ -0,0 +1,32 @@ +import ./make-test.nix ({ pkgs, ... }: + +{ + name = "morty"; + meta = with pkgs.stdenv.lib.maintainers; { + maintainers = [ leenaars ]; + }; + + nodes = + { mortyProxyWithKey = + + { config, pkgs, ... }: + { services.morty = { + enable = true; + key = "78a9cd0cfee20c672f78427efb2a2a96036027f0"; + port = 3001; + }; + }; + + }; + + testScript = + { nodes , ... }: + '' + startAll; + + $mortyProxyWithKey->waitForUnit("morty"); + $mortyProxyWithKey->succeed("curl -L 127.0.0.1:3001 | grep MortyProxy"); + + ''; + +}) |