nixosTests.leaps: Port tests to python
This commit is contained in:
parent
40ed6896e3
commit
0de0b6a281
@ -1,4 +1,4 @@
|
||||
import ./make-test.nix ({ pkgs, ... }:
|
||||
import ./make-test-python.nix ({ pkgs, ... }:
|
||||
|
||||
{
|
||||
name = "leaps";
|
||||
@ -22,9 +22,11 @@ import ./make-test.nix ({ pkgs, ... }:
|
||||
|
||||
testScript =
|
||||
''
|
||||
startAll;
|
||||
$server->waitForOpenPort(6666);
|
||||
$client->waitForUnit("network.target");
|
||||
$client->succeed("${pkgs.curl}/bin/curl http://server:6666/leaps/ | grep -i 'leaps'");
|
||||
start_all()
|
||||
server.wait_for_open_port(6666)
|
||||
client.wait_for_unit("network.target")
|
||||
assert "leaps" in client.succeed(
|
||||
"${pkgs.curl}/bin/curl http://server:6666/leaps/"
|
||||
)
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user