Debian Codegraph @

tests/os/windows/snmp/storage.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 storage ${tc}
15 [Tags] os Windows
16 ${command} Catenate
17 ... ${CMD}
18 ... --plugin=os::windows::snmp::plugin
19 ... --mode=storage
20 ... --hostname=${HOSTNAME}
21 ... --snmp-version=${SNMPVERSION}
22 ... --snmp-port=${SNMPPORT}
23 ... --snmp-community=os/windows/snmp/windows_anon
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 --filter-storage-type OK: All storages are ok | 'count'=4;;;0; 'used_Serial Number 5a987053'=31299354624B;;;0;63720910848 'used_D:\\\\ Label:SSS_X64FRE_FR-FR_DV9 Serial Number cf70e675'=5566558208B;;;0;5566558208 'used_Virtual Memory'=493027328B;;;0;5099683840 'used_Physical Memory'=585039872B;;;0;4294377472
31 ... 2 --filter-duplicate OK: Storage 'Serial Number 5a987053' Usage Total: 59.34 GB Used: 29.15 GB (49.12%) Free: 30.19 GB (50.88%) | 'count'=1;;;0; 'used'=31299354624B;;;0;63720910848