nixos/tests/jenkins: check if jenkins is available

This commit is contained in:
Franz Pletz 2017-12-14 16:01:09 +01:00
parent da8bf8e0bc
commit 0f18f4af88
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -36,6 +36,9 @@ import ./make-test.nix ({ pkgs, ...} : {
startAll;
$master->waitForUnit("jenkins");
$master->mustSucceed("curl http://localhost:8080 | grep 'Authentication required'");
print $master->execute("sudo -u jenkins groups");
$master->mustSucceed("sudo -u jenkins groups | grep jenkins | grep users");
@ -44,4 +47,4 @@ import ./make-test.nix ({ pkgs, ...} : {
$slave->mustFail("systemctl is-enabled jenkins.service");
'';
})
})