diff --git a/kea_testing.groovy b/kea_testing.groovy index 071a2d4..c0f45d7 100644 --- a/kea_testing.groovy +++ b/kea_testing.groovy @@ -97,12 +97,6 @@ pipeline { if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") } - testName = "KEA_F002" - url = "$APP_URL:13880/components/od" - 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) @@ -114,6 +108,18 @@ pipeline { if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") } + testName = "KEA_F002" + url = "$APP_URL:13880/components/od" + 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_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_F006" url = "$APP_URL:3001" responseCode = sh(label: testName, script: "curl -m 10 -sLI -w '%{http_code}' $url -o /dev/null", returnStdout: true) @@ -127,13 +133,7 @@ pipeline { error("$testName: Returned status code = $responseCode when calling $url") } testName = "KEA_F008" - url = "$APP_URL:13880/components/od" - 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_F003" - url = "$APP_URL:13880/components/mltd" + url = "$APP_URL:13880/components/ceptd" 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")