Debian Codegraph @

tests/network/huawei/wlc/snmp/list-interfaces.robot

raw
1 *** Settings ***
2 Documentation Check Huawei equipments in SNMP.
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 list-interfaces ${tc}
15 [Tags] network snmp
16 ${command} Catenate
17 ... ${CMD}
18 ... --mode=list-interfaces
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} | grep -v 'skipping interface' | wc -l
25
26 Ctn Verify Command Output ${command} ${expected_result}
27
28 Examples: tc extra_options expected_result --
29 ... 1 ${EMPTY} 185
30 ... 2 --interface=12 2
31 ... 3 --name --interface='Anonymized 25' 8
32 ... 4 --name --interface='Anonymized 23' 10
33 ... 5 --name --interface='Anonymized 25' --skip-speed0 6
34 ... 6 --filter-status='down' 154
35 ... 7 --filter-status='down' --skip-speed0 153