sfarouq-ext 4730dc1891
enh(tests): enable testing with collect's perl connector (#5641)
Co-authored-by: omercier <omercier@centreon.com>
refs: CTOR-1244
2025-08-28 10:53:59 +02:00

34 lines
1.5 KiB
Plaintext

*** Settings ***
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource
Test Timeout 120s
Suite Setup Ctn Generic Suite Setup
Suite Teardown Ctn Generic Suite Teardown
*** 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