2018-05-30 10:13:16 -06:00
|
|
|
import ./make-test.nix ({ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "morty";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ leenaars ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes =
|
|
|
|
{ mortyProxyWithKey =
|
|
|
|
|
2018-07-20 14:56:59 -06:00
|
|
|
{ ... }:
|
2018-05-30 10:13:16 -06:00
|
|
|
{ services.morty = {
|
|
|
|
enable = true;
|
|
|
|
key = "78a9cd0cfee20c672f78427efb2a2a96036027f0";
|
|
|
|
port = 3001;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
2018-07-20 14:56:59 -06:00
|
|
|
{ ... }:
|
2018-05-30 10:13:16 -06:00
|
|
|
''
|
2018-06-13 04:08:15 -06:00
|
|
|
$mortyProxyWithKey->waitForUnit("default.target");
|
2018-05-30 10:13:16 -06:00
|
|
|
|
2018-06-13 04:08:15 -06:00
|
|
|
$mortyProxyWithKey->waitForOpenPort(3001);
|
2018-05-30 10:13:16 -06:00
|
|
|
$mortyProxyWithKey->succeed("curl -L 127.0.0.1:3001 | grep MortyProxy");
|
|
|
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
})
|