mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
33 lines
566 B
Nix
33 lines
566 B
Nix
import ./make-test.nix ({ pkgs, ... }:
|
|
|
|
{
|
|
name = "morty";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ leenaars ];
|
|
};
|
|
|
|
nodes =
|
|
{ mortyProxyWithKey =
|
|
|
|
{ ... }:
|
|
{ services.morty = {
|
|
enable = true;
|
|
key = "78a9cd0cfee20c672f78427efb2a2a96036027f0";
|
|
port = 3001;
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
testScript =
|
|
{ ... }:
|
|
''
|
|
$mortyProxyWithKey->waitForUnit("default.target");
|
|
|
|
$mortyProxyWithKey->waitForOpenPort(3001);
|
|
$mortyProxyWithKey->succeed("curl -L 127.0.0.1:3001 | grep MortyProxy");
|
|
|
|
'';
|
|
|
|
})
|