| 1 |
*** Settings *** |
| 2 |
Documentation Check Windows operating systems in SNMP. |
| 3 |
|
| 4 |
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource |
| 5 |
|
| 6 |
Suite Setup Ctn Generic Suite Setup |
| 7 |
Test Timeout 120s |
| 8 |
|
| 9 |
|
| 10 |
*** Variables *** |
| 11 |
${CMD} ${CENTREON_PLUGINS} |
| 12 |
|
| 13 |
*** Test Cases *** |
| 14 |
list-processes ${tc} |
| 15 |
[Tags] os Windows |
| 16 |
${command} Catenate |
| 17 |
... ${CMD} |
| 18 |
... --plugin=os::windows::snmp::plugin |
| 19 |
... --mode=list-processes |
| 20 |
... --hostname=${HOSTNAME} |
| 21 |
... --snmp-version=${SNMPVERSION} |
| 22 |
... --snmp-port=${SNMPPORT} |
| 23 |
... --snmp-community=os/windows/snmp/list-processes |
| 24 |
... ${extra_options} |
| 25 |
|
| 26 |
${output} Run ${command} |
| 27 |
${output} Strip String ${output} |
| 28 |
Should Contain |
| 29 |
... ${output} |
| 30 |
... ${expected_result} |
| 31 |
... Wrong output result for command:\n${command}\n\nObtained:\n${output}\n\nExpected:\n${expected_result}\n |
| 32 |
... values=False |
| 33 |
... collapse_spaces=True |
| 34 |
|
| 35 |
Examples: tc extra_options expected_result -- |
| 36 |
... 1 --filter-name='Anonymized 159' [name = Anonymized 159] [path = ] [parameters = Anonymized 087] [type = application] [pid = 3320] [status = running] |
| 37 |
... 2 --add-stats='running' [name = Anonymized 165] [path = Anonymized 071] [parameters = Anonymized 245] [type = application] [pid = 3800] [status = running] [cpu = 3] [mem = 13992] |