Skip to content

Commit

Permalink
Refactor Linux SNMP DiskIO robot test to robot-example-CTOR-744 (#5096)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfarouq-ext authored Jul 9, 2024
2 parents 01de69b + c3d939e commit 3d2e290
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 45 deletions.
36 changes: 36 additions & 0 deletions tests/robot/os/linux/snmp/list-diskio.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
*** Settings ***
Documentation Check the list-diskio mode
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource

Test Timeout 120s


*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=os::linux::snmp::plugin


*** Test Cases ***
List diskio ${tc}
[Documentation] Check the number of returned disks
[Tags] os linux snmp service-disco
${command} Catenate
... ${CMD}
... --mode=list-diskio
... --hostname=127.0.0.1
... --snmp-version=2
... --snmp-port=2024
... --disco-show
... --snmp-community=${snmpcommunity}
${output} Run ${command}
${nb_results} Get Element Count
... ${output}
... label
Should Be Equal As Integers
... ${expected_result}
... ${nb_results}
... Wrong output result for command:{\n}{\n}${command}{\n}{\n}Command output:{\n}{\n}${output}

Examples: tc snmpcommunity expected_result --
... 1 os/linux/snmp/list-diskio 10
... 2 os/linux/snmp/list-diskio-2 4
45 changes: 0 additions & 45 deletions tests/robot/os/linux/snmp/os-linux-snmp.robot

This file was deleted.

0 comments on commit 3d2e290

Please sign in to comment.