Debian Codegraph @

tests/storage/synology/snmp/Uptime.robot

raw
1 *** Settings ***
2 Documentation Storage Synology SNMP
3
4 Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource
5
6 Test Timeout 120s
7
8
9 *** Variables ***
10 ${CMD} ${CENTREON_PLUGINS} --plugin=storage::synology::snmp::plugin
11
12 *** Test Cases ***
13 Uptime ${tc}
14 [Tags] storage synology snmp
15 ${command} Catenate
16 ... ${CMD}
17 ... --mode=uptime
18 ... --hostname=${HOSTNAME}
19 ... --snmp-version=${SNMPVERSION}
20 ... --snmp-port=${SNMPPORT}
21 ... --snmp-community=storage/synology/snmp/synology-disk-ok
22 ... --warning-uptime=${warning}
23 ... --critical-uptime=${critical}
24
25 Ctn Run Command And Check Result As Strings ${command} ${expected_result}
26
27 Examples: tc warning critical expected_result --
28 ... 1 ${Empty} ${Empty} OK: System uptime is: 46m 5s | 'uptime'=2765.00s;;;0;
29 ... 2 10 ${Empty} WARNING: System uptime is: 46m 5s | 'uptime'=2765.00s;0:10;;0;
30 ... 3 ${Empty} 10 CRITICAL: System uptime is: 46m 5s | 'uptime'=2765.00s;;0:10;0;