refactor and renaming test
This commit is contained in:
parent
8a2fba3a25
commit
90f3d1427a
|
@ -1,5 +1,5 @@
|
||||||
*** Settings ***
|
*** Settings ***
|
||||||
Documentation OS Linux SNMP plugin
|
Documentation Check the list-diskio mode
|
||||||
|
|
||||||
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource
|
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource
|
||||||
|
|
||||||
|
@ -11,8 +11,9 @@ ${CMD} ${CENTREON_PLUGINS} --plugin=os::linux::snmp::plugin
|
||||||
|
|
||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
Linux SNMP list diskio devices ${documentation} ${tc}/2
|
List diskio ${tc}
|
||||||
[Tags] os linux snmp
|
[Documentation] Check the number of returned disks
|
||||||
|
[Tags] os linux snmp service-disco
|
||||||
${command} Catenate
|
${command} Catenate
|
||||||
... ${CMD}
|
... ${CMD}
|
||||||
... --mode=list-diskio
|
... --mode=list-diskio
|
||||||
|
@ -22,15 +23,14 @@ Linux SNMP list diskio devices ${documentation} ${tc}/2
|
||||||
... --disco-show
|
... --disco-show
|
||||||
... --snmp-community=${snmpcommunity}
|
... --snmp-community=${snmpcommunity}
|
||||||
${output} Run ${command}
|
${output} Run ${command}
|
||||||
Log To Console ${command}
|
|
||||||
${nb_results} Get Element Count
|
${nb_results} Get Element Count
|
||||||
... ${output}
|
... ${output}
|
||||||
... label
|
... label
|
||||||
Should Be Equal As Integers
|
Should Be Equal As Integers
|
||||||
... ${expected_result}
|
... ${expected_result}
|
||||||
... ${nb_results}
|
... ${nb_results}
|
||||||
... Wrong output result for list diskio devices: ${snmpcommunity}.{\n}Command output:{\n}${output}
|
... Wrong output result for command:{\n}{\n}${command}{\n}{\n}Command output:{\n}{\n}${output}
|
||||||
|
|
||||||
Examples: documentation tc snmpcommunity expected_result --
|
Examples: tc snmpcommunity expected_result --
|
||||||
... First run 1 os/linux/snmp/list-diskio 10
|
... 1 os/linux/snmp/list-diskio 10
|
||||||
... Second run 2 os/linux/snmp/list-diskio-2 4
|
... 2 os/linux/snmp/list-diskio-2 4
|
Loading…
Reference in New Issue