diff --git a/kea_testing.groovy b/kea_testing.groovy index 90cd0b4..a7d6712 100644 --- a/kea_testing.groovy +++ b/kea_testing.groovy @@ -153,6 +153,14 @@ pipeline { if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") } + + testName = "KEA_F013" + url = "$APP_URL/api/v1/xlsiem" + 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") + } } catch (ignored) { currentBuild.result = 'FAILURE'