mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-04 00:18:26 +02:00
30 lines
1.3 KiB
Plaintext
30 lines
1.3 KiB
Plaintext
*** Settings ***
|
|
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource
|
|
|
|
Suite Setup Ctn Generic Suite Setup
|
|
Test Timeout 120s
|
|
|
|
|
|
*** Variables ***
|
|
${CMD} ${CENTREON_PLUGINS} --plugin=os::aix::snmp::plugin
|
|
|
|
|
|
*** Test Cases ***
|
|
list-interfaces ${tc}
|
|
[Tags] os aix
|
|
${command} Catenate
|
|
... ${CMD}
|
|
... --mode=list-interfaces
|
|
... --hostname=${HOSTNAME}
|
|
... --snmp-version=${SNMPVERSION}
|
|
... --snmp-port=${SNMPPORT}
|
|
... --snmp-community=os/aix/snmp/slim_os-aix
|
|
... --snmp-timeout=1
|
|
... ${extra_options}
|
|
|
|
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
|
|
|
Examples: tc extra_options expected_result --
|
|
... 1 ${EMPTY} List interfaces: 'en0' [speed = 1500][status = up][id = 1][type = ethernetCsmacd]
|
|
... 2 --name='en0' List interfaces: 'en0' [speed = 1500][status = up][id = 1][type = ethernetCsmacd]
|
|
... 3 --display-transform-src='en0' --display-transform-dst='test' List interfaces: 'test' [speed = 1500][status = up][id = 1][type = ethernetCsmacd] |