TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 1 | # Copyright 2020 - present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | *** Settings *** |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 16 | Documentation Test different Reconcile scenarios of ONU Go adapter with all three workflows ATT, DT and TT. |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 17 | ... Test suite is dedicated for only one ONU! Run robot with bbsim-kind.yaml only! |
| 18 | ... Not for DT/TT workflow! |
| 19 | ... Hint: default timeout in BBSim to mimic OLT reboot is 60 seconds! |
| 20 | ... This behaviour of BBSim can be modified by 'oltRebootDelay: 60' in BBSim section of helm chart or |
| 21 | ... used values.yaml during 'voltha up'. |
| 22 | Suite Setup Setup Suite |
| 23 | Suite Teardown Teardown Suite |
| 24 | Test Setup Setup |
| 25 | Test Teardown Teardown |
| 26 | Library Collections |
| 27 | Library String |
| 28 | Library OperatingSystem |
| 29 | Library XML |
| 30 | Library RequestsLibrary |
| 31 | Library ../../libraries/DependencyLibrary.py |
| 32 | Resource ../../libraries/onos.robot |
| 33 | Resource ../../libraries/voltctl.robot |
| 34 | Resource ../../libraries/voltha.robot |
| 35 | Resource ../../libraries/utils.robot |
| 36 | Resource ../../libraries/k8s.robot |
| 37 | Resource ../../libraries/onu_utilities.robot |
| 38 | Resource ../../variables/variables.robot |
| 39 | |
| 40 | *** Variables *** |
| 41 | ${namespace} voltha |
| 42 | ${timeout} 60s |
| 43 | ${of_id} 0 |
| 44 | ${logical_id} 0 |
| 45 | ${has_dataplane} True |
| 46 | ${external_libs} True |
| 47 | ${teardown_device} True |
| 48 | ${scripts} ../../scripts |
| 49 | # Per-test logging on failure is turned off by default; set this variable to enable |
| 50 | ${container_log_dir} ${None} |
| 51 | # flag for first test, needed due default timeout in BBSim to mimic OLT reboot of 60 seconds |
| 52 | ${firsttest} True |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 53 | # determines the environment workflow: DT, TT or ATT (default) |
| 54 | # example: -v workflow:DT |
| 55 | ${workflow} ATT |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 56 | # flag debugmode is used, if true timeout calculation various, can be passed via the command line too |
| 57 | # example: -v debugmode:True |
| 58 | ${debugmode} False |
| 59 | # logging flag to enable Collect Logs, can be passed via the command line too |
| 60 | # example: -v logging:True |
| 61 | ${logging} False |
| 62 | # if True execution will be paused before clean up, only use in case of manual testing, do not use in ci pipeline! |
| 63 | # example: -v pausebeforecleanup:True |
| 64 | ${pausebeforecleanup} False |
| 65 | # if True some outputs to console are done during running tests e.g. long duration flow test |
| 66 | # example: -v print2console:True |
| 67 | ${print2console} False |
| 68 | # if True (hard) kill will be used to restart onu adapter, else (soft) restart mechanism of k8s will be used |
| 69 | # example: -v usekill2restart:True |
| 70 | ${usekill2restart} False |
| 71 | ${data_dir} ../data |
TorstenThieme | 70bc526 | 2021-01-19 12:12:55 +0000 | [diff] [blame] | 72 | ${suppressaddsubscriber} True |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 73 | |
| 74 | |
| 75 | *** Test Cases *** |
| 76 | Reconcile In Starting-OpenOmci |
| 77 | [Documentation] Validates the Reconcile in Starting-OpenOmci |
| 78 | ... Reconcile test during “starting-openomci” in AT&T-workflow: |
| 79 | ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store) |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 80 | ... - wait for device reason “starting-openomci” |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 81 | ... - kill the open-onu-adapter-go |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 82 | ... - wait for open-onu-adapter-go to restart |
| 83 | ... - perform sanity test include add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 84 | ... - delete ONU and MIB-template in KV-store |
| 85 | [Tags] functionalOnuGo ReconcileStartingOpenOmciOnuGo |
| 86 | [Setup] Run Keywords Start Logging ReconcileStartingOpenOmciOnuGo |
| 87 | ... AND Setup Test |
| 88 | Run Keyword If ${has_dataplane} Clean Up Linux |
TorstenThieme | e9017be | 2021-03-05 16:59:31 +0000 | [diff] [blame] | 89 | Do Reconcile In Determined State starting-openomci |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 90 | [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs |
| 91 | ... AND Teardown Test |
| 92 | ... AND Stop Logging ReconcileStartingOpenOmciOnuGo |
| 93 | |
| 94 | Reconcile In Initial-Mib-Downloaded |
| 95 | [Documentation] Validates the Reconcile in initial-mib-downloaded |
| 96 | ... Reconcile test during “initial-mib-downloaded” in AT&T-workflow: |
| 97 | ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store) |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 98 | ... - wait for device reason “initial-mib-downloaded” |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 99 | ... - kill the open-onu-adapter-go |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 100 | ... - wait for open-onu-adapter-go to restart |
| 101 | ... - perform sanity test include add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 102 | ... - delete ONU and MIB-template in KV-store |
| 103 | [Tags] functionalOnuGo ReconcileInitialMibDownloadedOnuGo |
| 104 | [Setup] Run Keywords Start Logging ReconcileInitialMibDownloadedOnuGo |
| 105 | ... AND Setup Test |
| 106 | Run Keyword If ${has_dataplane} Clean Up Linux |
TorstenThieme | e9017be | 2021-03-05 16:59:31 +0000 | [diff] [blame] | 107 | Do Reconcile In Determined State initial-mib-downloaded |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 108 | [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs |
| 109 | ... AND Teardown Test |
| 110 | ... AND Stop Logging ReconcileInitialMibDownloadedOnuGo |
| 111 | |
| 112 | Reconcile In Omci-Flows-Pushed |
| 113 | [Documentation] Validates the Reconcile in omci-flows-pushed |
| 114 | ... Former testcase: Reconcile Onu Device in Testsuite Voltha_ONUStateTest.robot |
| 115 | ... Reconcile test during “omci-flows-pushed” in AT&T-workflow: |
| 116 | ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store) |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 117 | ... - perform sanity test include add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 118 | ... - kill the open-onu-adapter-go |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 119 | ... - wait for open-onu-adapter-go to restart |
| 120 | ... - perform sanity test suppress add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 121 | ... - disable onu device |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 122 | ... - wait for device corresponding onu reason e.g. “tech-profile-config-delete-success” |
| 123 | ... - check UNI-ports disabled in ONOS |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 124 | ... - enable onu device |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 125 | ... - perform sanity test suppress add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 126 | ... - delete ONU and MIB-template in KV-store |
| 127 | [Tags] functionalOnuGo ReconcileOmciFlowsPushedOnuGo |
| 128 | [Setup] Run Keywords Start Logging ReconcileOmciFlowsPushedOnuGo |
| 129 | ... AND Setup Test |
| 130 | Run Keyword If ${has_dataplane} Clean Up Linux |
TorstenThieme | e9017be | 2021-03-05 16:59:31 +0000 | [diff] [blame] | 131 | Do Reconcile In Omci-Flows-Pushed |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 132 | [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs |
| 133 | ... AND Teardown Test |
| 134 | ... AND Stop Logging ReconcileOmciFlowsPushedOnuGo |
| 135 | |
| 136 | Reconcile For Disabled Onu Device |
| 137 | [Documentation] Validates the Reconcile for disabled Onu device |
| 138 | ... Reconcile test for disabled Onu device in AT&T-workflow: |
| 139 | ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store) |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 140 | ... - perform sanity test include add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 141 | ... - disable onu device |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 142 | ... - wait for device corresponding onu reason e.g. “tech-profile-config-delete-success” |
| 143 | ... - check UNI-ports disabled in ONOS |
| 144 | ... - kill the open-onu-adapter-go |
| 145 | ... - wait for open-onu-adapter-go to restart |
| 146 | ... - check device reason is still the same before restart |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 147 | ... - enable onu device |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 148 | ... - perform sanity test suppress add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 149 | ... - delete ONU and MIB-template in KV-store |
| 150 | [Tags] functionalOnuGo ReconcileDisabledOnuDeviceOnuGo |
| 151 | [Setup] Run Keywords Start Logging ReconcileDisabledOnuDeviceOnuGo |
| 152 | ... AND Setup Test |
| 153 | Run Keyword If ${has_dataplane} Clean Up Linux |
TorstenThieme | e9017be | 2021-03-05 16:59:31 +0000 | [diff] [blame] | 154 | Do Reconcile For Disabled Onu Device |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 155 | [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs |
| 156 | ... AND Teardown Test |
| 157 | ... AND Stop Logging ReconcileDisabledOnuDeviceOnuGo |
| 158 | |
| 159 | *** Keywords *** |
| 160 | Setup Suite |
| 161 | [Documentation] Set up the test suite |
| 162 | ${LogInfo}= Catenate |
| 163 | ... \r\nPassed arguments: |
| 164 | ... debugmode:${debugmode}, logging:${logging}, pausebeforecleanup:${pausebeforecleanup}, |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 165 | ... print2console:${print2console}, usekill2restart:${usekill2restart}, workflow:${workflow} |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 166 | Log ${LogInfo} console=yes |
| 167 | Common Test Suite Setup |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 168 | ${onos_ssh_connection} Open ONOS SSH Connection ${ONOS_SSH_IP} ${ONOS_SSH_PORT} |
| 169 | Set Suite Variable ${onos_ssh_connection} |
| 170 | # delete etcd MIB Template Data |
| 171 | Delete MIB Template Data |
| 172 | |
TorstenThieme | 70bc526 | 2021-01-19 12:12:55 +0000 | [diff] [blame] | 173 | |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 174 | Teardown Suite |
| 175 | [Documentation] Replaces the Suite Teardown in utils.robot. |
| 176 | ... Cleans up and checks all ONU ports disabled in ONOS. |
| 177 | ... Furthermore gives the possibility to pause the execution. |
| 178 | Run Keyword If ${pausebeforecleanup} Import Library Dialogs |
| 179 | Run Keyword If ${pausebeforecleanup} Pause Execution Press OK to continue with clean up! |
| 180 | Run Keyword If ${pausebeforecleanup} Log Teardown will be continued... console=yes |
| 181 | Run Keyword If ${teardown_device} Delete All Devices and Verify |
| 182 | Run Keyword If ${usekill2restart} Restart Pod ${namespace} open-onu |
| 183 | Validate Onu Data In Etcd 0 |
| 184 | Wait for Ports in ONOS for all OLTs ${onos_ssh_connection} 0 BBSM ${timeout} |
| 185 | Close All ONOS SSH Connections |
| 186 | |
| 187 | Setup Test |
| 188 | [Documentation] Pre-test Setup |
| 189 | #test for empty device list |
| 190 | Test Empty Device List |
| 191 | Run Keyword If ${has_dataplane} Wait Until Keyword Succeeds 120s 10s Openolt is Up |
| 192 | ... ${olt_ssh_ip} ${olt_user} ${olt_pass} |
| 193 | Run Keyword If ${has_dataplane} Sleep 60s |
| 194 | #restart open-onu pod to reset crash loop back off mechansim of kubenetes |
| 195 | Run Keyword If "${firsttest}"=="False" and "${usekill2restart}"=="True" Restart Pod ${namespace} open-onu |
| 196 | Run Keyword If "${firsttest}"=="False" Sleep 35s |
| 197 | ${firsttest} Set Variable False |
| 198 | Set Suite Variable ${firsttest} |
| 199 | # Create a list of olt ids (logical and device_id) |
| 200 | ${olt_ids} Create List |
| 201 | FOR ${I} IN RANGE 0 ${num_olts} |
| 202 | #create/preprovision device |
Andrea Campanella | 3dcce27 | 2021-01-15 16:04:47 +0100 | [diff] [blame] | 203 | ${olt_device_id}= Run Keyword If "${list_olts}[${I}][type]" == "${None}" |
TorstenThieme | 4413664 | 2021-02-12 13:41:17 +0000 | [diff] [blame] | 204 | ... Create Device ${list_olts}[${I}][ip] ${list_olts}[${I}][oltport] |
| 205 | ... ELSE Create Device ${list_olts}[${I}][ip] ${list_olts}[${I}][oltport] ${list_olts}[${I}][type] |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 206 | ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn] |
| 207 | #validate olt states |
| 208 | Wait Until Keyword Succeeds ${timeout} 5s |
| 209 | ... Validate OLT Device PREPROVISIONED UNKNOWN UNKNOWN ${olt_device_id} |
| 210 | Sleep 5s |
| 211 | ${logical_id}= Get Logical Device ID From SN ${olt_serial_number} |
| 212 | ${olt} Create Dictionary device_id ${olt_device_id} logical_id ${logical_id} |
| 213 | ... of_id ${of_id} sn ${olt_serial_number} |
| 214 | Append To List ${olt_ids} ${olt} |
| 215 | END |
| 216 | Set Global Variable ${olt_ids} |
| 217 | |
| 218 | Teardown Test |
| 219 | [Documentation] Post-test Teardown |
TorstenThieme | e9017be | 2021-03-05 16:59:31 +0000 | [diff] [blame] | 220 | Run Keyword If ${teardown_device} Delete All Devices and Verify |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 221 | # delete etcd MIB Template Data |
| 222 | Delete MIB Template Data |
TorstenThieme | b355eb6 | 2021-03-09 14:04:55 +0000 | [diff] [blame] | 223 | # check etcd data are empty |
| 224 | Validate Onu Data In Etcd 0 |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 225 | Sleep 5s |
| 226 | |
| 227 | Do Reconcile In Determined State |
| 228 | [Documentation] This keyword reconciles ONU device when passed reason is reached and |
| 229 | ... check the state afterwards. |
| 230 | ... Following steps will be executed: |
| 231 | ... - enable OLT device |
| 232 | ... - wait for passed openonu reason |
| 233 | ... - restart openonu adaptor |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 234 | ... - perform sanity test include add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 235 | [Arguments] ${expected_onu_reason} |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 236 | ${admin_state} ${oper_status} ${connect_status} ${onu_state_nb} ${onu_state}= Map State |
| 237 | ... ${expected_onu_reason} |
| 238 | Should Be True ${onu_state_nb}<=5 |
| 239 | ... Wrong expected onu reason ${expected_onu_reason}, must be lower than 'omci-flows-pushed'! |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 240 | FOR ${I} IN RANGE 0 ${num_olts} |
| 241 | #get olt serial number |
| 242 | ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn] |
| 243 | #validate olt states |
| 244 | ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number} |
| 245 | Enable Device ${olt_device_id} |
| 246 | END |
| 247 | Current State Test All Onus ${expected_onu_reason} |
| 248 | Run Keyword If ${usekill2restart} Kill And Check Onu Adaptor ${namespace} |
| 249 | ... ELSE Restart And Check Onu Adaptor ${namespace} |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 250 | Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT |
TorstenThieme | 136ebf7 | 2021-02-26 14:27:07 +0000 | [diff] [blame] | 251 | ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 252 | ... ELSE Perform Sanity Test |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 253 | |
| 254 | Do Reconcile For Disabled Onu Device |
| 255 | [Documentation] This keyword reconciles ONU device for a disabled onu device and |
| 256 | ... check the state afterwards. |
| 257 | ... Following steps will be executed: |
| 258 | ... - enable OLT device |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 259 | ... - perform sanity test include add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 260 | ... - disable onu device |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 261 | ... - wait for corresponding openonu reason |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 262 | ... - check UNI-ports disabled in ONOS |
| 263 | ... - restart openonu adaptor |
| 264 | ... - check openonu adaptor is ready again |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 265 | ... - check device reason is still before restart |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 266 | ... - enable onu device |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 267 | ... - perform sanity test suppress add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 268 | FOR ${I} IN RANGE 0 ${num_olts} |
| 269 | #get olt serial number |
| 270 | ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn] |
| 271 | #validate olt states |
| 272 | ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number} |
| 273 | Enable Device ${olt_device_id} |
| 274 | END |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 275 | Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT |
TorstenThieme | 136ebf7 | 2021-02-26 14:27:07 +0000 | [diff] [blame] | 276 | ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 277 | ... ELSE Perform Sanity Test |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 278 | Disable Onu Device |
TorstenThieme | 3871cf7 | 2021-01-21 14:11:57 +0000 | [diff] [blame] | 279 | ${alternativeonustates}= Create List omci-flows-deleted |
| 280 | Run Keyword If "${workflow}"=="DT" Current State Test All Onus omci-admin-lock |
| 281 | ... ELSE IF "${workflow}"=="TT" Current State Test All Onus omci-admin-lock |
| 282 | ... ELSE Current State Test All Onus omci-admin-lock alternativeonustate=${alternativeonustates} |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 283 | Run Keyword If ${usekill2restart} Kill And Check Onu Adaptor ${namespace} |
| 284 | ... ELSE Restart And Check Onu Adaptor ${namespace} |
TorstenThieme | 3871cf7 | 2021-01-21 14:11:57 +0000 | [diff] [blame] | 285 | Run Keyword If "${workflow}"=="DT" Current State Test All Onus omci-admin-lock |
| 286 | ... ELSE IF "${workflow}"=="TT" Current State Test All Onus omci-admin-lock |
| 287 | ... ELSE Current State Test All Onus omci-admin-lock alternativeonustate=${alternativeonustates} |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 288 | Wait for all ONU Ports in ONOS Disabled ${onos_ssh_connection} |
| 289 | Enable Onu Device |
TorstenThieme | 70bc526 | 2021-01-19 12:12:55 +0000 | [diff] [blame] | 290 | Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT ${suppressaddsubscriber} |
TorstenThieme | 136ebf7 | 2021-02-26 14:27:07 +0000 | [diff] [blame] | 291 | ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT ${suppressaddsubscriber} |
TorstenThieme | 70bc526 | 2021-01-19 12:12:55 +0000 | [diff] [blame] | 292 | ... ELSE Perform Sanity Test ${suppressaddsubscriber} |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 293 | |
| 294 | Do Reconcile In Omci-Flows-Pushed |
| 295 | [Documentation] This keyword reconciles ONU device in omci-flows-pushed and check the state afterwards. |
| 296 | ... Reconcile test during “omci-flows-pushed” in AT&T-workflow: |
| 297 | ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store) |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 298 | ... - perform sanity test include add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 299 | ... - kill the open-onu-adapter-go |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 300 | ... - wait for open-onu-adapter-go to restart |
| 301 | ... - perform sanity test suppress add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 302 | ... - disable onu device |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 303 | ... - wait for corresponding device reason |
| 304 | ... - check UNI-ports disabled in ONOS |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 305 | ... - enable onu device |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 306 | ... - perform sanity test supress add subscriber |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 307 | FOR ${I} IN RANGE 0 ${num_olts} |
| 308 | #get olt serial number |
| 309 | ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn] |
| 310 | #validate olt states |
| 311 | ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number} |
| 312 | Enable Device ${olt_device_id} |
| 313 | END |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 314 | Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT |
TorstenThieme | 136ebf7 | 2021-02-26 14:27:07 +0000 | [diff] [blame] | 315 | ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT |
TorstenThieme | c3c2323 | 2021-01-13 13:06:31 +0000 | [diff] [blame] | 316 | ... ELSE Perform Sanity Test |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 317 | Run Keyword If ${usekill2restart} Kill And Check Onu Adaptor ${namespace} |
| 318 | ... ELSE Restart And Check Onu Adaptor ${namespace} |
TorstenThieme | 70bc526 | 2021-01-19 12:12:55 +0000 | [diff] [blame] | 319 | Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT ${suppressaddsubscriber} |
TorstenThieme | 136ebf7 | 2021-02-26 14:27:07 +0000 | [diff] [blame] | 320 | ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT ${suppressaddsubscriber} |
TorstenThieme | 70bc526 | 2021-01-19 12:12:55 +0000 | [diff] [blame] | 321 | ... ELSE Perform Sanity Test ${suppressaddsubscriber} |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 322 | Disable Onu Device |
TorstenThieme | 3871cf7 | 2021-01-21 14:11:57 +0000 | [diff] [blame] | 323 | ${alternativeonustates}= Create List omci-flows-deleted |
| 324 | Run Keyword If "${workflow}"=="DT" Current State Test All Onus omci-admin-lock |
| 325 | ... ELSE IF "${workflow}"=="TT" Current State Test All Onus omci-admin-lock |
| 326 | ... ELSE Current State Test All Onus omci-admin-lock alternativeonustate=${alternativeonustates} |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 327 | Wait for all ONU Ports in ONOS Disabled ${onos_ssh_connection} |
TorstenThieme | 440b7c0 | 2020-12-18 15:42:57 +0000 | [diff] [blame] | 328 | Enable Onu Device |
TorstenThieme | 70bc526 | 2021-01-19 12:12:55 +0000 | [diff] [blame] | 329 | Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT ${suppressaddsubscriber} |
TorstenThieme | 136ebf7 | 2021-02-26 14:27:07 +0000 | [diff] [blame] | 330 | ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT ${suppressaddsubscriber} |
TorstenThieme | 70bc526 | 2021-01-19 12:12:55 +0000 | [diff] [blame] | 331 | ... ELSE Perform Sanity Test ${suppressaddsubscriber} |