Debian Codegraph @

tests/os/windows/snmp/services-en.robot

raw
1 *** Settings ***
2 Documentation Check Windows operating systems in SNMP.
3
4 Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource
5
6 Suite Setup Ctn Generic Suite Setup
7 Test Timeout 120s
8
9
10 *** Variables ***
11 ${CMD} ${CENTREON_PLUGINS}
12 ... --plugin=os::windows::snmp::plugin
13 ... --mode=service
14 ... --hostname=${HOSTNAME}
15 ... --snmp-port=${SNMPPORT}
16
17
18 *** Test Cases ***
19 Windows Services EN ${tc}
20 [Documentation] Full ASCII
21 [Tags] os Windows local
22 ${command} Catenate
23 ... ${CMD}
24 ... --snmp-community=os/windows/snmp/services-en
25 ... --filter-name='${filter}'
26 ... ${extra_option}
27
28 Ctn Run Command And Check Result As Strings ${command} ${expected_result}
29
30 Examples: tc filter extra_option expected_result --
31 ... 1 ${EMPTY} ${EMPTY} OK: All services are ok | 'services.total.count'=168;;;0; 'services.active.count'=168;;;0; 'services.continue.pending.count'=0;;;0; 'services.pause.pending.count'=0;;;0; 'services.paused.count'=0;;;0;
32 ... 2 toto ${EMPTY} OK: ${SPACE}| 'services.total.count'=0;;;0; 'services.active.count'=0;;;0; 'services.continue.pending.count'=0;;;0; 'services.pause.pending.count'=0;;;0; 'services.paused.count'=0;;;0;
33 ... 3 toto --critical-active=1: CRITICAL: Number of services active: 0 | 'services.total.count'=0;;;0; 'services.active.count'=0;;1:;0; 'services.continue.pending.count'=0;;;0; 'services.pause.pending.count'=0;;;0; 'services.paused.count'=0;;;0;
34 ... 4 ${EMPTY} --critical-active=1: OK: All services are ok | 'services.total.count'=168;;;0; 'services.active.count'=168;;1:;0; 'services.continue.pending.count'=0;;;0; 'services.pause.pending.count'=0;;;0; 'services.paused.count'=0;;;0;
35 ... 5 ${EMPTY} --critical-active=1:1 CRITICAL: Number of services active: 168 | 'services.total.count'=168;;;0; 'services.active.count'=168;;1:1;0; 'services.continue.pending.count'=0;;;0; 'services.pause.pending.count'=0;;;0; 'services.paused.count'=0;;;0;