Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | *** Settings *** |
| 16 | Documentation Test various E2E conditions for seba-in-a-box |
| 17 | Suite Setup Setup |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 18 | Suite Teardown Teardown |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 19 | Test Setup Setup Test |
| 20 | Test Teardown Test Cleanup |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 21 | Library Collections |
| 22 | Library String |
| 23 | Library OperatingSystem |
| 24 | Library XML |
| 25 | Library RequestsLibrary |
| 26 | Library ../../Framework/utils/utils.py |
| 27 | Resource ../../Framework/utils/utils.robot |
| 28 | Library ../../Framework/restApi.py |
| 29 | Resource ../../Framework/Subscriber.robot |
| 30 | Resource ../../Framework/ATTWorkFlowDriver.robot |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 31 | Resource ../../Framework/Kubernetes.robot |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 32 | Resource ../../Framework/ONU.robot |
| 33 | Resource ../../Framework/DHCP.robot |
| 34 | Variables ../../Properties/RestApiProperties.py |
| 35 | |
| 36 | *** Variables *** |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 37 | ${WHITELIST_PATHFILE} ${CURDIR}/data/SIABWhitelist.json |
| 38 | ${SUBSCRIBER_PATHFILE} ${CURDIR}/data/SIABSubscriber.json |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 39 | ${VOLT_DEVICE_PATHFILE} ${CURDIR}/data/SIABOLTDevice.json |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 40 | ${export_kube_config} export KUBECONFIG=/home/%{USER}/.kube/config |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 41 | ${kube_node_ip} localhost |
| 42 | ${dst_host_ip} 172.18.0.10 |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 43 | ${local_user} %{USER} |
| 44 | ${local_pass} %{USER} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 45 | |
| 46 | *** Test Cases *** |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 47 | ONU in Correct Location |
| 48 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 49 | ... Configure whitelist with correct ONU location |
| 50 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 51 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 52 | [Tags] stable latest test1 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 53 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 54 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 55 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 56 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 57 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 58 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
Kailash Khalasi | c456d15 | 2018-10-26 11:02:06 -0700 | [diff] [blame] | 59 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 60 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 61 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 62 | ${subscriber_id}= Retrieve Subscriber ${c_tag} |
| 63 | CORD Put ${VOLT_SUBSCRIBER} {"status":"disabled"} ${subscriber_id} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 64 | Validate DHCP and Ping True False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 65 | Restart RG Pod |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 66 | CORD Put ${VOLT_SUBSCRIBER} {"status":"enabled"} ${subscriber_id} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 67 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 68 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 69 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 70 | ONU in Correct Location -> Remove ONU from Whitelist -> Add ONU to Whitelist |
| 71 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 72 | ... Configure whitelist with correct ONU location |
| 73 | ... Validate successful authentication/DHCP/E2E ping |
| 74 | ... Remove ONU from whitelist |
| 75 | ... Validate failed authentication/DHCP/E2E ping |
| 76 | ... Add ONU to whitelist |
| 77 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 78 | [Tags] latest test2 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 79 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 80 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 81 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 82 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 83 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 84 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 85 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
| 86 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 87 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 88 | Reset SIAB Environment |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 89 | Remove Whitelist |
| 90 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 91 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 92 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 93 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} False |
| 94 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} False |
| 95 | Validate DHCP and Ping True False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 96 | Reset SIAB Environment |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 97 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 98 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 99 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 100 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 101 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 102 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
| 103 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 104 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 105 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 106 | ONU in Correct Location -> ONU in Wrong Location -> ONU in Correct Location |
| 107 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 108 | ... Configure whitelist with correct ONU location |
| 109 | ... Validate successful authentication/DHCP/E2E ping |
| 110 | ... Update whitelist with wrong ONU location |
| 111 | ... Validate failed authentication/DHCP/E2E ping |
| 112 | ... Update whitelist with correct ONU location |
| 113 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 114 | [Tags] latest test3 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 115 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 116 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 117 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 118 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 119 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 120 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 121 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
| 122 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 123 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 124 | Restart RG Pod |
| 125 | Update Whitelist with Wrong Location |
| 126 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 127 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 128 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} False |
| 129 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} False |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 130 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 131 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 132 | Restart RG Pod |
| 133 | Update Whitelist with Correct Location |
| 134 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 135 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 136 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 137 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 138 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 139 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
| 140 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 141 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 142 | |
| 143 | ONU in Correct Location -> Remove Subscriber -> Create Subscriber |
| 144 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 145 | ... Configure whitelist with correct ONU location |
| 146 | ... Validate successful authentication/DHCP/E2E ping |
| 147 | ... Remove subscriber model |
| 148 | ... Validate failed authentication/DHCP/E2E ping |
| 149 | ... Recreate subscriber model |
| 150 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 151 | [Tags] latest test4 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 152 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 153 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 154 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 155 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 156 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 157 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 158 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
| 159 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 160 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 161 | Restart RG Pod |
| 162 | Remove Subscriber |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 163 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 164 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 165 | Restart RG Pod |
| 166 | Create Subscriber |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 167 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 168 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 169 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 170 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 171 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
| 172 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 173 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 174 | |
| 175 | ONU in Correct Location (Skip Subscriber Provisioning) -> Provision Subscriber |
| 176 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 177 | ... Configure whitelist with correct ONU location and skip provisioning subscriber |
| 178 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
| 179 | ... Provision subscriber |
| 180 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 181 | [Tags] latest test5 |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 182 | Remove Subscriber |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 183 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 184 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 185 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 186 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 187 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 188 | Restart RG Pod |
| 189 | Create Subscriber |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 190 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 191 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 192 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 193 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 194 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
| 195 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 196 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 197 | |
| 198 | ONU in Correct Location (Skip Authentication) |
| 199 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 200 | ... Configure whitelist with correct ONU location and skip RG authentication |
| 201 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 202 | [Tags] stable latest test6 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 203 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 204 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 205 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 206 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} False |
| 207 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} False |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 208 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 209 | |
| 210 | ONU not in Whitelist |
| 211 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 212 | ... Skip whitelist configuration for ONU |
| 213 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 214 | [Tags] stable latest test7 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 215 | [Setup] Simple Setup |
| 216 | Wait Until Keyword Succeeds 60s 2s Create Subscriber |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 217 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 218 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 219 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 220 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 221 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 222 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 223 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} False |
| 224 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} False |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 225 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 226 | |
| 227 | ONU not in Whitelist (Skip Subscriber Provisioning) -> Add ONU to Whitelist -> Provision Subscriber |
| 228 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 229 | ... Skip whitelist configuration for ONU and subscriber provisioning |
| 230 | ... Validate successful authentication but failed DHCP/E2E ping |
| 231 | ... Configure whitelist with correct ONU location |
| 232 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
| 233 | ... Provision subscriber |
| 234 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 235 | [Tags] latest test8 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 236 | [Setup] Simple Setup |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 237 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 238 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 239 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 240 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 241 | Restart RG Pod |
| 242 | Create Whitelist |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 243 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 244 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 245 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 246 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 247 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 248 | Restart RG Pod |
| 249 | Create Subscriber |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 250 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 251 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 252 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 253 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 254 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
| 255 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 256 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 257 | |
| 258 | ONU in Wrong Location |
| 259 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 260 | ... Configure whitelist with wrong ONU location |
| 261 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 262 | [Tags] latest test9 |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 263 | Update Whitelist with Wrong Location |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 264 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 265 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 266 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 267 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 268 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 269 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 270 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} False |
| 271 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} False |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 272 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 273 | |
| 274 | ONU in Wrong Location (Skip Subscriber Provisioning) -> ONU in Correct Location -> Provision Subscriber |
| 275 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 276 | ... Configure whitelist with wrong ONU location and skip subscriber provisioning |
| 277 | ... Validate failed authentication/DHCP/E2E ping |
| 278 | ... Configure whitelist with correct ONU location |
| 279 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
| 280 | ... Provision subscriber |
| 281 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 282 | [Tags] latest test10 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 283 | [Setup] Simple Setup |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 284 | Wait Until Keyword Succeeds 60s 2s Create Whitelist |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 285 | Update Whitelist with Wrong Location |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 286 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 287 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 288 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 289 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 290 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 291 | Restart RG Pod |
| 292 | Update Whitelist with Correct Location |
Kailash | 4423a9d | 2018-11-05 19:40:42 -0800 | [diff] [blame^] | 293 | Reset ONU |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 294 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 295 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 296 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 297 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 298 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 299 | Restart RG Pod |
| 300 | Create Subscriber |
Kailash | 4423a9d | 2018-11-05 19:40:42 -0800 | [diff] [blame^] | 301 | Reset ONU |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 302 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 303 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 304 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 305 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 306 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
| 307 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 308 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 309 | |
| 310 | *** Keywords *** |
| 311 | Setup |
| 312 | ${auth} = Create List ${XOS_USER} ${XOS_PASSWD} |
| 313 | ${HEADERS} Create Dictionary Content-Type=application/json |
| 314 | Create Session ${server_ip} http://${server_ip}:${server_port} auth=${AUTH} headers=${HEADERS} |
| 315 | ${att_workflow_service_id}= Get Service Owner Id ${ATT_SERVICE} |
| 316 | ${volt_service_id}= Get Service Owner Id ${VOLT_SERVICE} |
| 317 | ${AttWhiteListList}= utils.jsonToList ${WHITELIST_PATHFILE} AttWhiteListInfo |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 318 | Set Suite Variable ${AttWhiteListList} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 319 | ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0 |
| 320 | ${AttWhiteListDict}= utils.setFieldValueInDict ${AttWhiteListDict} owner_id ${att_workflow_service_id} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 321 | ${onu_device}= Get From Dictionary ${AttWhiteListDict} serial_number |
| 322 | Log ${onu_device} |
| 323 | Set Global Variable ${onu_device} |
| 324 | ${onu_location}= Get From Dictionary ${AttWhiteListDict} pon_port_id |
| 325 | Set Global Variable ${onu_location} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 326 | ${SubscriberList}= utils.jsonToList ${SUBSCRIBER_PATHFILE} SubscriberInfo |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 327 | Set Global Variable ${SubscriberList} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 328 | ${SubscriberDict}= utils.listToDict ${SubscriberList} 0 |
| 329 | ${s_tag}= utils.getFieldValueFromDict ${SubscriberDict} s_tag |
| 330 | ${c_tag}= utils.getFieldValueFromDict ${SubscriberDict} c_tag |
| 331 | ${VoltDeviceList}= utils.jsonToList ${VOLT_DEVICE_PATHFILE} VOLTDeviceInfo |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 332 | Set Global Variable ${VoltDeviceList} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 333 | Set Suite Variable ${s_tag} |
| 334 | Set Suite Variable ${c_tag} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 335 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 336 | Set Suite Variable ${whitelist_id} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 337 | ${att_si_id}= Retrieve ATT Service Instance ID ${onu_device} |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 338 | Set Suite Variable ${att_si_id} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 339 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 340 | Set Suite Variable ${RG_CONTAINER} |
Kailash Khalasi | b5975cf | 2018-10-01 12:57:44 -0700 | [diff] [blame] | 341 | ## Validate ATT Workflow SI |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 342 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 343 | @{container_list}= Create List |
Kailash Khalasi | dd9136a | 2018-10-18 11:16:18 -0700 | [diff] [blame] | 344 | Append To List ${container_list} att-workflow-att-workflow-driver |
Kailash Khalasi | 3070402 | 2018-10-18 09:13:26 -0700 | [diff] [blame] | 345 | Append To List ${container_list} xos-core |
| 346 | Append To List ${container_list} vcore |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 347 | Set Suite Variable ${container_list} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 348 | ${datetime}= Get Current Datetime On Kubernetes Node localhost ${local_user} ${local_pass} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 349 | Set Suite Variable ${datetime} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 350 | |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 351 | Teardown |
| 352 | Setup Test |
| 353 | Delete All Sessions |
| 354 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 355 | Setup Test |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 356 | ${datetime}= Get Current Datetime On Kubernetes Node ${kube_node_ip} ${local_user} ${local_pass} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 357 | Set Suite Variable ${datetime} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 358 | Wait Until Keyword Succeeds 60s 2s Create Whitelist |
| 359 | Wait Until Keyword Succeeds 60s 2s Create Subscriber |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 360 | Wait Until Keyword Succeeds 120s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 361 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 362 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 363 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 364 | Set Suite Variable ${RG_CONTAINER} |
| 365 | |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 366 | Simple Setup |
| 367 | ${datetime}= Get Current Datetime On Kubernetes Node ${kube_node_ip} ${local_user} ${local_pass} |
| 368 | Set Suite Variable ${datetime} |
| 369 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 370 | Set Suite Variable ${RG_CONTAINER} |
| 371 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 372 | Test Cleanup |
| 373 | [Documentation] Restore back to initial state per each test |
| 374 | Log Kubernetes Containers Logs Since Time ${datetime} ${container_list} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 375 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 376 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 377 | Restart RG Pod |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 378 | |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 379 | Restart RG Pod |
| 380 | Run kubectl -n voltha delete pod ${RG_CONTAINER} |
| 381 | ${RG_CONTAINER}= Wait Until Keyword Succeeds 60s 1s Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 382 | Set Suite Variable ${RG_CONTAINER} |
| 383 | Run kubectl wait -n voltha pod/${RG_CONTAINER} --for condition=Ready --timeout=180s |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 384 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 385 | Create Whitelist |
| 386 | ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0 |
| 387 | ${resp}= CORD Post ${ATT_WHITELIST} ${AttWhiteListDict} |
| 388 | ${whitelist_id}= Get Json Value ${resp.content} /id |
| 389 | Set Global Variable ${whitelist_id} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 390 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 391 | Remove Whitelist |
| 392 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 393 | CORD Delete ${ATT_WHITELIST} ${whitelist_id} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 394 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 395 | Create Subscriber |
| 396 | ${SubscriberDict}= utils.listToDict ${SubscriberList} 0 |
| 397 | CORD Post ${VOLT_SUBSCRIBER} ${SubscriberDict} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 398 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 399 | Remove Subscriber |
| 400 | ${subscriber_id}= Retrieve Subscriber ${c_tag} |
| 401 | CORD Delete ${VOLT_SUBSCRIBER} ${subscriber_id} |
Kailash Khalasi | b5975cf | 2018-10-01 12:57:44 -0700 | [diff] [blame] | 402 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 403 | Create VOLT |
| 404 | ${VoltDeviceDict}= utils.listToDict ${VoltDeviceList} 0 |
| 405 | CORD Post ${VOLT_DEVICE} ${VoltDeviceDict} |
Kailash Khalasi | b5975cf | 2018-10-01 12:57:44 -0700 | [diff] [blame] | 406 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 407 | Update Whitelist with Wrong Location |
| 408 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 409 | CORD Put ${ATT_WHITELIST} {"pon_port_id": 55 } ${whitelist_id} |
| 410 | |
| 411 | Update Whitelist with Correct Location |
| 412 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 413 | CORD Put ${ATT_WHITELIST} {"pon_port_id": ${onu_location} } ${whitelist_id} |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 414 | |
| 415 | Reset SIAB Environment |
| 416 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER} |
| 417 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST} |
| 418 | Restart RG Pod |
| 419 | Wait Until Keyword Succeeds 60s 2s Create Whitelist |
| 420 | Wait Until Keyword Succeeds 60s 2s Create Subscriber |
| 421 | Reset ONU |
| 422 | Wait Until Keyword Succeeds 120s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 423 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 424 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 425 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 426 | Set Suite Variable ${RG_CONTAINER} |
| 427 | |
| 428 | Reset ONU |
| 429 | CORD Put /xosapi/v1/volt/onudevices {"admin_state": "DISABLED" } 1 |
| 430 | Sleep 10 |
| 431 | CORD Put /xosapi/v1/volt/onudevices {"admin_state": "ENABLED" } 1 |
Kailash | 4423a9d | 2018-11-05 19:40:42 -0800 | [diff] [blame^] | 432 | Sleep 10 |