refactor and renaming test

This commit is contained in:
root 2024-07-09 13:56:18 +00:00
parent 8a2fba3a25
commit 90f3d1427a
1 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
*** Settings ***
Documentation OS Linux SNMP plugin
Documentation Check the list-diskio mode
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource
@ -11,8 +11,9 @@ ${CMD} ${CENTREON_PLUGINS} --plugin=os::linux::snmp::plugin
*** Test Cases ***
Linux SNMP list diskio devices ${documentation} ${tc}/2
[Tags] os linux snmp
List diskio ${tc}
[Documentation] Check the number of returned disks
[Tags] os linux snmp service-disco
${command} Catenate
... ${CMD}
... --mode=list-diskio
@ -22,15 +23,14 @@ Linux SNMP list diskio devices ${documentation} ${tc}/2
... --disco-show
... --snmp-community=${snmpcommunity}
${output} Run ${command}
Log To Console ${command}
${nb_results} Get Element Count
... ${output}
... label
Should Be Equal As Integers
... ${expected_result}
... ${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 --
... First run 1 os/linux/snmp/list-diskio 10
... Second run 2 os/linux/snmp/list-diskio-2 4
Examples: tc snmpcommunity expected_result --
... 1 os/linux/snmp/list-diskio 10
... 2 os/linux/snmp/list-diskio-2 4