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 | 6d9f66d | 2019-07-30 18:38:49 -0700 | [diff] [blame^] | 54 | [Setup] Clean Up Linux |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 55 | [Tags] test1 |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 56 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']} |
| 57 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']} |
| 58 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 59 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 60 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 61 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
| 62 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['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 |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 73 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']} |
| 74 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']} |
| 75 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 76 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 77 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 78 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
| 79 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 80 | Clean Up Linux |
| 81 | Remove Whitelist |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 82 | Wait Until Keyword Succeeds 60s 2s Validate ONU States UNKNOWN DISABLED ${src0['onu']} |
| 83 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']} |
| 84 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 85 | Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 86 | Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 87 | Clean Up Linux |
| 88 | Create Whitelist |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 89 | Wait Until Keyword Succeeds 120s 5s Validate ONU States ACTIVE ENABLED ${src0['onu']} |
| 90 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']} |
| 91 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 92 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 93 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 94 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
| 95 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['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 |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 106 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']} |
| 107 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']} |
| 108 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 109 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 110 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 111 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
| 112 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 113 | Clean Up Linux |
| 114 | Update Whitelist with Wrong Location |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 115 | Wait Until Keyword Succeeds 60s 2s Validate ONU States UNKNOWN DISABLED ${src0['onu']} |
| 116 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']} |
| 117 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 118 | Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 119 | Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 120 | Clean Up Linux |
| 121 | Update Whitelist with Correct Location |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 122 | Wait Until Keyword Succeeds 120s 5s Validate ONU States ACTIVE ENABLED ${src0['onu']} |
| 123 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']} |
| 124 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 125 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 126 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 127 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
| 128 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['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 |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 139 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']} |
| 140 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']} |
| 141 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 142 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 143 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 144 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
| 145 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['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 |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 149 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 150 | Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 151 | Clean Up Linux |
| 152 | Create Subscriber |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 153 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${src0['onu']} |
| 154 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 155 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 156 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
| 157 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['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 |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 169 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']} |
| 170 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']} |
| 171 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 172 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 173 | Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 174 | Clean Up Linux |
| 175 | Create Subscriber |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 176 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${src0['onu']} |
| 177 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 178 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 179 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
| 180 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['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 |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 187 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']} |
| 188 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']} |
| 189 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 190 | Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['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 |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 200 | Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${src0['onu']} |
| 201 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']} |
| 202 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 203 | Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 204 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']} |
| 205 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 206 | Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['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 |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 219 | Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${src0['onu']} |
| 220 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']} |
| 221 | Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 222 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']} |
| 223 | Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 224 | Clean Up Linux |
| 225 | Create Whitelist |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 226 | Wait Until Keyword Succeeds 60s 2s Validate ONU States ACTIVE ENABLED ${src0['onu']} |
| 227 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']} |
| 228 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 229 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 230 | Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 231 | Clean Up Linux |
| 232 | Create Subscriber |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 233 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${src0['onu']} |
| 234 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 235 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 236 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
| 237 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['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 |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 245 | Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${src0['onu']} |
| 246 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']} |
| 247 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 248 | Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 249 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']} |
| 250 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 251 | Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['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 |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 266 | Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${src0['onu']} |
| 267 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']} |
| 268 | Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 269 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']} |
| 270 | Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 271 | Clean Up Linux |
| 272 | Update Whitelist with Correct Location |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 273 | Wait Until Keyword Succeeds 60s 2s Validate ONU States ACTIVE ENABLED ${src0['onu']} |
| 274 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']} |
| 275 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 276 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 277 | Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 278 | Clean Up Linux |
| 279 | Create Subscriber |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 280 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${src0['onu']} |
| 281 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 282 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 283 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
| 284 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 285 | |
Suchitra Vemuri | f79ba09 | 2019-04-29 19:27:42 -0700 | [diff] [blame] | 286 | ONU in whitelist -> Admin disable ONU |
| 287 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 288 | ... Configure whitelist with correct ONU location |
| 289 | ... Validate successful authentication/DHCP/E2E ping |
| 290 | ... Perform admin disable on the ONU |
| 291 | ... Verify that pings are not successful |
| 292 | ... Perform admin enable on the ONU |
| 293 | ... Validate authentication/DHCP/E2E ping |
| 294 | [Tags] test11 |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 295 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']} |
| 296 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']} |
| 297 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 298 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 299 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 300 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
| 301 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']}a |
Suchitra Vemuri | f79ba09 | 2019-04-29 19:27:42 -0700 | [diff] [blame] | 302 | Update ONU AdminState DISABLED |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 303 | Wait Until Keyword Succeeds 60s 2s Check Ping False ${dst0['dp_iface_ip_qinq']} ${src0['dp_iface_name']} ${src0['ip']} ${src0['user']} ${src0['pass']} |
Suchitra Vemuri | f79ba09 | 2019-04-29 19:27:42 -0700 | [diff] [blame] | 304 | Update ONU AdminState ENABLED |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 305 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 306 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 307 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
| 308 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${c_tag} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']}a |
Suchitra Vemuri | f79ba09 | 2019-04-29 19:27:42 -0700 | [diff] [blame] | 309 | |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 310 | *** Keywords *** |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 311 | Setup Suite |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 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} |
Kailash Khalasi | 30a6a39 | 2018-09-10 14:32:39 -0700 | [diff] [blame] | 317 | ${AttWhiteListList}= utils.jsonToList ${WHITELIST_PATHFILE} AttWhiteListInfo |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 318 | Set Suite Variable ${AttWhiteListList} |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 319 | ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0 |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 320 | ${AttWhiteListDict}= utils.setFieldValueInDict ${AttWhiteListDict} owner_id ${att_workflow_service_id} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 321 | ${onu_location}= Get From Dictionary ${AttWhiteListDict} pon_port_id |
| 322 | Set Global Variable ${onu_location} |
Kailash Khalasi | 30a6a39 | 2018-09-10 14:32:39 -0700 | [diff] [blame] | 323 | ${SubscriberList}= utils.jsonToList ${SUBSCRIBER_PATHFILE} SubscriberInfo |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 324 | Set Global Variable ${SubscriberList} |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 325 | ${SubscriberDict}= utils.listToDict ${SubscriberList} 0 |
| 326 | ${s_tag}= utils.getFieldValueFromDict ${SubscriberDict} s_tag |
| 327 | ${c_tag}= utils.getFieldValueFromDict ${SubscriberDict} c_tag |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 328 | ${VoltDeviceList}= utils.jsonToList ${VOLT_DEVICE_PATHFILE} VOLTDeviceInfo |
Kailash Khalasi | 4e1ce76 | 2018-12-18 20:29:29 -0800 | [diff] [blame] | 329 | ${VoltDeviceDict}= utils.setFieldValueInDict ${VoltDeviceList[0]} volt_service_id ${volt_service_id} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 330 | Set Global Variable ${VoltDeviceList} |
Kailash Khalasi | 4e1ce76 | 2018-12-18 20:29:29 -0800 | [diff] [blame] | 331 | Set Global Variable ${VoltDeviceDict} |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 332 | Set Suite Variable ${s_tag} |
| 333 | Set Suite Variable ${c_tag} |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 334 | Set Global Variable ${export_kubeconfig} export KUBECONFIG=${KUBERNETES_CONF} |
Suchitra Vemuri | e91852a | 2019-05-28 17:29:53 -0700 | [diff] [blame] | 335 | ${olt_ip}= Evaluate ${olts}[0].get("ip") |
| 336 | ${olt_user}= Evaluate ${olts}[0].get("user") |
| 337 | ${olt_pass}= Evaluate ${olts}[0].get("pass") |
| 338 | ${k8s_node_ip}= Evaluate ${nodes}[0].get("ip") |
| 339 | ${k8s_node_user}= Evaluate ${nodes}[0].get("user") |
| 340 | ${k8s_node_pass}= Evaluate ${nodes}[0].get("pass") |
Suchitra Vemuri | 9d5b30d | 2019-06-10 16:37:15 -0700 | [diff] [blame] | 341 | Set Suite Variable ${olt_ip} |
| 342 | Set Suite Variable ${olt_user} |
| 343 | Set Suite Variable ${olt_pass} |
| 344 | Set Suite Variable ${k8s_node_ip} |
| 345 | Set Suite Variable ${k8s_node_user} |
| 346 | Set Suite Variable ${k8s_node_pass} |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 347 | @{container_list}= Create List |
Kailash Khalasi | dd9136a | 2018-10-18 11:16:18 -0700 | [diff] [blame] | 348 | Append To List ${container_list} att-workflow-att-workflow-driver |
Kailash Khalasi | e59ba70 | 2018-12-18 19:36:03 -0800 | [diff] [blame] | 349 | Append To List ${container_list} seba-services-volt |
| 350 | Append To List ${container_list} seba-services-rcord |
Suchitra Vemuri | 52b4ef3 | 2019-03-13 15:01:40 -0700 | [diff] [blame] | 351 | Append To List ${container_list} onos |
Kailash Khalasi | e59ba70 | 2018-12-18 19:36:03 -0800 | [diff] [blame] | 352 | Append To List ${container_list} seba-services-fabric-crossconnect |
You Wang | f573e40 | 2018-10-17 14:01:59 -0700 | [diff] [blame] | 353 | Append To List ${container_list} xos-core |
| 354 | Append To List ${container_list} vcore |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 355 | Set Suite Variable ${container_list} |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 356 | Set Deployment Config Variables |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 357 | ${datetime}= Get Current Datetime On Kubernetes Node ${k8s_node_ip} ${k8s_node_user} ${k8s_node_pass} |
| 358 | Set Suite Variable ${datetime} |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 359 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 360 | Teardown Suite |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 361 | [Documentation] Performs any additional cleanup required |
| 362 | Log Suite Teardown cleanup |
| 363 | Delete All Sessions |
| 364 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 365 | Setup Test |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 366 | [Documentation] Re-create Subscriber, whitelist, and olt-device models to test |
| 367 | Log Re-creating objects |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 368 | ${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] | 369 | Set Suite Variable ${datetime} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 370 | Create Whitelist |
| 371 | Create Subscriber |
| 372 | Create VOLT |
Suchitra Vemuri | f7b5d44 | 2019-02-27 15:17:03 -0800 | [diff] [blame] | 373 | 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] | 374 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 375 | Teardown Test |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 376 | [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] | 377 | Get VOLTHA Status |
| 378 | Get ONOS Status |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 379 | Clean Up Linux |
| 380 | Clean Up XOS |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 381 | Log Kubernetes Containers Logs Since Time ${datetime} ${container_list} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 382 | |
| 383 | Clean Up Linux |
| 384 | [Documentation] Kill processes and clean up interfaces on src+dst servers |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 385 | Run Keyword And Ignore Error Kill Linux Process [w]pa_supplicant ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 386 | Run Keyword And Ignore Error Kill Linux Process [d]hclient ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 387 | Run Keyword If '${dst0['ip']}' != '${None}' Run Keyword And Ignore Error Kill Linux Process [d]hcpd ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
| 388 | Delete IP Addresses from Interface on Remote Host ${src0['dp_iface_name']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 389 | Run Keyword If '${dst0['ip']}' != '${None}' Delete Interface on Remote Host ${dst0['dp_iface_name']}.${s_tag} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 390 | |
| 391 | Clean Up XOS |
| 392 | [Documentation] Clean up all XOS objects and reinstall voltha after OLT reboots |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 393 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER} |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 394 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST} |
Suchitra Vemuri | 4d81bf1 | 2018-11-28 12:32:58 -0800 | [diff] [blame] | 395 | Sleep 20s |
Kailash | efc1e0d | 2018-11-20 13:49:06 -0800 | [diff] [blame] | 396 | Wait Until Keyword Succeeds 30s 2s Validate Subscriber Count 0 |
Kailash | d158711 | 2018-11-20 11:55:16 -0800 | [diff] [blame] | 397 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_DEVICE} |
Kailash | efc1e0d | 2018-11-20 13:49:06 -0800 | [diff] [blame] | 398 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_SERVICEINSTANCES} |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 399 | Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability False ${olt_ip} |
| 400 | Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability True ${olt_ip} |
| 401 | 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] | 402 | |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 403 | Create Whitelist |
| 404 | ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0 |
| 405 | CORD Post ${ATT_WHITELIST} ${AttWhiteListDict} |
| 406 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 407 | Remove Whitelist |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 408 | ${whitelist_id}= Retrieve Whitelist Entry ${src0['onu']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 409 | CORD Delete ${ATT_WHITELIST} ${whitelist_id} |
| 410 | |
| 411 | Update Whitelist with Wrong Location |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 412 | ${whitelist_id}= Retrieve Whitelist Entry ${src0['onu']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 413 | CORD Put ${ATT_WHITELIST} {"pon_port_id": 55 } ${whitelist_id} |
| 414 | |
| 415 | Update Whitelist with Correct Location |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 416 | ${whitelist_id}= Retrieve Whitelist Entry ${src0['onu']} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 417 | CORD Put ${ATT_WHITELIST} {"pon_port_id": ${onu_location} } ${whitelist_id} |
| 418 | |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 419 | Create Subscriber |
| 420 | ${SubscriberDict}= utils.listToDict ${SubscriberList} 0 |
| 421 | Wait Until Keyword Succeeds 120s 15s CORD Post ${VOLT_SUBSCRIBER} ${SubscriberDict} |
Kailash Khalasi | a0810ce | 2018-09-10 13:03:27 -0700 | [diff] [blame] | 422 | |
You Wang | f573e40 | 2018-10-17 14:01:59 -0700 | [diff] [blame] | 423 | Remove Subscriber |
| 424 | ${subscriber_id}= Retrieve Subscriber ${c_tag} |
| 425 | CORD Delete ${VOLT_SUBSCRIBER} ${subscriber_id} |
| 426 | |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 427 | Create VOLT |
Suchitra Vemuri | a63b6de | 2019-02-04 18:55:33 -0800 | [diff] [blame] | 428 | CORD Post ${VOLT_DEVICE} ${VoltDeviceDict} |
Suchitra Vemuri | f79ba09 | 2019-04-29 19:27:42 -0700 | [diff] [blame] | 429 | |
| 430 | Update ONU AdminState |
| 431 | [Arguments] ${new_admin_state} |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 432 | ${onudevice_id}= Retrieve ONU Device ${src0['onu']} |
Suchitra Vemuri | c7c46bd | 2019-06-10 22:40:03 -0700 | [diff] [blame] | 433 | CORD Put ${VOLT_DEVICE} {"admin_state": ${new_admin_state} } ${onudevice_id} |
Kailash | f49efeb | 2019-05-23 12:12:41 -0700 | [diff] [blame] | 434 | |