1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00
nixpkgs/nixos/tests/morty.nix

33 lines
546 B
Nix
Raw Normal View History

2018-05-30 17:13:16 +01:00
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");
'';
})