nixos/morty: port test to python
This commit is contained in:
parent
38b2e18faa
commit
650ccb604b
|
@ -1,4 +1,4 @@
|
||||||
import ./make-test.nix ({ pkgs, ... }:
|
import ./make-test-python.nix ({ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "morty";
|
name = "morty";
|
||||||
|
@ -22,11 +22,9 @@ import ./make-test.nix ({ pkgs, ... }:
|
||||||
testScript =
|
testScript =
|
||||||
{ ... }:
|
{ ... }:
|
||||||
''
|
''
|
||||||
$mortyProxyWithKey->waitForUnit("default.target");
|
mortyProxyWithKey.wait_for_unit("default.target")
|
||||||
|
mortyProxyWithKey.wait_for_open_port(3001)
|
||||||
$mortyProxyWithKey->waitForOpenPort(3001);
|
mortyProxyWithKey.succeed("curl -L 127.0.0.1:3001 | grep MortyProxy")
|
||||||
$mortyProxyWithKey->succeed("curl -L 127.0.0.1:3001 | grep MortyProxy");
|
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue