| ############################################################################## |
| # |
| # Copyright (c) 2019 AT&T Intellectual Property. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| ############################################################################## |
| |
| |
| *** Settings *** |
| Resource ../Resource/resource.robot |
| Resource ../Resource/Keywords.robot |
| Library OperatingSystem |
| Library REST ${url} |
| |
| |
| *** Variables *** |
| ${Run_Config} docker exec gnbe2_simu pkill gnbe2_simu -INT |
| ${Save_e2_log} docker logs --tail 300 gnbe2_simu > gnb.log |
| ${Save_e2mgr_log} docker logs --tail 300 e2mgr > e2mgr.log |
| |
| *** Test Cases *** |
| X2 - Setup and Get |
| Post Request setup node b x-2 |
| Get Request node b enb test1 |
| |
| |
| Run Configuration update |
| Run ${Run_Config} |
| Sleep 1s |
| |
| Remove log files |
| Remove File ${EXECDIR}/gnb.log |
| Remove File ${EXECDIR}/e2mgr.log |
| |
| Save logs |
| Sleep 1s |
| Run ${Save_e2_log} |
| Run ${Save_e2mgr_log} |
| |
| |
| |
| |
| |
| |
| |
| |