Debian Codegraph @

tests/network/cyberoam/snmp/storage.robot

raw
1 *** Settings ***
2 Documentation Check storage usage.
3
4 Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource
5
6 Test Timeout 120s
7 Test Setup Ctn Generic Suite Setup
8
9 *** Variables ***
10 ${CMD} ${CENTREON_PLUGINS} --plugin=network::cyberoam::snmp::plugin
11
12
13 *** Test Cases ***
14 storage ${tc}
15 [Tags] network cyberoam
16 ${command} Catenate
17 ... ${CMD}
18 ... --mode=storage
19 ... --hostname=${HOSTNAME}
20 ... --snmp-version=${SNMPVERSION}
21 ... --snmp-port=${SNMPPORT}
22 ... --snmp-community=network/cyberoam/snmp/slim_sophos
23 ... --snmp-timeout=1
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 --warning-usage=0 WARNING: Storage Usage Total: 86.97 GB Used: 20.87 GB (24.00%) Free: 66.10 GB (76.00%) | 'used'=22411676221.44B;0:0;;0;93381984256
30 ... 2 --critical-usage=0 CRITICAL: Storage Usage Total: 86.97 GB Used: 20.87 GB (24.00%) Free: 66.10 GB (76.00%) | 'used'=22411676221.44B;;0:0;0;93381984256