2020-04-24 23:36:52 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "morty";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ leenaars ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes =
|
|
|
|
{ mortyProxyWithKey =
|
|
|
|
|
|
|
|
{ ... }:
|
|
|
|
{ services.morty = {
|
|
|
|
enable = true;
|
2020-11-24 20:58:05 +00:00
|
|
|
key = "78a9cd0cfee20c672f78427efb2a2a96036027f0";
|
|
|
|
port = 3001;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
{ ... }:
|
|
|
|
''
|
|
|
|
mortyProxyWithKey.wait_for_unit("default.target")
|
|
|
|
mortyProxyWithKey.wait_for_open_port(3001)
|
2020-10-27 00:29:36 +00:00
|
|
|
mortyProxyWithKey.succeed("curl -fL 127.0.0.1:3001 | grep MortyProxy")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
})
|