From 955d7930b9da7f196904a8b9c78fa2b4f18ed7d5 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Thu, 9 Sep 2021 00:51:24 +0300 Subject: [PATCH] Test ADT and VDM input modules --- kea_testing.groovy | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/kea_testing.groovy b/kea_testing.groovy index fbc01dd..55e2023 100644 --- a/kea_testing.groovy +++ b/kea_testing.groovy @@ -137,6 +137,22 @@ pipeline { if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") } + + testName = "KEA_F011" + url = "$APP_URL/api/v1/adt" + 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") + } + + testName = "KEA_F012" + url = "$APP_URL/api/v1/adt" + 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' -- 2.2.2