nixos/pppd: port test to python
This commit is contained in:
parent
a2429cffa3
commit
24b540d3ce
|
@ -1,4 +1,4 @@
|
||||||
import ./make-test.nix (
|
import ./make-test-python.nix (
|
||||||
let
|
let
|
||||||
chap-secrets = {
|
chap-secrets = {
|
||||||
text = ''"flynn" * "reindeerflotilla" *'';
|
text = ''"flynn" * "reindeerflotilla" *'';
|
||||||
|
@ -53,10 +53,10 @@ import ./make-test.nix (
|
||||||
environment.etc."ppp/chap-secrets" = chap-secrets;
|
environment.etc."ppp/chap-secrets" = chap-secrets;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
startAll;
|
start_all()
|
||||||
$client->waitUntilSucceeds("ping -c1 -W1 192.0.2.1");
|
client.wait_until_succeeds("ping -c1 -W1 192.0.2.1")
|
||||||
$server->waitUntilSucceeds("ping -c1 -W1 192.0.2.2");
|
server.wait_until_succeeds("ping -c1 -W1 192.0.2.2")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue