Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Linux SNMP DiskIO robot test to robot-example-CTOR-744 #5096

Merged
merged 4 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.