Debian Codegraph @

tests/storage/emc/datadomain/snmp/interfaces.robot

raw
1 *** Settings ***
2 Documentation Check EMC DataDomain in SNMP
3
4 Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource
5
6 Suite Setup Ctn Generic Suite Setup
7 Test Timeout 120s
8
9
10 *** Variables ***
11 ${CMD} ${CENTREON_PLUGINS} --plugin=storage::emc::datadomain::snmp::plugin
12
13
14 *** Test Cases ***
15 interfaces ${tc}
16 [Tags] snmp storage
17 ${command} Catenate
18 ... ${CMD}
19 ... --mode=interfaces
20 ... --hostname=${HOSTNAME}
21 ... --snmp-version=${SNMPVERSION}
22 ... --snmp-port=${SNMPPORT}
23 ... --snmp-community=storage/emc/datadomain/snmp/slim-datadomain
24 ... --snmp-timeout=1
25 ... ${extra_options}
26
27 Ctn Run Command And Check Result As Strings ${command} ${expected_result}
28
29 Examples: tc extra_options expected_result --
30 ... 1 --verbose OK: All interfaces are ok Interface 'lo' Status : up (admin: up) Interface 'Anonymized 012' Status : up (admin: up) Interface 'Anonymized 118' Status : down (admin: down) Interface 'Anonymized 073' Status : down (admin: down) Interface 'Anonymized 071' Status : up (admin: up) Interface 'Anonymized 073' Status : up (admin: up) Interface 'Anonymized 232' Status : up (admin: up) Interface 'Anonymized 191' Status : up (admin: up) Interface 'Anonymized 242' Status : up (admin: up) Interface 'Anonymized 175' Status : up (admin: up) Interface 'Anonymized 128' Status : up (admin: up) Interface 'Anonymized 037' Status : down (admin: down) Interface 'Anonymized 184' Status : down (admin: down) Interface 'Anonymized 252' Status : down (admin: down) Interface 'Anonymized 012' Status : down (admin: down) Interface 'Anonymized 232' Status : up (admin: up) Interface 'Anonymized 072' Status : up (admin: up) Interface 'Anonymized 037' Status : up (admin: up)
31 ... 2 --oid-display='ifName' OK: All interfaces are ok
32 ... 3 --oid-extra-display='ifDesc' OK: All interfaces are ok
33 ... 4 --display-transform-src='eth' --display-transform-dst='ens' OK: All interfaces are ok