Debian Codegraph @

tests/os/windows/snmp/swap.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 swap ${tc}
15 [Tags] os Windows
16 ${command} Catenate
17 ... ${CMD}
18 ... --plugin=os::windows::snmp::plugin
19 ... --mode=swap
20 ... --hostname=${HOSTNAME}
21 ... --snmp-version=${SNMPVERSION}
22 ... --snmp-port=${SNMPPORT}
23 ... --snmp-community=os/windows/snmp/windows_anon
24 ... ${extra_options}
25
26 Ctn Run Command And Check Result As Strings ${command} ${expected_result}
27
28 Examples: tc extra_options expected_result --
29 ... 1 --real-swap=0 OK: Swap Total: 4.75 GB Used: 470.19 MB (9.67%) Free: 4.29 GB (90.33%) | 'used'=493027328B;;;0;5099683840
30 ... 2 --warning='80' OK: Swap Total: 4.75 GB Used: 470.19 MB (9.67%) Free: 4.29 GB (90.33%) | 'used'=493027328B;0:4079747072;;0;5099683840
31 ... 3 --critical='90' OK: Swap Total: 4.75 GB Used: 470.19 MB (9.67%) Free: 4.29 GB (90.33%) | 'used'=493027328B;;0:4589715456;0;5099683840
32 ... 4 --critical='0' CRITICAL: Swap Total: 4.75 GB Used: 470.19 MB (9.67%) Free: 4.29 GB (90.33%) | 'used'=493027328B;;0:0;0;5099683840
33 ... 5 --warning='0' WARNING: Swap Total: 4.75 GB Used: 470.19 MB (9.67%) Free: 4.29 GB (90.33%) | 'used'=493027328B;0:0;;0;5099683840