sfarouq-ext db81938e6c
enh(qnap): extend modes hardware,pools and volumes for Quts Hero (#5580)
Co-authored-by: Roman Morandell <46994680+rmorandell-pgum@users.noreply.github.com>
2025-05-26 15:51:47 +02:00

32 lines
1.4 KiB
Plaintext

*** Settings ***
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource
Test Timeout 120s
*** Variables ***
${CMD} ${CENTREON_PLUGINS}
... --plugin=storage::qnap::snmp::plugin
... --mode=pools
... --hostname=${HOSTNAME}
... --snmp-port=${SNMPPORT}
... --snmp-community=storage/qnap/snmp/qnap
*** Test Cases ***
Pools ${tc}
[Tags] storage qnap pools
${command} Catenate
... ${CMD}
... ${extra_options}
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
Examples: tc extra_options expected_result --
... 1 ${EMPTY} OK: pool '1' status: ready
... 2 --filter-name=1 OK: pool '1' status: ready
... 3 --unknown-pool-status='\\\%{status} eq "ready"' UNKNOWN: pool '1' status: ready
... 4 --warning-pool-status='\\\%{status} eq "ready"' WARNING: pool '1' status: ready
... 5 --critical-pool-status='\\\%{status} eq "ready"' CRITICAL: pool '1' status: ready