diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2019-11-24 23:57:24 +0100 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2019-11-25 00:18:04 +0100 |
commit | 9a2c7caa43f1cb83b3efd156de35aea85196f32f (patch) | |
tree | 7d06a62ea3440783b8c484da4a51fc9ca83e716d /nixos/tests/nexus.nix | |
parent | 4273a6adcc9327b9dc0e09e9fe205b4861c15679 (diff) |
nixos/nexus: port test to python test-driver
Diffstat (limited to 'nixos/tests/nexus.nix')
-rw-r--r-- | nixos/tests/nexus.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/tests/nexus.nix b/nixos/tests/nexus.nix index 783c9f5c019ff..1ec5c40476a68 100644 --- a/nixos/tests/nexus.nix +++ b/nixos/tests/nexus.nix @@ -3,7 +3,7 @@ # 2. nexus service can startup on server (creating database and all other initial stuff) # 3. the web application is reachable via HTTP -import ./make-test.nix ({ pkgs, ...} : { +import ./make-test-python.nix ({ pkgs, ...} : { name = "nexus"; meta = with pkgs.stdenv.lib.maintainers; { maintainers = [ ironpinguin ma27 ]; @@ -22,11 +22,11 @@ import ./make-test.nix ({ pkgs, ...} : { }; testScript = '' - startAll; + start_all() - $server->waitForUnit("nexus"); - $server->waitForOpenPort(8081); + server.wait_for_unit("nexus") + server.wait_for_open_port(8081) - $server->succeed("curl -f 127.0.0.1:8081"); + server.succeed("curl -f 127.0.0.1:8081") ''; }) |