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 |
Andy Bavier | b6f5754 | 2019-03-11 14:41:03 -0700 | [diff] [blame] | 26 | Library ${VOLTHA_DIR}/tests/atests/common/testCaseUtils.py |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 27 | Library ../../Framework/utils/utils.py |
| 28 | Resource ../../Framework/utils/utils.robot |
| 29 | Library ../../Framework/restApi.py |
| 30 | Resource ../../Framework/Subscriber.robot |
| 31 | Resource ../../Framework/ATTWorkFlowDriver.robot |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 32 | Resource ../../Framework/Kubernetes.robot |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 33 | Resource ../../Framework/ONU.robot |
Kailash | aca803e | 2019-03-05 15:04:31 -0800 | [diff] [blame] | 34 | Resource ../../Framework/OLT.robot |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 35 | Resource ../../Framework/DHCP.robot |
| 36 | Variables ../../Properties/RestApiProperties.py |
| 37 | |
| 38 | *** Variables *** |
Andy Bavier | b6f5754 | 2019-03-11 14:41:03 -0700 | [diff] [blame] | 39 | ${VOLTHA_DIR} ~/cord/incubator/voltha |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 40 | ${WHITELIST_PATHFILE} ${CURDIR}/data/SIABWhitelist.json |
| 41 | ${SUBSCRIBER_PATHFILE} ${CURDIR}/data/SIABSubscriber.json |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 42 | ${VOLT_DEVICE_PATHFILE} ${CURDIR}/data/SIABOLTDevice.json |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 43 | ${export_kube_config} export KUBECONFIG=/home/%{USER}/.kube/config |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 44 | ${kube_node_ip} localhost |
| 45 | ${dst_host_ip} 172.18.0.10 |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 46 | ${local_user} %{USER} |
Kailash | abb029d | 2019-02-15 17:17:11 -0800 | [diff] [blame] | 47 | ${local_pass} ${None} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 48 | |
| 49 | *** Test Cases *** |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 50 | ONU in Correct Location |
| 51 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 52 | ... Configure whitelist with correct ONU location |
| 53 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 54 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 55 | [Tags] stable latest test1 |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 56 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 57 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 58 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 59 | 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] | 60 | ${subscriber_id}= Retrieve Subscriber ${c_tag} |
| 61 | CORD Put ${VOLT_SUBSCRIBER} {"status":"disabled"} ${subscriber_id} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 62 | No Subscriber Service Chain |
Andy Bavier | 81de8b7 | 2018-11-20 10:15:06 -0700 | [diff] [blame] | 63 | 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] | 64 | Restart RG Pod |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 65 | CORD Put ${VOLT_SUBSCRIBER} {"status":"awaiting-auth"} ${subscriber_id} |
| 66 | # ATTWD SI auth_state is already "APPROVED" here from previous auth... not sure if this matters |
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} |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 68 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 69 | 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] | 70 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 71 | ONU in Correct Location -> Remove ONU from Whitelist -> Add ONU to Whitelist |
| 72 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 73 | ... Configure whitelist with correct ONU location |
| 74 | ... Validate successful authentication/DHCP/E2E ping |
| 75 | ... Remove ONU from whitelist |
| 76 | ... Validate failed authentication/DHCP/E2E ping |
| 77 | ... Add ONU to whitelist |
| 78 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 79 | [Tags] stable latest test2 |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 80 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 81 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 82 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 83 | 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] | 84 | Reset SIAB Environment |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 85 | Remove Whitelist |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 86 | Wait Until Keyword Succeeds 120s 2s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 87 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU not found in whitelist |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 88 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash | a02472b | 2018-12-18 09:18:20 -0800 | [diff] [blame] | 89 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 90 | No Subscriber Service Chain |
Kailash | a02472b | 2018-12-18 09:18:20 -0800 | [diff] [blame] | 91 | 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 | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 92 | Reset SIAB Environment |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 93 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 94 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 95 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 96 | 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] | 97 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 98 | ONU in Correct Location -> ONU in Wrong Location -> ONU in Correct Location |
| 99 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 100 | ... Configure whitelist with correct ONU location |
| 101 | ... Validate successful authentication/DHCP/E2E ping |
| 102 | ... Update whitelist with wrong ONU location |
| 103 | ... Validate failed authentication/DHCP/E2E ping |
| 104 | ... Update whitelist with correct ONU location |
| 105 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 106 | [Tags] stable latest test3 |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 107 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 108 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 109 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 110 | 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] | 111 | Restart RG Pod |
| 112 | Update Whitelist with Wrong Location |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 113 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU activated in wrong location |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 114 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 115 | No Subscriber Service Chain |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 116 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 117 | 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] | 118 | Restart RG Pod |
| 119 | Update Whitelist with Correct Location |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 120 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 121 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 122 | Subscriber Service Chain Created |
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 | |
| 125 | ONU in Correct Location -> Remove Subscriber -> Create Subscriber |
| 126 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 127 | ... Configure whitelist with correct ONU location |
| 128 | ... Validate successful authentication/DHCP/E2E ping |
| 129 | ... Remove subscriber model |
| 130 | ... Validate failed authentication/DHCP/E2E ping |
| 131 | ... Recreate subscriber model |
| 132 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 133 | [Tags] stable latest test4 |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 134 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 135 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 136 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 137 | 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] | 138 | Restart RG Pod |
| 139 | Remove Subscriber |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 140 | No Subscriber Service Chain |
Andy Bavier | 3d6ac1a | 2018-11-20 15:23:40 -0700 | [diff] [blame] | 141 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 142 | 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] | 143 | Restart RG Pod |
| 144 | Create Subscriber |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 145 | 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] | 146 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 147 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 148 | 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] | 149 | |
| 150 | ONU in Correct Location (Skip Subscriber Provisioning) -> Provision Subscriber |
| 151 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 152 | ... Configure whitelist with correct ONU location and skip provisioning subscriber |
| 153 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
| 154 | ... Provision subscriber |
| 155 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 156 | [Tags] stable latest test5 |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 157 | Remove Subscriber |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 158 | 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] | 159 | 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] | 160 | 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] | 161 | 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] | 162 | 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] | 163 | Restart RG Pod |
| 164 | Create Subscriber |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 165 | 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] | 166 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 167 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 168 | 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] | 169 | |
| 170 | ONU in Correct Location (Skip Authentication) |
| 171 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 172 | ... Configure whitelist with correct ONU location and skip RG authentication |
| 173 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 174 | [Tags] stable latest test6 |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 175 | Subscriber Ready to Authenticate |
| 176 | No Subscriber Service Chain |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 177 | 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] | 178 | |
| 179 | ONU not in Whitelist |
| 180 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 181 | ... Skip whitelist configuration for ONU |
| 182 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 183 | [Tags] stable latest test7 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 184 | [Setup] Simple Setup |
Kailash Khalasi | 8b3523c | 2018-11-08 15:31:49 -0800 | [diff] [blame] | 185 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 186 | Wait Until Keyword Succeeds 60s 2s Create Subscriber |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 187 | 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] | 188 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
Kailash Khalasi | 8b3523c | 2018-11-08 15:31:49 -0800 | [diff] [blame] | 189 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} pre-provisioned |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 190 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 191 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU not found in whitelist |
Kailash Khalasi | 8b3523c | 2018-11-08 15:31:49 -0800 | [diff] [blame] | 192 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} pre-provisioned |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 193 | No Subscriber Service Chain |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 194 | 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] | 195 | |
| 196 | ONU not in Whitelist (Skip Subscriber Provisioning) -> Add ONU to Whitelist -> Provision Subscriber |
| 197 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 198 | ... Skip whitelist configuration for ONU and subscriber provisioning |
| 199 | ... Validate successful authentication but failed DHCP/E2E ping |
| 200 | ... Configure whitelist with correct ONU location |
| 201 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
| 202 | ... Provision subscriber |
| 203 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | c747751 | 2018-11-08 07:55:01 -0800 | [diff] [blame] | 204 | [Tags] latest test8 stable |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 205 | [Setup] Simple Setup |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 206 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 207 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU not found in whitelist |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 208 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 209 | 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] | 210 | Restart RG Pod |
| 211 | Create Whitelist |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 212 | 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] | 213 | 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] | 214 | 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] | 215 | 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] | 216 | 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] | 217 | Restart RG Pod |
| 218 | Create Subscriber |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 219 | 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] | 220 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 221 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 222 | 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] | 223 | |
| 224 | ONU in Wrong Location |
| 225 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 226 | ... Configure whitelist with wrong ONU location |
| 227 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | c747751 | 2018-11-08 07:55:01 -0800 | [diff] [blame] | 228 | [Tags] latest test9 stable |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 229 | Update Whitelist with Wrong Location |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 230 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 231 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU activated in wrong location |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 232 | 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] | 233 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 234 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU activated in wrong location |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 235 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 236 | No Subscriber Service Chain |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 237 | 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] | 238 | |
| 239 | ONU in Wrong Location (Skip Subscriber Provisioning) -> ONU in Correct Location -> Provision Subscriber |
| 240 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 241 | ... Configure whitelist with wrong ONU location and skip subscriber provisioning |
| 242 | ... Validate failed authentication/DHCP/E2E ping |
| 243 | ... Configure whitelist with correct ONU location |
| 244 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
| 245 | ... Provision subscriber |
| 246 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 247 | [Tags] stable latest test10 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 248 | [Setup] Simple Setup |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 249 | Wait Until Keyword Succeeds 60s 2s Create Whitelist |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 250 | Update Whitelist with Wrong Location |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 251 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 252 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU activated in wrong location |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 253 | 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] | 254 | 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] | 255 | 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] | 256 | Restart RG Pod |
| 257 | Update Whitelist with Correct Location |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 258 | 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] | 259 | 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] | 260 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash | 4b39ecf | 2018-12-18 08:35:34 -0800 | [diff] [blame] | 261 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
Kailash | a02472b | 2018-12-18 09:18:20 -0800 | [diff] [blame] | 262 | 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] | 263 | Restart RG Pod |
| 264 | Create Subscriber |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 265 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} pre-provisioned |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 266 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 267 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 268 | 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] | 269 | |
| 270 | *** Keywords *** |
| 271 | Setup |
| 272 | ${auth} = Create List ${XOS_USER} ${XOS_PASSWD} |
| 273 | ${HEADERS} Create Dictionary Content-Type=application/json |
| 274 | Create Session ${server_ip} http://${server_ip}:${server_port} auth=${AUTH} headers=${HEADERS} |
| 275 | ${att_workflow_service_id}= Get Service Owner Id ${ATT_SERVICE} |
| 276 | ${volt_service_id}= Get Service Owner Id ${VOLT_SERVICE} |
| 277 | ${AttWhiteListList}= utils.jsonToList ${WHITELIST_PATHFILE} AttWhiteListInfo |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 278 | Set Suite Variable ${AttWhiteListList} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 279 | ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0 |
| 280 | ${AttWhiteListDict}= utils.setFieldValueInDict ${AttWhiteListDict} owner_id ${att_workflow_service_id} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 281 | ${onu_device}= Get From Dictionary ${AttWhiteListDict} serial_number |
| 282 | Log ${onu_device} |
| 283 | Set Global Variable ${onu_device} |
| 284 | ${onu_location}= Get From Dictionary ${AttWhiteListDict} pon_port_id |
| 285 | Set Global Variable ${onu_location} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 286 | ${SubscriberList}= utils.jsonToList ${SUBSCRIBER_PATHFILE} SubscriberInfo |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 287 | Set Global Variable ${SubscriberList} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 288 | ${SubscriberDict}= utils.listToDict ${SubscriberList} 0 |
| 289 | ${s_tag}= utils.getFieldValueFromDict ${SubscriberDict} s_tag |
| 290 | ${c_tag}= utils.getFieldValueFromDict ${SubscriberDict} c_tag |
| 291 | ${VoltDeviceList}= utils.jsonToList ${VOLT_DEVICE_PATHFILE} VOLTDeviceInfo |
Kailash Khalasi | 4e1ce76 | 2018-12-18 20:29:29 -0800 | [diff] [blame] | 292 | ${VoltDeviceDict}= utils.setFieldValueInDict ${VoltDeviceList[0]} volt_service_id ${volt_service_id} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 293 | Set Global Variable ${VoltDeviceList} |
Kailash Khalasi | 4e1ce76 | 2018-12-18 20:29:29 -0800 | [diff] [blame] | 294 | Set Global Variable ${VoltDeviceDict} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 295 | Set Suite Variable ${s_tag} |
| 296 | Set Suite Variable ${c_tag} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 297 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 298 | Set Suite Variable ${whitelist_id} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 299 | ${att_si_id}= Retrieve ATT Service Instance ID ${onu_device} |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 300 | Set Suite Variable ${att_si_id} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 301 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 302 | Set Suite Variable ${RG_CONTAINER} |
Kailash Khalasi | b5975cf | 2018-10-01 12:57:44 -0700 | [diff] [blame] | 303 | ## Validate ATT Workflow SI |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 304 | 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] | 305 | @{container_list}= Create List |
Kailash Khalasi | dd9136a | 2018-10-18 11:16:18 -0700 | [diff] [blame] | 306 | Append To List ${container_list} att-workflow-att-workflow-driver |
Kailash Khalasi | e59ba70 | 2018-12-18 19:36:03 -0800 | [diff] [blame] | 307 | Append To List ${container_list} seba-services-fabric-crossconnect |
| 308 | Append To List ${container_list} seba-services-rcord |
| 309 | Append To List ${container_list} seba-services-volt |
Kailash Khalasi | 3070402 | 2018-10-18 09:13:26 -0700 | [diff] [blame] | 310 | Append To List ${container_list} xos-core |
| 311 | Append To List ${container_list} vcore |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 312 | Set Suite Variable ${container_list} |
Kailash | abb029d | 2019-02-15 17:17:11 -0800 | [diff] [blame] | 313 | Setup SSH Keys to Localhost |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 314 | ${datetime}= Get Current Datetime On Kubernetes Node localhost ${local_user} ${local_pass} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 315 | Set Suite Variable ${datetime} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 316 | |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 317 | Teardown |
| 318 | Setup Test |
| 319 | Delete All Sessions |
| 320 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 321 | Setup Test |
Kailash | 6e02a07 | 2019-04-04 09:33:43 -0700 | [diff] [blame] | 322 | ${datetime}= Run date +"%Y-%m-%dT%H:%M:%S.%NZ" |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 323 | Set Suite Variable ${datetime} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 324 | Wait Until Keyword Succeeds 60s 2s Create Subscriber |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 325 | Wait Until Keyword Succeeds 60s 2s Create Whitelist |
| 326 | Subscriber Ready to Authenticate |
| 327 | |
| 328 | Subscriber Ready to Authenticate |
| 329 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 330 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} ONU has been validated - Awaiting Authentication |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 331 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 332 | |
| 333 | Subscriber Service Chain Created |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 334 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} ONU has been validated - Authentication succeeded |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 335 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 336 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
| 337 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash | 66b9a8d | 2019-02-07 10:18:55 -0800 | [diff] [blame] | 338 | Wait Until Keyword Succeeds 60s 2s Validate XConnect in ONOS True |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 339 | |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 340 | No Subscriber Service Chain |
| 341 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} False |
| 342 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} False |
Kailash | 66b9a8d | 2019-02-07 10:18:55 -0800 | [diff] [blame] | 343 | Wait Until Keyword Succeeds 60s 2s Validate XConnect in ONOS False |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 344 | |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 345 | Simple Setup |
Kailash | 6e02a07 | 2019-04-04 09:33:43 -0700 | [diff] [blame] | 346 | ${datetime}= Run date +"%Y-%m-%dT%H:%M:%S.%NZ" |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 347 | Set Suite Variable ${datetime} |
| 348 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 349 | Set Suite Variable ${RG_CONTAINER} |
| 350 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 351 | Test Cleanup |
| 352 | [Documentation] Restore back to initial state per each test |
Kailash | aca803e | 2019-03-05 15:04:31 -0800 | [diff] [blame] | 353 | Get VOLTHA Status |
| 354 | Get ONOS Status |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 355 | Log Kubernetes Containers Logs Since Time ${datetime} ${container_list} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 356 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST} |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 357 | Wait Until Keyword Succeeds 30s 2s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 358 | Wait Until Keyword Succeeds 30s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 359 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER} |
| 360 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} False |
| 361 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} False |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 362 | Restart RG Pod |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 363 | |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 364 | Restart RG Pod |
| 365 | Run kubectl -n voltha delete pod ${RG_CONTAINER} |
| 366 | ${RG_CONTAINER}= Wait Until Keyword Succeeds 60s 1s Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 367 | Set Suite Variable ${RG_CONTAINER} |
| 368 | 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] | 369 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 370 | Create Whitelist |
| 371 | ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0 |
| 372 | ${resp}= CORD Post ${ATT_WHITELIST} ${AttWhiteListDict} |
| 373 | ${whitelist_id}= Get Json Value ${resp.content} /id |
| 374 | Set Global Variable ${whitelist_id} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 375 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 376 | Remove Whitelist |
| 377 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 378 | CORD Delete ${ATT_WHITELIST} ${whitelist_id} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 379 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 380 | Create Subscriber |
| 381 | ${SubscriberDict}= utils.listToDict ${SubscriberList} 0 |
| 382 | CORD Post ${VOLT_SUBSCRIBER} ${SubscriberDict} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 383 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 384 | Remove Subscriber |
| 385 | ${subscriber_id}= Retrieve Subscriber ${c_tag} |
| 386 | CORD Delete ${VOLT_SUBSCRIBER} ${subscriber_id} |
Kailash Khalasi | b5975cf | 2018-10-01 12:57:44 -0700 | [diff] [blame] | 387 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 388 | Create VOLT |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 389 | CORD Post ${VOLT_DEVICE} ${VoltDeviceDict} |
Kailash Khalasi | b5975cf | 2018-10-01 12:57:44 -0700 | [diff] [blame] | 390 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 391 | Update Whitelist with Wrong Location |
| 392 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 393 | CORD Put ${ATT_WHITELIST} {"pon_port_id": 55 } ${whitelist_id} |
| 394 | |
| 395 | Update Whitelist with Correct Location |
| 396 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 397 | CORD Put ${ATT_WHITELIST} {"pon_port_id": ${onu_location} } ${whitelist_id} |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 398 | |
| 399 | Reset SIAB Environment |
| 400 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER} |
| 401 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST} |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 402 | Wait Until Keyword Succeeds 30s 2s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 403 | Wait Until Keyword Succeeds 30s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 404 | Restart RG Pod |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 405 | Wait Until Keyword Succeeds 60s 2s Create Subscriber |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 406 | Wait Until Keyword Succeeds 60s 2s Create Whitelist |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 407 | Subscriber Ready to Authenticate |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 408 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 409 | Set Suite Variable ${RG_CONTAINER} |
Kailash | fe18d61 | 2019-02-04 17:04:42 -0800 | [diff] [blame] | 410 | |
Kailash | 66b9a8d | 2019-02-07 10:18:55 -0800 | [diff] [blame] | 411 | Validate XConnect in ONOS |
| 412 | [Arguments] ${exists}=True |
| 413 | ${rc}= Run And Return RC http -a karaf:karaf GET http://127.0.0.1:30120/onos/segmentrouting/xconnect|jq -r '.xconnects[].vlanId'|grep 222 |
| 414 | Run Keyword If '${exists}' == 'True' Should Be Equal As Integers ${rc} 0 |
Kailash | abb029d | 2019-02-15 17:17:11 -0800 | [diff] [blame] | 415 | ... ELSE Should Be Equal As Integers ${rc} 1 |
| 416 | |
| 417 | Setup SSH Keys to Localhost |
| 418 | Run yes y 2>/dev/null | ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa |
| 419 | Run cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys |
| 420 | Run chmod og-wx ~/.ssh/authorized_keys |