nixosTests.gocd-server: port to python

This commit is contained in:
Florian Klink 2019-11-24 22:49:10 +01:00
parent 46daafa269
commit f8218178f7
1 changed files with 13 additions and 13 deletions

View File

@ -2,7 +2,7 @@
# 1. GoCD server starts
# 2. GoCD server responds
import ./make-test.nix ({ pkgs, ...} :
import ./make-test-python.nix ({ pkgs, ...} :
{
name = "gocd-server";
@ -11,7 +11,7 @@ import ./make-test.nix ({ pkgs, ...} :
};
nodes = {
gocd_server =
server =
{ ... }:
{
virtualisation.memorySize = 2046;
@ -20,9 +20,9 @@ nodes = {
};
testScript = ''
$gocd_server->start;
$gocd_server->waitForUnit("gocd-server");
$gocd_server->waitForOpenPort("8153");
$gocd_server->waitUntilSucceeds("curl -s -f localhost:8153/go");
server.start()
server.wait_for_unit("gocd-server")
server.wait_for_open_port(8153)
server.wait_until_succeeds("curl -s -f localhost:8153/go")
'';
})