| 1 |
*** Settings *** |
| 2 |
Documentation Check WD (Western Digital) NAS in SNMP |
| 3 |
|
| 4 |
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource |
| 5 |
|
| 6 |
Test Timeout 120s |
| 7 |
|
| 8 |
|
| 9 |
*** Variables *** |
| 10 |
${CMD} ${CENTREON_PLUGINS} --plugin=storage::wd::nas::snmp::plugin |
| 11 |
|
| 12 |
*** Test Cases *** |
| 13 |
listvolumes${tc} |
| 14 |
[Tags] listvolumes storage snmp |
| 15 |
${command} Catenate |
| 16 |
... ${CMD} |
| 17 |
... --mode=list-volumes |
| 18 |
... --hostname=${HOSTNAME} |
| 19 |
... --snmp-version=${SNMPVERSION} |
| 20 |
... --snmp-port=${SNMPPORT} |
| 21 |
... --snmp-community=storage/wd/nas/snmp/nas-wd |
| 22 |
... ${extra_option} |
| 23 |
|
| 24 |
Ctn Run Command And Check Result As Strings ${command} ${expected_result} |
| 25 |
|
| 26 |
Examples: tc extra_option expected_result -- |
| 27 |
... 1 --snmp-tls-their-identity List volumes: [name: Volume_1] [type: ext4] |
| 28 |
... 2 --snmp-tls-their-hostname List volumes: [name: Volume_1] [type: ext4] |
| 29 |
... 3 --snmp-tls-trust-cert List volumes: [name: Volume_1] [type: ext4] |