Skip to content

Commit 999964d

Browse files
meghagn5gkeishin
authored andcommitted
Added new test case to SNMP-Alerts submenu
Changes: - Added test to configure SNMP manager with empty IP, negative IPand alphanumeric port and verify Tested: - Ran successfully test_snmp_alerts_sub_menu.robot Change-Id: I4a8be9c63e426d22e131216c1817a3b83a2d5e9d Signed-off-by: Megha G N <[email protected]>
1 parent 0967989 commit 999964d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

gui/gui_test/settings_menu/test_snmp_alerts_sub_menu.robot

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,11 @@ Configure Invalid SNMP Settings On BMC Via GUI And Verify
115115
${SNMP_MGR1_IP} ${out_of_range_port} ${invalid_port_error}
116116
${SNMP_MGR1_IP} ${alpha_port} ${invalid_port_error}
117117
${SNMP_MGR1_IP} ${negative_port} ${invalid_port_error}
118+
${SNMP_MGR1_IP} ${alphanumeric_port} ${invalid_port_error}
118119
${out_of_range_ip} ${NON_DEFAULT_PORT1} ${invalid_destination_error}
119120
${alpha_ip} ${NON_DEFAULT_PORT1} ${invalid_destination_error}
121+
${negative_ip} ${NON_DEFAULT_PORT1} ${invalid_destination_error}
122+
${empty_ip} ${NON_DEFAULT_PORT1} ${invalid_destination_error}
120123

121124

122125
Configure Multiple SNMP Managers On BMC Via GUI And Verify

lib/snmp/resource.robot

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ ${SNMP_MGR3_IP} 10.6.6.8
1111
${out_of_range_ip} 10.6.6.256
1212
${alpha_ip} xx.xx.xx.xx
1313
${less_octet_ip} 10.5.5
14+
${negative_ip} -10.6.6.6
15+
${empty_ip} ${EMPTY}
1416

1517
# Valid and invalid IP and ports. Valid port range is 0-65535.
1618
# Default port is 162.
@@ -22,6 +24,7 @@ ${out_of_range_port} ${65536}
2224
${alpha_port} ab
2325
${negative_port} ${-12}
2426
${empty_port} ${EMPTY}
27+
${alphanumeric_port} abc123
2528

2629
# User Name Password
2730
${SNMP_MGR1_USERNAME} ${EMPTY}

0 commit comments

Comments
 (0)