From a440995cf06bee01436ca63cabc05d24da1d54ff Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Mon, 24 May 2021 01:34:05 +0300 Subject: [PATCH] Move KEA_F003 to the end --- kea_testing.groovy | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kea_testing.groovy b/kea_testing.groovy index efc7b29..82d8a6b 100644 --- a/kea_testing.groovy +++ b/kea_testing.groovy @@ -103,12 +103,6 @@ pipeline { if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") } - testName = "KEA_F003" - url = "$APP_URL:13880/components/mltd" - responseCode = sh(label: testName, script: "curl -m 10 -sLI -w '%{http_code}' $url -o /dev/null", returnStdout: true) - if (responseCode != '200') { - error("$testName: Returned status code = $responseCode when calling $url") - } testName = "KEA_F004" url = "mqtt://${HOST_IP}:1883/test" responseCode = sh(label: testName, script: "sleep 2 ; curl -d 1 $url & OUT=`curl -m 4 -s $url` ; echo $OUT", returnStdout: true) @@ -138,6 +132,12 @@ pipeline { if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") } + testName = "KEA_F003" + url = "$APP_URL:13880/components/mltd" + responseCode = sh(label: testName, script: "curl -m 10 -sLI -w '%{http_code}' $url -o /dev/null", returnStdout: true) + if (responseCode != '200') { + error("$testName: Returned status code = $responseCode when calling $url") + } } catch (ignored) { currentBuild.result = 'FAILURE' echo "KEA Deployment Tests failed" -- 2.2.2