diff --git a/tests/os/linux/snmp/network-interfaces.robot b/tests/os/linux/snmp/network-interfaces.robot index 2c324350c..a7dd0bd4e 100644 --- a/tests/os/linux/snmp/network-interfaces.robot +++ b/tests/os/linux/snmp/network-interfaces.robot @@ -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 diff --git a/tests/os/linux/snmp/udpcon.robot b/tests/os/linux/snmp/udpcon.robot index fd42e74a4..994aab2c5 100644 --- a/tests/os/linux/snmp/udpcon.robot +++ b/tests/os/linux/snmp/udpcon.robot @@ -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; \ No newline at end of file + ... 1 ${EMPTY} OK: Total connections: 7 | 'service_total'=7;;;0; 'con_listen'=7;;;0; \ No newline at end of file diff --git a/tests/resources/resources.resource b/tests/resources/resources.resource index 4e38ff043..59194f893 100644 --- a/tests/resources/resources.resource +++ b/tests/resources/resources.resource @@ -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