diff --git a/kea_testing.groovy b/kea_testing.groovy index fd6eb92..cbbef22 100644 --- a/kea_testing.groovy +++ b/kea_testing.groovy @@ -68,9 +68,9 @@ pipeline { url = "$APP_URL/api/capec" 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) echo responseCode - //if (responseCode != '200') { - // error("$testName: Returned status code = $responseCode when calling $url") - //} + if (responseCode != '200') { + error("$testName: Returned status code = $responseCode when calling $url") + } testName = "KEA_F006" url = "https://kea-grafana.vlahavas.com/api/dashboards/home"