From 0f18f4af88f4a2dbbb247a9754fc6db6414da3c7 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Thu, 14 Dec 2017 16:01:09 +0100 Subject: [PATCH] nixos/tests/jenkins: check if jenkins is available --- nixos/tests/jenkins.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/tests/jenkins.nix b/nixos/tests/jenkins.nix index a9833058f378..ed55b2ff5871 100644 --- a/nixos/tests/jenkins.nix +++ b/nixos/tests/jenkins.nix @@ -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"); ''; -}) \ No newline at end of file +})