Skip to content

Commit

Permalink
changing --verbose with ${EMPTY}
Browse files Browse the repository at this point in the history
  • Loading branch information
sfarouq-ext committed Dec 16, 2024
1 parent a345bc4 commit 27e7da6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion tests/network/cyberoam/snmp/ha-status.robot
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ha-status ${tc}
Ctn Run Command And Check Result As Strings ${command} ${expected_result}

Examples: tc extra_options expected_result --
... 1 --verbose OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 1 ${EMPTY} OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 2 --warning-status='\\\%{hastate} ne "down"' WARNING: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 3 --critical-status='\\\%{hastatus} ne "down"' CRITICAL: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 4 --no-ha-status='UNKNOWN' OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
2 changes: 1 addition & 1 deletion tests/network/cyberoam/snmp/interfaces.robot
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interfaces ${tc}
Ctn Verify Command Output ${command} ${expected_result}

Examples: tc extra_options expected_result --
... 1 --verbose CRITICAL: Interface 'Anonymized 232' Status : down (admin: up) - Interface 'Anonymized 191' Status : down (admin: up) - Interface 'Anonymized 141' Status : down (admin: up) Interface 'Anonymized 250' Status : up (admin: up) Interface 'Anonymized 012' Status : up (admin: up) Interface 'Anonymized 118' Status : up (admin: up) Interface 'Anonymized 073' Status : up (admin: up) Interface 'Anonymized 071' Status : down (admin: down) Interface 'Anonymized 073' Status : up (admin: up) Interface 'Anonymized 232' Status : down (admin: up) Interface 'Anonymized 191' Status : down (admin: up) Interface 'Anonymized 242' Status : up (admin: up) Interface 'Anonymized 175' Status : down (admin: down)
... 1 ${EMPTY} CRITICAL: Interface 'Anonymized 232' Status : down (admin: up) - Interface 'Anonymized 191' Status : down (admin: up) - Interface 'Anonymized 141' Status : down (admin: up) Interface 'Anonymized 250' Status : up (admin: up) Interface 'Anonymized 012' Status : up (admin: up) Interface 'Anonymized 118' Status : up (admin: up) Interface 'Anonymized 073' Status : up (admin: up) Interface 'Anonymized 071' Status : down (admin: down) Interface 'Anonymized 073' Status : up (admin: up) Interface 'Anonymized 232' Status : down (admin: up) Interface 'Anonymized 191' Status : down (admin: up) Interface 'Anonymized 242' Status : up (admin: up) Interface 'Anonymized 175' Status : down (admin: down)
... 2 --add-global OK: Total port : 33, AdminStatus Up : 21, AdminStatus Down : 12, OperStatus Up : 18, OperStatus Down : 15 | 'total_port'=33;;;0;33 'total_admin_up'=21;;;0;33 'total_admin_down'=12;;;0;33 'total_oper_up'=18;;;0;33 'global_oper_down'=15;;;0;33
... 3 --add-status='Up' CRITICAL: Interface 'Anonymized 232' Status : down (admin: up) - Interface 'Anonymized 191' Status : down (admin: up) - Interface 'Anonymized 141' Status : down (admin: up)
... 4 --add-duplex-status CRITICAL: Interface 'Anonymized 232' Status : down (admin: up) (duplex: n/a) - Interface 'Anonymized 191' Status : down (admin: up) (duplex: n/a) - Interface 'Anonymized 141' Status : down (admin: up) (duplex: n/a)
Expand Down
18 changes: 9 additions & 9 deletions tests/network/cyberoam/snmp/license.robot
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ ha-status ${tc}

Ctn Run Command And Check Result As Strings ${command} ${expected_result}

Examples: tc extra_options expected_result --
... 1 --verbose OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 2 --warning-status=\\\%{hastatus} OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 3 --critical-status='\\\%{hastatus} ne "primary"' CRITICAL: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 4 --no-ha-status='Critical' OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 5 --warning-status='\\\%{hastatus} ne "primary"' WARNING: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 6 --warning-status='\\\%{hastatus} ne "enabled"' WARNING: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 7 --critical-status='\\\%{peer_hastate} ne "auxiliary"' OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 8 --critical-status='\\\%{peer_hastate} ne "auxiliary"' OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
Examples: tc extra_options expected_result --
... 1 ${EMPTY} OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 2 --warning-status=\\\%{hastatus} OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 3 --critical-status='\\\%{hastatus} ne "primary"' CRITICAL: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 4 --no-ha-status='Critical' OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 5 --warning-status='\\\%{hastatus} ne "primary"' WARNING: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 6 --warning-status='\\\%{hastatus} eq "enabled"' OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 7 --critical-status='\\\%{peer_hastate} ne "auxiliary"' OK: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
... 8 --critical-status='\\\%{peer_hastate} ne "primary"' CRITICAL: Current HA State: 'primary' Peer HA State: 'auxiliary' HA Port: 'Anonymized 007' HA IP: '192.168.42.167' Peer IP: '192.168.42.23'
2 changes: 1 addition & 1 deletion tests/network/cyberoam/snmp/list-interfaces.robot
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ list-interfaces ${tc}
Ctn Verify Command Output ${command} ${expected_result}

