Add test case for invalid static IPv6
Changes:
Add a new test case for invalid static IPv6
Tested:
Ran and Tested on BMC Environment
Change-Id: If6f8b2e4ebd7534c1f7b911ed353fd2846ea115c
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/lib/external_intf/vmi_utils.robot b/lib/external_intf/vmi_utils.robot
index 21b7c22..836e9c8 100644
--- a/lib/external_intf/vmi_utils.robot
+++ b/lib/external_intf/vmi_utils.robot
@@ -31,6 +31,7 @@
${wait_time} 40s
${ethernet_interface} eth0
+${ipv4_hexword_addr} 10.5.5.6:1A:1B:1C:1D:1E:1F
*** Keywords ***
diff --git a/redfish/managers/test_bmc_ipv6.robot b/redfish/managers/test_bmc_ipv6.robot
index 3f47a1c..9add51e 100644
--- a/redfish/managers/test_bmc_ipv6.robot
+++ b/redfish/managers/test_bmc_ipv6.robot
@@ -121,6 +121,15 @@
Set And Verify DHCPv6 Property Enabled
+Configure Invalid Static IPv6 And Verify
+ [Documentation] Configure invalid static IPv6 and verify.
+ [Tags] Configure_Invalid_Static_IPv6_And_Verify
+ [Template] Configure IPv6 Address On BMC
+
+ #invalid_ipv6 prefix length valid_status_code
+ ${ipv4_hexword_addr} ${test_prefix_length} ${HTTP_BAD_REQUEST}
+
+
*** Keywords ***
Suite Setup Execution
@@ -502,6 +511,7 @@
Run Keyword If '${slaac_verify['IPv6AutoConfigEnabled']}' != '${slaac_state}'
... Fail msg=SLAACv6 not set properly.
+
Set And Verify DHCPv6 Property
[Documentation] Set DHCPv6 attribute and verify.
[Arguments] ${dhcpv6_operating_mode}=${Disabled}
@@ -520,3 +530,4 @@
${dhcpv6_verify}= Get From Dictionary ${resp.dict} DHCPv6
Should Be Equal '${dhcpv6_verify['OperatingMode']}' '${dhcpv6_operating_mode}'
+