2019-11-06 07:58:22 +01:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }:
|
2018-05-30 18:13:16 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
name = "morty";
|
2021-01-10 20:08:30 +01:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2018-05-30 18:13:16 +02:00
|
|
|
maintainers = [ leenaars ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes =
|
|
|
|
{ mortyProxyWithKey =
|
|
|
|
|
2018-07-20 22:56:59 +02:00
|
|
|
{ ... }:
|
2018-05-30 18:13:16 +02:00
|
|
|
{ services.morty = {
|
|
|
|
enable = true;
|
2020-11-22 08:23:53 +01:00
|
|
|
key = "78a9cd0cfee20c672f78427efb2a2a96036027f0";
|
|
|
|
port = 3001;
|
|
|
|
};
|
2018-05-30 18:13:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
2018-07-20 22:56:59 +02:00
|
|
|
{ ... }:
|
2018-05-30 18:13:16 +02:00
|
|
|
''
|
2019-11-06 07:58:22 +01:00
|
|
|
mortyProxyWithKey.wait_for_unit("default.target")
|
|
|
|
mortyProxyWithKey.wait_for_open_port(3001)
|
2020-09-16 17:03:37 +02:00
|
|
|
mortyProxyWithKey.succeed("curl -fL 127.0.0.1:3001 | grep MortyProxy")
|
2018-05-30 18:13:16 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
})
|