Debian Codegraph @

tests/os/windows/snmp/processcount.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
13 *** Test Cases ***
14 processcount ${tc}
15 [Tags] os Windows
16 ${command} Catenate
17 ... ${CMD}
18 ... --plugin=os::windows::snmp::plugin
19 ... --mode=processcount
20 ... --hostname=${HOSTNAME}
21 ... --snmp-version=${SNMPVERSION}
22 ... --snmp-port=${SNMPPORT}
23 ... --snmp-community=os/windows/snmp/processcount
24 ... --snmp-timeout=1
25 ... ${extra_options}
26
27 Ctn Run Command And Check Result As Strings ${command} ${expected_result}
28
29 Examples: tc extra_options expected_result --
30 ... 1 --critical-cpu-total OK: Number of current processes running: 317 | 'nbproc'=317;;;0;
31 ... 2 --top OK: Number of current processes running: 317 | 'nbproc'=317;;;0; 'top_Anonymized 073'=132067328B;;;0; 'top_Anonymized 023'=122327040B;;;0; 'top_Anonymized 079'=109248512B;;;0; 'top_Anonymized 137'=108720128B;;;0; 'top_Anonymized 072'=93343744B;;;0;
32 ... 3 --top-num OK: Number of current processes running: 317 | 'nbproc'=317;;;0;
33 ... 4 --top-size OK: Number of current processes running: 317 | 'nbproc'=317;;;0;