Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -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 | |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 15 | *** Settings *** |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 16 | Documentation Test various end-to-end scenarios with ATT workflow |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 17 | Suite Setup Setup Suite |
| 18 | Suite Teardown Teardown Suite |
| 19 | Test Setup Setup Test |
| 20 | Test Teardown Teardown Test |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 21 | Library Collections |
| 22 | Library String |
| 23 | Library OperatingSystem |
| 24 | Library XML |
| 25 | Library RequestsLibrary |
Kailash | 266cc17 | 2019-03-05 14:32:10 -0800 | [diff] [blame] | 26 | Library /home/cord/voltha/tests/atests/common/testCaseUtils.py |
Suchitra Vemuri | 32fc2f2 | 2018-09-10 12:06:01 -0700 | [diff] [blame] | 27 | Library ../../Framework/utils/utils.py |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 28 | Resource ../../Framework/utils/utils.robot |
Suchitra Vemuri | 32fc2f2 | 2018-09-10 12:06:01 -0700 | [diff] [blame] | 29 | Library ../../Framework/restApi.py |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 30 | Resource ../../Framework/Subscriber.robot |
| 31 | Resource ../../Framework/ATTWorkFlowDriver.robot |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 32 | Resource ../../Framework/Kubernetes.robot |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 33 | Resource ../../Framework/ONU.robot |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 34 | Resource ../../Framework/OLT.robot |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 35 | Resource ../../Framework/DHCP.robot |
| 36 | Variables ../../Properties/RestApiProperties.py |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 37 | |
| 38 | *** Variables *** |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 39 | ${POD_NAME} flex-pod1-olt |
| 40 | ${KUBERNETES_CONFIGS_DIR} ~/pod-configs/kubernetes-configs |
| 41 | ${HELM_CHARTS_DIR} ~/helm-charts |
| 42 | ${WHITELIST_PATHFILE} ${CURDIR}/data/${POD_NAME}/ATTWhiteList.json |
| 43 | ${SUBSCRIBER_PATHFILE} ${CURDIR}/data/${POD_NAME}/ATTSubscriber.json |
| 44 | ${VOLT_DEVICE_PATHFILE} ${CURDIR}/data/${POD_NAME}/RealOLTDevice.json |
| 45 | ${KUBERNETES_CONF} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.conf |
| 46 | ${KUBERNETES_YAML} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.yml |
| 47 | ${VOLTHA_POD_NUM} 8 |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 48 | |
Kailash Khalasi | a0810ce | 2018-09-10 13:03:27 -0700 | [diff] [blame] | 49 | *** Test Cases *** |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 50 | ONU in Correct Location |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 51 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 52 | ... Configure whitelist with correct ONU location |
| 53 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 54 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 55 | [Tags] test1 |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 56 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 57 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 58 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 59 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 60 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 61 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 62 | 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} |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 63 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 64 | ONU in Correct Location -> Remove ONU from Whitelist -> Add ONU to Whitelist |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 65 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 66 | ... Configure whitelist with correct ONU location |
| 67 | ... Validate successful authentication/DHCP/E2E ping |
| 68 | ... Remove ONU from whitelist |
| 69 | ... Validate failed authentication/DHCP/E2E ping |
| 70 | ... Add ONU to whitelist |
| 71 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 72 | [Tags] test2 |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 73 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 74 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 75 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 76 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 77 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 78 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 79 | 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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 80 | Clean Up Linux |
| 81 | Remove Whitelist |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 82 | Wait Until Keyword Succeeds 60s 2s Validate ONU States UNKNOWN DISABLED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 83 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 84 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 85 | Validate Authentication False ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 86 | Validate DHCP and Ping False False ${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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 87 | Clean Up Linux |
| 88 | Create Whitelist |
You Wang | 5fa194b | 2018-11-07 17:21:23 -0800 | [diff] [blame] | 89 | Wait Until Keyword Succeeds 120s 5s Validate ONU States ACTIVE ENABLED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 90 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 91 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 92 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 93 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 94 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 95 | 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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 96 | |
| 97 | ONU in Correct Location -> ONU in Wrong Location -> ONU in Correct Location |
| 98 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 99 | ... Configure whitelist with correct ONU location |
| 100 | ... Validate successful authentication/DHCP/E2E ping |
| 101 | ... Update whitelist with wrong ONU location |
| 102 | ... Validate failed authentication/DHCP/E2E ping |
| 103 | ... Update whitelist with correct ONU location |
| 104 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 105 | [Tags] test3 |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 106 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 107 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 108 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 109 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 110 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 111 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 112 | 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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 113 | Clean Up Linux |
| 114 | Update Whitelist with Wrong Location |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 115 | Wait Until Keyword Succeeds 60s 2s Validate ONU States UNKNOWN DISABLED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 116 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 117 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 118 | Validate Authentication False ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 119 | Validate DHCP and Ping False False ${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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 120 | Clean Up Linux |
| 121 | Update Whitelist with Correct Location |
You Wang | 5fa194b | 2018-11-07 17:21:23 -0800 | [diff] [blame] | 122 | Wait Until Keyword Succeeds 120s 5s Validate ONU States ACTIVE ENABLED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 123 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 124 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 125 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 126 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 127 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 128 | 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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 129 | |
| 130 | ONU in Correct Location -> Remove Subscriber -> Create Subscriber |
| 131 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 132 | ... Configure whitelist with correct ONU location |
| 133 | ... Validate successful authentication/DHCP/E2E ping |
| 134 | ... Remove subscriber model |
You Wang | 070302c | 2018-10-17 15:42:24 -0700 | [diff] [blame] | 135 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 136 | ... Recreate subscriber model |
| 137 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 138 | [Tags] test4 |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 139 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 140 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 141 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 142 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 143 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 144 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 145 | 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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 146 | Clean Up Linux |
| 147 | Remove Subscriber |
You Wang | 070302c | 2018-10-17 15:42:24 -0700 | [diff] [blame] | 148 | Sleep 10s |
| 149 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 150 | Validate DHCP and Ping False False ${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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 151 | Clean Up Linux |
| 152 | Create Subscriber |
You Wang | 070302c | 2018-10-17 15:42:24 -0700 | [diff] [blame] | 153 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 154 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 155 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 156 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 157 | 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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 158 | |
| 159 | ONU in Correct Location (Skip Subscriber Provisioning) -> Provision Subscriber |
| 160 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 161 | ... Configure whitelist with correct ONU location and skip provisioning subscriber |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 162 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 163 | ... Provision subscriber |
| 164 | ... Validate successful authentication/DHCP/E2E ping |
| 165 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 166 | [Tags] test5 |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 167 | Create Whitelist |
| 168 | Create VOLT |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 169 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 170 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 171 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 172 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 173 | Validate DHCP and Ping False False ${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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 174 | Clean Up Linux |
| 175 | Create Subscriber |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 176 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 177 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 178 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 179 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 180 | 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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 181 | |
| 182 | ONU in Correct Location (Skip Authentication) |
| 183 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 184 | ... Configure whitelist with correct ONU location and skip RG authentication |
| 185 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 186 | [Tags] test6 |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 187 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 188 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 189 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 190 | Validate DHCP and Ping False False ${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} |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 191 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 192 | ONU not in Whitelist |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 193 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 194 | ... Skip whitelist configuration for ONU |
| 195 | ... Validate failed authentication/DHCP/E2E ping |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 196 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 197 | [Tags] test7 |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 198 | Create Subscriber |
| 199 | Create VOLT |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 200 | Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 201 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 202 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 203 | Validate Authentication False ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 204 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 205 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 206 | Validate DHCP and Ping False False ${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} |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 207 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 208 | ONU not in Whitelist (Skip Subscriber Provisioning) -> Add ONU to Whitelist -> Provision Subscriber |
| 209 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 210 | ... Skip whitelist configuration for ONU and subscriber provisioning |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 211 | ... Validate successful authentication but failed DHCP/E2E ping |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 212 | ... Configure whitelist with correct ONU location |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 213 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 214 | ... Provision subscriber |
| 215 | ... Validate successful authentication/DHCP/E2E ping |
| 216 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 217 | [Tags] test8 |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 218 | Create VOLT |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 219 | Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 220 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 221 | Validate Authentication False ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 222 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 223 | Validate DHCP and Ping False False ${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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 224 | Clean Up Linux |
| 225 | Create Whitelist |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 226 | Wait Until Keyword Succeeds 60s 2s Validate ONU States ACTIVE ENABLED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 227 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 228 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 229 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 230 | Validate DHCP and Ping False False ${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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 231 | Clean Up Linux |
| 232 | Create Subscriber |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 233 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 234 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 235 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 236 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 237 | 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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 238 | |
| 239 | ONU in Wrong Location |
| 240 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 241 | ... Configure whitelist with wrong ONU location |
| 242 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 243 | [Tags] test9 |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 244 | Update Whitelist with Wrong Location |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 245 | Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 246 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 247 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 248 | Validate Authentication False ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 249 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 250 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 251 | Validate DHCP and Ping False False ${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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 252 | |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 253 | ONU in Wrong Location (Skip Subscriber Provisioning) -> ONU in Correct Location -> Provision Subscriber |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 254 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 255 | ... Configure whitelist with wrong ONU location and skip subscriber provisioning |
| 256 | ... Validate failed authentication/DHCP/E2E ping |
| 257 | ... Configure whitelist with correct ONU location |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 258 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 259 | ... Provision subscriber |
| 260 | ... Validate successful authentication/DHCP/E2E ping |
| 261 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 262 | [Tags] test10 |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 263 | Create VOLT |
| 264 | Create Whitelist |
| 265 | Update Whitelist with Wrong Location |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 266 | Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 267 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 268 | Validate Authentication False ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 269 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 270 | Validate DHCP and Ping False False ${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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 271 | Clean Up Linux |
| 272 | Update Whitelist with Correct Location |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 273 | Wait Until Keyword Succeeds 60s 2s Validate ONU States ACTIVE ENABLED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 274 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 275 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 276 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 277 | Validate DHCP and Ping False False ${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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 278 | Clean Up Linux |
| 279 | Create Subscriber |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 280 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 281 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 282 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 283 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 284 | 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} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 285 | |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 286 | *** Keywords *** |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 287 | Setup Suite |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 288 | ${auth} = Create List ${XOS_USER} ${XOS_PASSWD} |
| 289 | ${HEADERS} Create Dictionary Content-Type=application/json |
| 290 | Create Session ${server_ip} http://${server_ip}:${server_port} auth=${AUTH} headers=${HEADERS} |
| 291 | ${att_workflow_service_id}= Get Service Owner Id ${ATT_SERVICE} |
| 292 | ${volt_service_id}= Get Service Owner Id ${VOLT_SERVICE} |
Kailash Khalasi | 30a6a39 | 2018-09-10 14:32:39 -0700 | [diff] [blame] | 293 | ${AttWhiteListList}= utils.jsonToList ${WHITELIST_PATHFILE} AttWhiteListInfo |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 294 | Set Suite Variable ${AttWhiteListList} |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 295 | ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0 |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 296 | ${AttWhiteListDict}= utils.setFieldValueInDict ${AttWhiteListDict} owner_id ${att_workflow_service_id} |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 297 | ${onu_device}= Get From Dictionary ${AttWhiteListDict} serial_number |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 298 | Set Global Variable ${onu_device} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 299 | ${onu_location}= Get From Dictionary ${AttWhiteListDict} pon_port_id |
| 300 | Set Global Variable ${onu_location} |
Kailash Khalasi | 30a6a39 | 2018-09-10 14:32:39 -0700 | [diff] [blame] | 301 | ${SubscriberList}= utils.jsonToList ${SUBSCRIBER_PATHFILE} SubscriberInfo |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 302 | Set Global Variable ${SubscriberList} |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 303 | ${SubscriberDict}= utils.listToDict ${SubscriberList} 0 |
| 304 | ${s_tag}= utils.getFieldValueFromDict ${SubscriberDict} s_tag |
| 305 | ${c_tag}= utils.getFieldValueFromDict ${SubscriberDict} c_tag |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 306 | ${VoltDeviceList}= utils.jsonToList ${VOLT_DEVICE_PATHFILE} VOLTDeviceInfo |
Kailash Khalasi | 4e1ce76 | 2018-12-18 20:29:29 -0800 | [diff] [blame] | 307 | ${VoltDeviceDict}= utils.setFieldValueInDict ${VoltDeviceList[0]} volt_service_id ${volt_service_id} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 308 | Set Global Variable ${VoltDeviceList} |
Kailash Khalasi | 4e1ce76 | 2018-12-18 20:29:29 -0800 | [diff] [blame] | 309 | Set Global Variable ${VoltDeviceDict} |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 310 | Set Suite Variable ${s_tag} |
| 311 | Set Suite Variable ${c_tag} |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 312 | Set Global Variable ${export_kubeconfig} export KUBECONFIG=${KUBERNETES_CONF} |
| 313 | # Read variables from yaml file |
| 314 | ${src_ip}= Evaluate ${hosts}.get("src").get("ip") |
| 315 | ${src_user}= Evaluate ${hosts}.get("src").get("user") |
| 316 | ${src_pass}= Evaluate ${hosts}.get("src").get("pass") |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 317 | ${src_container_type}= Evaluate ${hosts}.get("src").get("container_type") |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 318 | ${src_container_name}= Evaluate ${hosts}.get("src").get("container_name") |
| 319 | ${src_iface}= Evaluate ${hosts}.get("src").get("dp_iface_name") |
| 320 | ${dst_ip}= Evaluate ${hosts}.get("dst").get("ip") |
| 321 | ${dst_user} = Evaluate ${hosts}.get("dst").get("user") |
| 322 | ${dst_pass}= Evaluate ${hosts}.get("dst").get("pass") |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 323 | ${dst_container_type}= Evaluate ${hosts}.get("dst").get("container_type") |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 324 | ${dst_container_name}= Evaluate ${hosts}.get("dst").get("container_name") |
| 325 | ${dst_dp_iface}= Evaluate ${hosts}.get("dst").get("dp_iface_name") |
| 326 | ${dst_dp_ip}= Evaluate ${hosts}.get("dst").get("dp_iface_ip_qinq") |
| 327 | ${olt_ip}= Evaluate ${olts}[0].get("ip") |
| 328 | ${olt_user}= Evaluate ${olts}[0].get("user") |
| 329 | ${olt_pass}= Evaluate ${olts}[0].get("pass") |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 330 | ${k8s_node_ip}= Evaluate ${nodes}[0].get("ip") |
| 331 | ${k8s_node_user}= Evaluate ${nodes}[0].get("user") |
| 332 | ${k8s_node_pass}= Evaluate ${nodes}[0].get("pass") |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 333 | Set Suite Variable ${src_ip} |
| 334 | Set Suite Variable ${src_user} |
| 335 | Set Suite Variable ${src_pass} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 336 | Set Suite Variable ${src_container_type} |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 337 | Set Suite Variable ${src_container_name} |
| 338 | Set Suite Variable ${src_iface} |
| 339 | Set Suite Variable ${dst_ip} |
| 340 | Set Suite Variable ${dst_user} |
| 341 | Set Suite Variable ${dst_pass} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 342 | Set Suite Variable ${dst_container_type} |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 343 | Set Suite Variable ${dst_container_name} |
| 344 | Set Suite Variable ${dst_dp_iface} |
| 345 | Set Suite Variable ${dst_dp_ip} |
| 346 | Set Suite Variable ${olt_ip} |
| 347 | Set Suite Variable ${olt_user} |
| 348 | Set Suite Variable ${olt_pass} |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 349 | Set Suite Variable ${k8s_node_ip} |
| 350 | Set Suite Variable ${k8s_node_user} |
| 351 | Set Suite Variable ${k8s_node_pass} |
| 352 | @{container_list}= Create List |
Kailash Khalasi | dd9136a | 2018-10-18 11:16:18 -0700 | [diff] [blame] | 353 | Append To List ${container_list} att-workflow-att-workflow-driver |
Kailash Khalasi | e59ba70 | 2018-12-18 19:36:03 -0800 | [diff] [blame] | 354 | Append To List ${container_list} seba-services-volt |
| 355 | Append To List ${container_list} seba-services-rcord |
Suchitra Vemuri | 52b4ef3 | 2019-03-13 15:01:40 -0700 | [diff] [blame] | 356 | Append To List ${container_list} onos |
Kailash Khalasi | e59ba70 | 2018-12-18 19:36:03 -0800 | [diff] [blame] | 357 | Append To List ${container_list} seba-services-fabric-crossconnect |
You Wang | f573e40 | 2018-10-17 14:01:59 -0700 | [diff] [blame] | 358 | Append To List ${container_list} xos-core |
| 359 | Append To List ${container_list} vcore |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 360 | Set Suite Variable ${container_list} |
| 361 | ${datetime}= Get Current Datetime On Kubernetes Node ${k8s_node_ip} ${k8s_node_user} ${k8s_node_pass} |
| 362 | Set Suite Variable ${datetime} |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 363 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 364 | Teardown Suite |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 365 | [Documentation] Performs any additional cleanup required |
| 366 | Log Suite Teardown cleanup |
| 367 | Delete All Sessions |
| 368 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 369 | Setup Test |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 370 | [Documentation] Re-create Subscriber, whitelist, and olt-device models to test |
| 371 | Log Re-creating objects |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 372 | ${datetime}= Get Current Datetime On Kubernetes Node ${k8s_node_ip} ${k8s_node_user} ${k8s_node_pass} |
Kailash | f88e208 | 2019-03-14 11:22:29 -0700 | [diff] [blame] | 373 | Set Suite Variable ${datetime} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 374 | Create Whitelist |
| 375 | Create Subscriber |
| 376 | Create VOLT |
Suchitra Vemuri | f7b5d44 | 2019-02-27 15:17:03 -0800 | [diff] [blame] | 377 | Wait Until Keyword Succeeds 200s 15s Validate OLT States ACTIVE ENABLED ${olt_ip} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 378 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 379 | Teardown Test |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 380 | [Documentation] Delete xos objects, kills processes and cleans up interfaces on src+dst servers |
Kailash | 266cc17 | 2019-03-05 14:32:10 -0800 | [diff] [blame] | 381 | Get VOLTHA Status |
| 382 | Get ONOS Status |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 383 | Clean Up Linux |
| 384 | Clean Up XOS |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 385 | Log Kubernetes Containers Logs Since Time ${datetime} ${container_list} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 386 | |
| 387 | Clean Up Linux |
| 388 | [Documentation] Kill processes and clean up interfaces on src+dst servers |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 389 | Run Keyword And Ignore Error Kill Linux Process [w]pa_supplicant ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 390 | Run Keyword And Ignore Error Kill Linux Process [d]hclient ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 391 | Run Keyword If '${dst_ip}' != '${None}' Run Keyword And Ignore Error Kill Linux Process [d]hcpd ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
| 392 | Delete IP Addresses from Interface on Remote Host ${src_iface} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 393 | Run Keyword If '${dst_ip}' != '${None}' Delete Interface on Remote Host ${dst_dp_iface}.${s_tag} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 394 | |
| 395 | Clean Up XOS |
| 396 | [Documentation] Clean up all XOS objects and reinstall voltha after OLT reboots |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 397 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER} |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 398 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST} |
Suchitra Vemuri | 4d81bf1 | 2018-11-28 12:32:58 -0800 | [diff] [blame] | 399 | Sleep 20s |
Kailash | efc1e0d | 2018-11-20 13:49:06 -0800 | [diff] [blame] | 400 | Wait Until Keyword Succeeds 30s 2s Validate Subscriber Count 0 |
Kailash | d158711 | 2018-11-20 11:55:16 -0800 | [diff] [blame] | 401 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_DEVICE} |
Kailash | efc1e0d | 2018-11-20 13:49:06 -0800 | [diff] [blame] | 402 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_SERVICEINSTANCES} |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 403 | Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability False ${olt_ip} |
| 404 | Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability True ${olt_ip} |
| 405 | Wait Until Keyword Succeeds 120s 10s Openolt is Up ${olt_ip} ${olt_user} ${olt_pass} |
Kailash Khalasi | a0810ce | 2018-09-10 13:03:27 -0700 | [diff] [blame] | 406 | |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 407 | Create Whitelist |
| 408 | ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0 |
| 409 | CORD Post ${ATT_WHITELIST} ${AttWhiteListDict} |
| 410 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 411 | Remove Whitelist |
| 412 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 413 | CORD Delete ${ATT_WHITELIST} ${whitelist_id} |
| 414 | |
| 415 | Update Whitelist with Wrong Location |
| 416 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 417 | CORD Put ${ATT_WHITELIST} {"pon_port_id": 55 } ${whitelist_id} |
| 418 | |
| 419 | Update Whitelist with Correct Location |
| 420 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 421 | CORD Put ${ATT_WHITELIST} {"pon_port_id": ${onu_location} } ${whitelist_id} |
| 422 | |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 423 | Create Subscriber |
| 424 | ${SubscriberDict}= utils.listToDict ${SubscriberList} 0 |
| 425 | Wait Until Keyword Succeeds 120s 15s CORD Post ${VOLT_SUBSCRIBER} ${SubscriberDict} |
Kailash Khalasi | a0810ce | 2018-09-10 13:03:27 -0700 | [diff] [blame] | 426 | |
You Wang | f573e40 | 2018-10-17 14:01:59 -0700 | [diff] [blame] | 427 | Remove Subscriber |
| 428 | ${subscriber_id}= Retrieve Subscriber ${c_tag} |
| 429 | CORD Delete ${VOLT_SUBSCRIBER} ${subscriber_id} |
| 430 | |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 431 | Create VOLT |
Suchitra Vemuri | a63b6de | 2019-02-04 18:55:33 -0800 | [diff] [blame] | 432 | CORD Post ${VOLT_DEVICE} ${VoltDeviceDict} |