[SEBA-387] WIP RG reboot scenario
Change-Id: I27e54ad8a62bc621532888868ba8bc99da87b25a
diff --git a/src/test/cord-api/Tests/WorkflowValidations/DataPlane_FailureTests.robot b/src/test/cord-api/Tests/WorkflowValidations/DataPlane_FailureTests.robot
index 58b0cd4..9b55a7b 100644
--- a/src/test/cord-api/Tests/WorkflowValidations/DataPlane_FailureTests.robot
+++ b/src/test/cord-api/Tests/WorkflowValidations/DataPlane_FailureTests.robot
@@ -81,7 +81,7 @@
... Validate that pings fail
... Validate successful authentication/DHCP/E2E ping after OLT comes back up
#[Setup] None
- [Teardown] None
+ #[Teardown] None
[Tags] fabric1
Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device}
Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device}
@@ -101,6 +101,35 @@
Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device}
Wait Until Keyword Succeeds 60s 2s Check Ping True ${dst_dp_ip} ${src_iface} ${src_ip} ${src_user} ${src_pass}
+Subscriber(RG) Reboot
+ [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
+ ... Configure whitelist with correct ONU location
+ ... Validate successful authentication/DHCP/E2E ping
+ ... Reboots RG
+ ... Validate that pings fail
+ ... Validate successful authentication/DHCP/E2E ping after OLT comes back up
+ [Tags] RG-reboot
+ Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device}
+ Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device}
+ Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device}
+ Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name}
+ Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device}
+ Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device}
+ Validate DHCP and Ping True True ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name}
+ # Reboot RG
+ Login And Run Command On Remote System sudo reboot ${src_ip} ${src_user} ${src_pass} prompt=$
+ Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability False ${fabric_ip}
+ Wait Until Keyword Succeeds 60s 2s Check Ping False ${dst_dp_ip} ${src_iface} ${src_ip} ${src_user} ${src_pass}
+ Wait Until Keyword Succeeds 150s 10s Check Remote System Reachability True ${src_ip}
+ Wait Until Keyword Succeeds 60s 2s Check Ping False ${dst_dp_ip} ${src_iface} ${src_ip} ${src_user} ${src_pass}
+ # Perform Reauthentication/DHCP and Ping
+ Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device}
+ Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device}
+ Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name}
+ Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device}
+ Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device}
+ Validate DHCP and Ping True True ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name}
+
*** Keywords ***
Setup Suite
${auth} = Create List ${XOS_USER} ${XOS_PASSWD}