From c942a82174c747622bfefa93559ae61de67820ab Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Wed, 8 Sep 2021 22:07:43 +0300 Subject: [PATCH] Move grafana test case to the end --- kea_testing.groovy | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/kea_testing.groovy b/kea_testing.groovy index 13bd4b9..d636d2f 100644 --- a/kea_testing.groovy +++ b/kea_testing.groovy @@ -67,27 +67,28 @@ pipeline { error("$testName: Returned status code = $responseCode when calling $url") } - testName = "KEA_F006" - url = "https://kea-grafana.vlahavas.com" + testName = "KEA_F007" + url = "https://kea-kibana.vlahavas.com/app/kibana" responseCode = sh(label: testName, script: "curl -m 10 -sLI -w '%{http_code}' -H 'Authorization: Bearer $token' -H 'Accept: application/json, text/plain, */*' $url -o /dev/null", returnStdout: true) if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") } - testName = "KEA_F007" - url = "https://kea-kibana.vlahavas.com/app/kibana" + testName = "KEA_F008" + url = "$APP_URL/components/ceptd" responseCode = sh(label: testName, script: "curl -m 10 -sLI -w '%{http_code}' -H 'Authorization: Bearer $token' -H 'Accept: application/json, text/plain, */*' $url -o /dev/null", returnStdout: true) if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") } - testName = "KEA_F008" - url = "$APP_URL/components/ceptd" + testName = "KEA_F006" + url = "https://kea-grafana.vlahavas.com/?orgId=1" responseCode = sh(label: testName, script: "curl -m 10 -sLI -w '%{http_code}' -H 'Authorization: Bearer $token' -H 'Accept: application/json, text/plain, */*' $url -o /dev/null", returnStdout: true) if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") } + } catch (ignored) { currentBuild.result = 'FAILURE' echo "KEA Deployment Tests failed" -- 2.2.2