git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/nexus: port test to python test-driver
commit9a2c7caa43f1cb83b3efd156de35aea85196f32f authorMaximilian Bosch <maximilian@mbosch.me> dateSun 24 Nov 2019, 23:57 (7 years ago) parent4273a6a
1 file changed+5−5
nixos/tests/nexus.nix+5−5
nixos/tests/nexus.nix+5−5
@@ -3,7 +3,7 @@
33# 2. nexus service can startup on server (creating database and all other initial stuff)
44# 3. the web application is reachable via HTTP
55
6−import ./make-test.nix ({ pkgs, ...} : {
6+import ./make-test-python.nix ({ pkgs, ...} : {
77 name = "nexus";
88 meta = with pkgs.stdenv.lib.maintainers; {
99 maintainers = [ ironpinguin ma27 ];
@@ -22,11 +22,11 @@ import ./make-test.nix ({ pkgs, ...} : {
2222 };
2323
2424 testScript = ''
25− startAll;
25+ start_all()
2626
27− $server->waitForUnit("nexus");
28− $server->waitForOpenPort(8081);
27+ server.wait_for_unit("nexus")
28+ server.wait_for_open_port(8081)
2929
30− $server->succeed("curl -f 127.0.0.1:8081");
30+ server.succeed("curl -f 127.0.0.1:8081")
3131 '';
3232})