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

41 lines
1.2 KiB
Plaintext

*** Settings ***
Documentation load mode
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}..${/}resources/import.resource
Test Timeout 120s
Suite Setup Ctn Generic Suite Setup
Suite Teardown Ctn Generic Suite Teardown
*** Variables ***
${SNMPCOMMUNITY} hardware/kvm/avocent/acs/8000/avocent8000
*** Test Cases ***
Load
[Tags] hardware kvm avocent load snmp
${output} Run Avocent 8000 Plugin "load" ""
${output} Strip String ${output}
Should Be Equal As Strings
... ${output}
... OK: Load average: 0.04, 0.10, 0.15 | 'load1'=0.04;;;0; 'load5'=0.10;;;0; 'load15'=0.15;;;0;
... Wrong output result for command:{\n}${output}{\n}{\n}{\n}
*** Keywords ***
Run Avocent 8000 Plugin
[Arguments] ${mode} ${extraoptions}
${command} Catenate
... ${CENTREON_PLUGINS}
... --plugin=hardware::kvm::avocent::acs::8000::snmp::plugin
... --mode=${mode}
... --hostname=${HOSTNAME}
... --snmp-version=${SNMPVERSION}
... --snmp-port=${SNMPPORT}
... --snmp-community=${SNMPCOMMUNITY}
... ${extraoptions}
${output} Run ${command}
RETURN ${output}