| 1 |
*** Settings *** |
| 2 |
Documentation Check services. |
| 3 |
|
| 4 |
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource |
| 5 |
|
| 6 |
Test Timeout 120s |
| 7 |
Test Setup Ctn Generic Suite Setup |
| 8 |
|
| 9 |
*** Variables *** |
| 10 |
${CMD} ${CENTREON_PLUGINS} --plugin=network::cyberoam::snmp::plugin |
| 11 |
|
| 12 |
|
| 13 |
*** Test Cases *** |
| 14 |
services ${tc} |
| 15 |
[Tags] network cyberoam |
| 16 |
${command} Catenate |
| 17 |
... ${CMD} |
| 18 |
... --mode=services |
| 19 |
... --hostname=${HOSTNAME} |
| 20 |
... --snmp-version=${SNMPVERSION} |
| 21 |
... --snmp-port=${SNMPPORT} |
| 22 |
... --snmp-community=network/cyberoam/snmp/slim_sophos |
| 23 |
... --snmp-timeout=1 |
| 24 |
... ${extra_options} |
| 25 |
|
| 26 |
Ctn Run Command And Check Result As Strings ${command} ${expected_result} |
| 27 |
|
| 28 |
Examples: tc extra_options expected_result -- |
| 29 |
... 1 --component='service' OK: All 21 components are ok [21/21 services]. | 'hardware.service.count'=21;;;; |
| 30 |
... 2 --filter='toto' OK: All 21 components are ok [21/21 services]. | 'hardware.service.count'=21;;;; |
| 31 |
... 3 --no-component='UNKNOWN' OK: All 21 components are ok [21/21 services]. | 'hardware.service.count'=21;;;; |
| 32 |
... 4 --threshold-overload='service,toto,OK,running' OK: All 21 components are ok [21/21 services]. | 'hardware.service.count'=21;;;; |