mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 17:44:44 +00:00
nixosTests.nghttpx: Port tests to python
This commit is contained in:
parent
1f3f9fd3a2
commit
e51673bb77
@ -1,7 +1,7 @@
|
|||||||
let
|
let
|
||||||
nginxRoot = "/run/nginx";
|
nginxRoot = "/run/nginx";
|
||||||
in
|
in
|
||||||
import ./make-test.nix ({...}: {
|
import ./make-test-python.nix ({...}: {
|
||||||
name = "nghttpx";
|
name = "nghttpx";
|
||||||
nodes = {
|
nodes = {
|
||||||
webserver = {
|
webserver = {
|
||||||
@ -52,10 +52,10 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
startAll;
|
start_all()
|
||||||
|
|
||||||
$webserver->waitForOpenPort("80");
|
webserver.wait_for_open_port("80")
|
||||||
$proxy->waitForOpenPort("80");
|
proxy.wait_for_open_port("80")
|
||||||
$client->waitUntilSucceeds("curl -s --fail http://proxy/hello-world.txt");
|
client.wait_until_succeeds("curl -s --fail http://proxy/hello-world.txt")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user