fix: robot IF syntax + udpcon tests

This commit is contained in:
omercier 2025-08-08 16:44:40 +02:00
parent 5e78fa793f
commit 1c46eef2ee
3 changed files with 7 additions and 6 deletions

View File

@ -40,6 +40,10 @@ Interfaces by id ${tc}
# theese test are linked together. The test 3 create the cache file in /dev/shm/, and the test 4 use this cache file
# to calculate traffic throughput by second.
Cleanup
Ctn Generic Suite Teardown
Ctn Generic Suite Setup
Interfaces by id regexp ${tc}
[Tags] os linux network interfaces
${command} Catenate

View File

@ -27,7 +27,4 @@ udpcon ${tc}
Ctn Run Command And Check Result As Strings ${command} ${expected_result} ${tc}
Examples: tc extra_options expected_result --
... 1 --verbose OK: Total connections: 7 | 'service_total'=7;;;0; 'con_listen'=7;;;0;
... 2 -application=[services] OK: Total connections: 7 | 'service_total'=7;;;0; 'con_listen'=7;;;0;
... 3 -application=[threshold-critical] OK: Total connections: 7 | 'service_total'=7;;;0; 'con_listen'=7;;;0;
... 4 -application=[threshold-warning] OK: Total connections: 7 | 'service_total'=7;;;0; 'con_listen'=7;;;0;
... 1 ${EMPTY} OK: Total connections: 7 | 'service_total'=7;;;0; 'con_listen'=7;;;0;

View File

@ -163,7 +163,7 @@ Ctn Run Command And Check Result As Strings
[Arguments] ${command} ${expected_result} ${tc}=0 ${timeout}=${TIMEOUT}
Remove File /tmp/connector.output
Remove File /tmp/connector.command.log
IF $tc == 0 or "centreon_plugins.pl" in $command
IF '${tc}' == '0' or "centreon_plugins.pl" in $command
Log To Console s
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
ELSE
@ -175,7 +175,7 @@ Ctn Run Command And Check Result As Regexp
[Arguments] ${command} ${expected_result} ${tc}=0 ${timeout}=${TIMEOUT}
Remove File /tmp/connector.output
Remove File /tmp/connector.command.log
IF $tc == 0 or "centreon_plugins.pl" in $command
IF '${tc}' == '0' or "centreon_plugins.pl" in $command
Log To Console s
Ctn Run Command Without Connector And Check Result As Regexp ${command} ${expected_result}
ELSE