nixos/nexus: port test to python test-driver
This commit is contained in:
parent
4273a6adcc
commit
9a2c7caa43
@ -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")
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user