Debian Codegraph @

tests/network/huawei/wlc/snmp/uptime.robot

raw
1 *** Settings ***
2 Documentation Check system uptime.
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::huawei::wlc::snmp::plugin
11
12
13 *** Test Cases ***
14 uptime ${tc}
15 [Tags] network snmp
16 ${command} Catenate
17 ... ${CMD}
18 ... --mode=uptime
19 ... --hostname=${HOSTNAME}
20 ... --snmp-version=${SNMPVERSION}
21 ... --snmp-port=${SNMPPORT}
22 ... --snmp-community=network/huawei/wlc/snmp/slim_huawei_wlc
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 --verbose OK: System uptime is: 288d 20h 33m 6s | 'uptime'=24957186.00s;;;0;
30 ... 2 --warning-uptime OK: System uptime is: 288d 20h 33m 6s | 'uptime'=24957186.00s;;;0;
31 ... 3 --critical-uptime OK: System uptime is: 288d 20h 33m 6s | 'uptime'=24957186.00s;;;0;
32 ... 4 --add-sysdesc OK: System uptime is: 288d 20h 33m 6s, Anonymized 023 | 'uptime'=24957186.00s;;;0;
33 ... 5 --force-oid=.1.3.6.1.2.1.1.3.0 OK: System uptime is: 288d 20h 33m 6s | 'uptime'=24957186.00s;;;0;
34 ... 6 --check-overload OK: System uptime is: 288d 20h 33m 6s | 'uptime'=24957186.00s;;;0;
35 ... 7 --reboot-window OK: System uptime is: 288d 20h 33m 6s | 'uptime'=24957186.00s;;;0;
36 ... 8 --unit='s' OK: System uptime is: 288d 20h 33m 6s | 'uptime'=24957186.00s;;;0;
37 ... 9 --unit='m' OK: System uptime is: 288d 20h 33m 6s | 'uptime'=415953.10m;;;0;