centreon-plugins/tests/os/windows/snmp/list-services.robot
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

32 lines
1.2 KiB
Plaintext

*** Settings ***
Documentation Check Windows operating systems 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}
*** Test Cases ***
list-services ${tc}
[Tags] os Windows
${command} Catenate
... ${CMD}
... --plugin=os::windows::snmp::plugin
... --mode=list-services
... --hostname=${HOSTNAME}
... --snmp-version=${SNMPVERSION}
... --snmp-port=${SNMPPORT}
... --snmp-community=os/windows/snmp/services-en
... ${extra_options}
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
Examples: tc extra_options expected_result --
... 1 --filter-name='Windows Security Service' List services: [name = Windows Security Service] [operating = active] [installed = installed]
... 2 --filter-name='AVCTP service' List services: [name = AVCTP service] [operating = active] [installed = installed]