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"