centreon-plugins/tests/storage/emc/datadomain/snmp/list-replications.robot
Lucie Dubrunfaut 27541845b8
Ctor-875 : enh(datadomain::plugin): add/rename modes (#5243)
Co-authored-by: pkippes <pkippes@centreon.com>
Co-authored-by: tuntoja <58987095+tuntoja@users.noreply.github.com>
Co-authored-by: Kevin Duret <kduret@centreon.com>
Co-authored-by: garnier-quentin <garnier.quentin@gmail.com>
Co-authored-by: sfarouq-ext <116093375+sfarouq-ext@users.noreply.github.com>
Co-authored-by: omercier <omercier@centreon.com>
2024-11-06 10:57:51 +01:00

31 lines
1.3 KiB
Plaintext

*** Settings ***
Documentation Check EMC DataDomain in SNMP
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource
Suite Setup Ctn Generic Suite Setup
Test Timeout 120s
*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=storage::emc::datadomain::snmp::plugin
*** Test Cases ***
list-replications ${tc}
[Tags] snmp storage
${command} Catenate
... ${CMD}
... --mode=list-replications
... --hostname=${HOSTNAME}
... --snmp-version=${SNMPVERSION}
... --snmp-port=${SNMPPORT}
... --snmp-community=storage/emc/datadomain/snmp/slim-datadomain
... --snmp-timeout=1
... ${extra_options}
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
Examples: tc extra_options expected_result --
... 1 --verbose List replications: [index = 1][type = 1][source = Anonymized 127][destination = Anonymized 057][state = normal][status = idle][initiator = 0] [index = 2][type = 2][source = Anonymized 224][destination = Anonymized 079][state = normal][status = idle][initiator = 0] [index = 3][type = 3][source = Anonymized 016][destination = Anonymized 146][state = normal][status = idle][initiator = 0]