| 1 |
*** Settings *** |
| 2 |
Documentation List VPN. |
| 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::cyberoam::snmp::plugin |
| 11 |
|
| 12 |
|
| 13 |
*** Test Cases *** |
| 14 |
list-vpns ${tc} |
| 15 |
[Tags] network cyberoam |
| 16 |
${command} Catenate |
| 17 |
... ${CMD} |
| 18 |
... --mode=list-vpns |
| 19 |
... --hostname=${HOSTNAME} |
| 20 |
... --snmp-version=${SNMPVERSION} |
| 21 |
... --snmp-port=${SNMPPORT} |
| 22 |
... --snmp-community=network/cyberoam/snmp/slim_sophos |
| 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 ${EMPTY} List vpn [oid_path: 1] [name: Anonymized 093] [policy: Anonymized 208] [description: Anonymized 022] [connection_mode: Anonymized 245] [connection_type: site-to-site] [connection_status: active] [activated: active] [oid_path: 2] [name: Anonymized 252] [policy: Anonymized 055] [description: Anonymized 070] [connection_mode: Anonymized 123] [connection_type: site-to-site] [connection_status: active] [activated: active] [oid_path: 3] [name: Anonymized 029] [policy: Anonymized 151] [description: Anonymized 157] [connection_mode: Anonymized 055] [connection_type: site-to-site] [connection_status: inactive] [activated: active] [oid_path: 4] [name: Anonymized 132] [policy: Anonymized 089] [description: ] [connection_mode: Anonymized 185] [connection_type: site-to-site] [connection_status: active] [activated: active] |
| 30 |
... 2 --filter-name='Anonymized 093' List vpn [oid_path: 1] [name: Anonymized 093] [policy: Anonymized 208] [description: Anonymized 022] [connection_mode: Anonymized 245] [connection_type: site-to-site] [connection_status: active] [activated: active] |
| 31 |
... 3 --filter-connection-status='inactive' List vpn [oid_path: 3] [name: Anonymized 029] [policy: Anonymized 151] [description: Anonymized 157] [connection_mode: Anonymized 055] [connection_type: site-to-site] [connection_status: inactive] [activated: active] |
| 32 |
... 4 --filter-vpn-activated='active' List vpn [oid_path: 1] [name: Anonymized 093] [policy: Anonymized 208] [description: Anonymized 022] [connection_mode: Anonymized 245] [connection_type: site-to-site] [connection_status: active] [activated: active] [oid_path: 2] [name: Anonymized 252] [policy: Anonymized 055] [description: Anonymized 070] [connection_mode: Anonymized 123] [connection_type: site-to-site] [connection_status: active] [activated: active] [oid_path: 3] [name: Anonymized 029] [policy: Anonymized 151] [description: Anonymized 157] [connection_mode: Anonymized 055] [connection_type: site-to-site] [connection_status: inactive] [activated: active] [oid_path: 4] [name: Anonymized 132] [policy: Anonymized 089] [description: ] [connection_mode: Anonymized 185] [connection_type: site-to-site] [connection_status: active] [activated: active] |