Commit 4aad516422d5a21af6a2b5f392a953fe149bf02f
1 parent
92c4d11529
Exists in
master
and in
3 other branches
Better error messages for MQTT and TimescaleDB tests
Showing 1 changed file with 3 additions and 3 deletions
kea_testing.groovy
View file @
4aad516
... | ... | @@ -101,12 +101,12 @@ |
101 | 101 | url = "mqtt://${HOST_IP}:1883/test" |
102 | 102 | responseCode = sh(label: testName, script: "sleep 2 ; curl -d 1 $url & OUT=`curl -m 4 -s $url` ; echo $OUT", returnStdout: true) |
103 | 103 | if (responseCode != 'test1') { |
104 | - error("$testName: Returned status code = $responseCode when calling $url") | |
104 | + error("$testName: Returned status code = $responseCode when running MQTT test on $url") | |
105 | 105 | } |
106 | 106 | testName = "KEA_F005" |
107 | 107 | responseCode = sh(label: testName, script: "docker exec -ti kea_timescaledb psql -l -U postgres | grep -q kea ; echo \$?", returnStdout: true) |
108 | - if (responseCode != '200') { | |
109 | - error("$testName: Returned status code = $responseCode when calling $url") | |
108 | + if (responseCode != '0') { | |
109 | + error("$testName: Returned status code = $responseCode when looking for presense of kea DB") | |
110 | 110 | } |
111 | 111 | testName = "KEA_F002" |
112 | 112 | url = "$APP_URL:13880/components/od" |