mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
nixos/tests/jenkins: check if jenkins is available
This commit is contained in:
parent
da8bf8e0bc
commit
0f18f4af88
@ -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");
|
||||
'';
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user