diff --git a/kea_testing.groovy b/kea_testing.groovy index c0f45d7..92319d8 100644 --- a/kea_testing.groovy +++ b/kea_testing.groovy @@ -101,12 +101,12 @@ pipeline { 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) if (responseCode != 'test1') { - error("$testName: Returned status code = $responseCode when calling $url") + error("$testName: Returned status code = $responseCode when running MQTT test on $url") } testName = "KEA_F005" responseCode = sh(label: testName, script: "docker exec -ti kea_timescaledb psql -l -U postgres | grep -q kea ; echo \$?", returnStdout: true) - if (responseCode != '200') { - error("$testName: Returned status code = $responseCode when calling $url") + if (responseCode != '0') { + error("$testName: Returned status code = $responseCode when looking for presense of kea DB") } testName = "KEA_F002" url = "$APP_URL:13880/components/od"