Commit a515f488ed2904b2192b318c27ece1584bf8e6bb

Authored by George Vlahavas
1 parent 6b180da532

Add xlsiem test

Showing 1 changed file with 8 additions and 0 deletions

kea_testing.groovy View file @ a515f48
... ... @@ -153,6 +153,14 @@
153 153 if (responseCode != '200') {
154 154 error("$testName: Returned status code = $responseCode when calling $url")
155 155 }
  156 +
  157 + testName = "KEA_F013"
  158 + url = "$APP_URL/api/v1/xlsiem"
  159 + 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)
  160 + echo responseCode
  161 + if (responseCode != '200') {
  162 + error("$testName: Returned status code = $responseCode when calling $url")
  163 + }
156 164  
157 165 } catch (ignored) {
158 166 currentBuild.result = 'FAILURE'