mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-24 18:28:25 +02:00
fix: robot IF syntax + udpcon tests
This commit is contained in:
parent
5e78fa793f
commit
1c46eef2ee
@ -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
|
||||
|
@ -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;
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user