Debian Codegraph @

tests/network/moxa/switch/snmp/interfaces.robot

raw
1 *** Settings ***
2 Documentation Network moxa SNMP plugin
3
4 Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource
5 Suite Setup Ctn Generic Suite Setup
6
7 Test Timeout 120s
8
9 *** Variables ***
10 ${CMD} ${CENTREON_PLUGINS}
11 ... --plugin=network::moxa::switch::snmp::plugin
12 ... --mode=interfaces
13 ... --hostname=${HOSTNAME}
14 ... --snmp-port=${SNMPPORT}
15 ... --snmp-community=network/moxa/switch/snmp/interfaces
16
17 *** Test Cases ***
18 network interface ${tc}
19 [Tags] network moxa snmp
20 ${command} Catenate
21 ... ${CMD}
22 ... ${arguments}
23
24 Ctn Run Command And Check Result As Strings ${command} ${expected_result}
25
26 Examples: tc arguments expected_result --
27 ... 1 --verbose --add-duplex-status OK: All interfaces are ok Interface 'lo' Status : up (admin: up) (duplex: fullDuplex) Interface 'eth0' Status : up (admin: up) (duplex: halfDuplex) Interface 'eth1' Status : up (admin: up) (duplex: unknown) Interface 'eth2' Status : up (admin: up) (duplex: fullDuplex) Interface 'eth3' Status : up (admin: up) (duplex: fullDuplex)