Examples: tc extra_options expected_result --
... 1 --verbose List interfaces: 'Anonymized 250' [speed = 10][status = up][id = 1][type = softwareLoopback] 'Anonymized 012' [speed = 1000][status = up][id = 10][type = ethernetCsmacd] 'Anonymized 118' [speed = 1000][status = up][id = 11][type = ethernetCsmacd] 'Anonymized 073' [speed = 1000][status = up][id = 12][type = ethernetCsmacd] 'Anonymized 071' [speed = ][status = down][id = 13][type = ethernetCsmacd] 'Anonymized 073' [speed = 1000][status = up][id = 14][type = ethernetCsmacd] 'Anonymized 232' [speed = ][status = down][id = 15][type = ethernetCsmacd] 'Anonymized 191' [speed = ][status = down][id = 16][type = ethernetCsmacd] 'Anonymized 242' [speed = 1000][status = up][id = 17][type = ethernetCsmacd] 'Anonymized 175' [speed = ][status = down][id = 18][type = ethernetCsmacd] 'Anonymized 128' [speed = ][status = down][id = 19][type = ethernetCsmacd] 'Anonymized 037' [speed = ][status = up][id = 2][type = ethernetCsmacd]
... 1 ${EMPTY} List interfaces: 'Anonymized 250' [speed = 10][status = up][id = 1][type = softwareLoopback] 'Anonymized 012' [speed = 1000][status = up][id = 10][type = ethernetCsmacd] 'Anonymized 118' [speed = 1000][status = up][id = 11][type = ethernetCsmacd] 'Anonymized 073' [speed = 1000][status = up][id = 12][type = ethernetCsmacd] 'Anonymized 071' [speed = ][status = down][id = 13][type = ethernetCsmacd] 'Anonymized 073' [speed = 1000][status = up][id = 14][type = ethernetCsmacd] 'Anonymized 232' [speed = ][status = down][id = 15][type = ethernetCsmacd] 'Anonymized 191' [speed = ][status = down][id = 16][type = ethernetCsmacd] 'Anonymized 242' [speed = 1000][status = up][id = 17][type = ethernetCsmacd] 'Anonymized 175' [speed = ][status = down][id = 18][type = ethernetCsmacd] 'Anonymized 128' [speed = ][status = down][id = 19][type = ethernetCsmacd] 'Anonymized 037' [speed = ][status = up][id = 2][type = ethernetCsmacd]
... 2 --interface=1 List interfaces: 'Anonymized 250' [speed = 10][status = up][id = 1][type = softwareLoopback]
... 3 --name='Anonymized 027' List interfaces: 'Anonymized 250' [speed = 10][status = up][id = 1][type = softwareLoopback] 'Anonymized 012' [speed = 1000][status = up][id = 10][type = ethernetCsmacd] 'Anonymized 118' [speed = 1000][status = up][id = 11][type = ethernetCsmacd] 'Anonymized 073' [speed = 1000][status = up][id = 12][type = ethernetCsmacd] 'Anonymized 071' [speed = ][status = down][id = 13][type = ethernetCsmacd] 'Anonymized 073' [speed = 1000][status = up][id = 14][type = ethernetCsmacd] 'Anonymized 232' [speed = ][status = down][id = 15][type = ethernetCsmacd] 'Anonymized 191' [speed = ][status = down][id = 16][type = ethernetCsmacd] 'Anonymized 242' [speed = 1000][status = up][id = 17][type = ethernetCsmacd] 'Anonymized 175' [speed = ][status = down][id = 18][type = ethernetCsmacd] 'Anonymized 128' [speed = ][status = down][id = 19][type = ethernetCsmacd] 'Anonymized 037' [speed = ][status = up][id = 2][type = ethernetCsmacd]
... 4 --speed=20 List interfaces: 'Anonymized 250' [speed = 20][status = up][id = 1][type = softwareLoopback] 'Anonymized 012' [speed = 20][status = up][id = 10][type = ethernetCsmacd] 'Anonymized 118' [speed = 20][status = up][id = 11][type = ethernetCsmacd] 'Anonymized 073' [speed = 20][status = up][id = 12][type = ethernetCsmacd] 'Anonymized 071' [speed = 20][status = down][id = 13][type = ethernetCsmacd] 'Anonymized 073' [speed = 20][status = up][id = 14][type = ethernetCsmacd] 'Anonymized 232' [speed = 20][status = down][id = 15][type = ethernetCsmacd] 'Anonymized 191' [speed = 20][status = down][id = 16][type = ethernetCsmacd] 'Anonymized 242' [speed = 20][status = up][id = 17][type = ethernetCsmacd] 'Anonymized 175' [speed = 20][status = down][id = 18][type = ethernetCsmacd] 'Anonymized 128' [speed = 20][status = down][id = 19][type = ethernetCsmacd] 'Anonymized 037' [speed = 20][status = up][id = 2][type = ethernetCsmacd]
Expand Down
2 changes: 1 addition & 1 deletion tests/network/cyberoam/snmp/list-vpns.robot
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ list-vpns ${tc}
Ctn Run Command And Check Result As Strings ${command} ${expected_result}

Examples: tc extra_options expected_result --
... 1 --verbose 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]
... 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]
... 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]
... 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]
... 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]
Loading

0 comments on commit 27e7da6

Please sign in to comment.