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.4 KiB
Plaintext

*** Settings ***
Documentation Check EMC DataDomain in SNMP
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource
Suite Setup Ctn Generic Suite Setup
Suite Teardown Ctn Generic Suite Teardown
Test Timeout 120s
*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=storage::emc::datadomain::snmp::plugin
*** Test Cases ***
alerts ${tc}
[Tags] snmp storage
${command} Catenate
... ${CMD}
... --mode=alerts
... --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 --truly-alert='\\\%{severity} =~ /emergency|alert|warning|critical/i' OK: current alerts: 0 | 'alerts.current.count'=0;;;0;
... 2 --warning-alerts-current --critical-alerts-current OK: current alerts: 0 | 'alerts.current.count'=0;;;0;
... 3 --display-alerts OK: current alerts: 0 | 'alerts.current.count'=0;;;0;