summary refs log tree commit diff
path: root/nixos/tests/nghttpx.nix
diff options
context:
space:
mode:
authorChristian Kampka <christian@kampka.net>2019-12-15 19:36:44 +0100
committerChristian Kampka <christian@kampka.net>2019-12-15 19:36:44 +0100
commite51673bb77d6594b4e044c20f1a4a54677c56821 (patch)
tree052b0bba04acfdfdfb59f18bddfd89ae8060274e /nixos/tests/nghttpx.nix
parent1f3f9fd3a2fad9b43af73ed3e62ae2cc203c76da (diff)
downloadnixpkgs-e51673bb77d6594b4e044c20f1a4a54677c56821.tar
nixpkgs-e51673bb77d6594b4e044c20f1a4a54677c56821.tar.gz
nixpkgs-e51673bb77d6594b4e044c20f1a4a54677c56821.tar.bz2
nixpkgs-e51673bb77d6594b4e044c20f1a4a54677c56821.tar.lz
nixpkgs-e51673bb77d6594b4e044c20f1a4a54677c56821.tar.xz
nixpkgs-e51673bb77d6594b4e044c20f1a4a54677c56821.tar.zst
nixpkgs-e51673bb77d6594b4e044c20f1a4a54677c56821.zip
nixosTests.nghttpx: Port tests to python
Diffstat (limited to 'nixos/tests/nghttpx.nix')
-rw-r--r--nixos/tests/nghttpx.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/tests/nghttpx.nix b/nixos/tests/nghttpx.nix
index 11611bfe106..d83c1c4cae6 100644
--- a/nixos/tests/nghttpx.nix
+++ b/nixos/tests/nghttpx.nix
@@ -1,7 +1,7 @@
 let
   nginxRoot = "/run/nginx";
 in
-  import ./make-test.nix ({...}: {
+  import ./make-test-python.nix ({...}: {
     name  = "nghttpx";
     nodes = {
       webserver = {
@@ -52,10 +52,10 @@ in
     };
 
     testScript = ''
-      startAll;
+      start_all()
 
-      $webserver->waitForOpenPort("80");
-      $proxy->waitForOpenPort("80");
-      $client->waitUntilSucceeds("curl -s --fail http://proxy/hello-world.txt");
+      webserver.wait_for_open_port("80")
+      proxy.wait_for_open_port("80")
+      client.wait_until_succeeds("curl -s --fail http://proxy/hello-world.txt")
     '';
   })