Commit 955d7930b9da7f196904a8b9c78fa2b4f18ed7d5
1 parent
d852a28bfa
Exists in
master
and in
2 other branches
Test ADT and VDM input modules
Showing 1 changed file with 16 additions and 0 deletions
kea_testing.groovy
View file @
955d793
... | ... | @@ -137,6 +137,22 @@ |
137 | 137 | if (responseCode != '200') { |
138 | 138 | error("$testName: Returned status code = $responseCode when calling $url") |
139 | 139 | } |
140 | + | |
141 | + testName = "KEA_F011" | |
142 | + url = "$APP_URL/api/v1/adt" | |
143 | + 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) | |
144 | + echo responseCode | |
145 | + if (responseCode != '200') { | |
146 | + error("$testName: Returned status code = $responseCode when calling $url") | |
147 | + } | |
148 | + | |
149 | + testName = "KEA_F012" | |
150 | + url = "$APP_URL/api/v1/adt" | |
151 | + 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) | |
152 | + echo responseCode | |
153 | + if (responseCode != '200') { | |
154 | + error("$testName: Returned status code = $responseCode when calling $url") | |
155 | + } | |
140 | 156 | |
141 | 157 | } catch (ignored) { |
142 | 158 | currentBuild.result = 'FAILURE' |