summary refs log tree commit diff
path: root/nixos/tests/morty.nix
diff options
context:
space:
mode:
authorJan Hrnko <jan.hrnko@satoshilabs.com>2019-11-06 07:58:22 +0100
committerJan Hrnko <jan.hrnko@satoshilabs.com>2019-11-06 07:58:22 +0100
commit650ccb604b48596330cc02c8db5c62ca0322d75e (patch)
treeadc71654d871eb4835ae52631ff908ec8624c52c /nixos/tests/morty.nix
parent38b2e18faa526f2a4cf55f0ed5c18906bfa2627d (diff)
downloadnixpkgs-650ccb604b48596330cc02c8db5c62ca0322d75e.tar
nixpkgs-650ccb604b48596330cc02c8db5c62ca0322d75e.tar.gz
nixpkgs-650ccb604b48596330cc02c8db5c62ca0322d75e.tar.bz2
nixpkgs-650ccb604b48596330cc02c8db5c62ca0322d75e.tar.lz
nixpkgs-650ccb604b48596330cc02c8db5c62ca0322d75e.tar.xz
nixpkgs-650ccb604b48596330cc02c8db5c62ca0322d75e.tar.zst
nixpkgs-650ccb604b48596330cc02c8db5c62ca0322d75e.zip
nixos/morty: port test to python
Diffstat (limited to 'nixos/tests/morty.nix')
-rw-r--r--nixos/tests/morty.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/nixos/tests/morty.nix b/nixos/tests/morty.nix
index eab123bd50f..64c5a27665d 100644
--- a/nixos/tests/morty.nix
+++ b/nixos/tests/morty.nix
@@ -1,4 +1,4 @@
-import ./make-test.nix ({ pkgs, ... }:
+import ./make-test-python.nix ({ pkgs, ... }:
 
 {
   name = "morty";
@@ -22,11 +22,9 @@ import ./make-test.nix ({ pkgs, ... }:
   testScript =
     { ... }:
     ''
-      $mortyProxyWithKey->waitForUnit("default.target");
-
-      $mortyProxyWithKey->waitForOpenPort(3001);
-      $mortyProxyWithKey->succeed("curl -L 127.0.0.1:3001 | grep MortyProxy");
-
+      mortyProxyWithKey.wait_for_unit("default.target")
+      mortyProxyWithKey.wait_for_open_port(3001)
+      mortyProxyWithKey.succeed("curl -L 127.0.0.1:3001 | grep MortyProxy")
     '';
 
 })