From: Amichai Date: Wed, 28 Aug 2019 16:23:15 +0000 (+0300) Subject: [RICPLT-1898] - Replace http router to gorilla-mux + UT + Automation code X-Git-Tag: 2.0.10~29^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=4db397dbfa07d202f1a7134e1a7a52b8fb3b5d8a;p=ric-plt%2Fe2mgr.git [RICPLT-1898] - Replace http router to gorilla-mux + UT + Automation code Signed-off-by: Amichai Change-Id: I2979364e7b974a1d0343ac439cffa5d9a1c21848 --- diff --git a/Automation/Dockerfile b/Automation/Dockerfile old mode 100644 new mode 100755 diff --git a/Automation/Scripts/docker_ms.sh b/Automation/Scripts/docker_ms.sh old mode 100644 new mode 100755 diff --git a/Automation/Scripts/k8s_ms.py b/Automation/Scripts/k8s_ms.py old mode 100644 new mode 100755 diff --git a/Automation/Scripts/ric_ms.sh b/Automation/Scripts/ric_ms.sh old mode 100644 new mode 100755 diff --git a/Automation/Scripts/run.sh b/Automation/Scripts/run.sh old mode 100644 new mode 100755 diff --git a/Automation/Tests/ConfigurationUpdate/ConfigurationUpdate_Verify_logs.robot b/Automation/Tests/ConfigurationUpdate/ConfigurationUpdate_Verify_logs.robot new file mode 100755 index 0000000..bc786be --- /dev/null +++ b/Automation/Tests/ConfigurationUpdate/ConfigurationUpdate_Verify_logs.robot @@ -0,0 +1,54 @@ +############################################################################## +# +# 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 *** +Library String +Library OperatingSystem +Library Process +Library ${CURDIR}/verifylogs.py + + +*** Test Cases *** +Verify logs - Confiugration update - Begin Tag Get + ${Configuration}= Grep File ./gnb.log + #Log to console ${Configuration} + ${ConfigurationAfterStrip}= Strip String ${Configuration} + Should Be Equal ${ConfigurationAfterStrip} + +Verify logs - Confiugration update - End Tag Get + ${ConfigurationEnd}= Grep File ./gnb.log + #Log to console ${ConfigurationEnd} + ${ConfigurationEndAfterStrip}= Strip String ${ConfigurationEnd} + Should Be Equal ${ConfigurationEndAfterStrip} + +Verify logs - Confiugration update - Ack Tag Begin + ${ConfigurationAck}= Grep File ./gnb.log + #Log to console ${ConfigurationEnd} + ${ConfigurationAckAfter}= Strip String ${ConfigurationAck} + Should Be Equal ${ConfigurationAckAfter} + +Verify logs - Confiugration update - Ack Tag End + ${ConfigurationAckEnd}= Grep File ./gnb.log + #Log to console ${ConfigurationEnd} + ${ConfigurationAckEndAfterStrip}= Strip String ${ConfigurationAckEnd} + Should Be Equal ${ConfigurationAckEndAfterStrip} + +Verify logs - e2mgr logs + ${result} verifylogs.verify ${EXECDIR} + Should Be Equal As Strings ${result} True \ No newline at end of file diff --git a/Automation/Tests/ConfigurationUpdate/ConfigurationUpdate_prepartations tests.robot b/Automation/Tests/ConfigurationUpdate/ConfigurationUpdate_prepartations tests.robot new file mode 100755 index 0000000..4f4ef3f --- /dev/null +++ b/Automation/Tests/ConfigurationUpdate/ConfigurationUpdate_prepartations tests.robot @@ -0,0 +1,57 @@ +############################################################################## +# +# 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} + + + + + + + + diff --git a/Automation/Tests/ConfigurationUpdate/__init__.robot b/Automation/Tests/ConfigurationUpdate/__init__.robot new file mode 100755 index 0000000..ea4ed94 --- /dev/null +++ b/Automation/Tests/ConfigurationUpdate/__init__.robot @@ -0,0 +1,21 @@ +############################################################################## +# +# 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 *** +Documentation Configuration Update test diff --git a/Automation/Tests/ConfigurationUpdate/__pycache__/verifylogs.cpython-36.pyc b/Automation/Tests/ConfigurationUpdate/__pycache__/verifylogs.cpython-36.pyc new file mode 100755 index 0000000..ff62026 Binary files /dev/null and b/Automation/Tests/ConfigurationUpdate/__pycache__/verifylogs.cpython-36.pyc differ diff --git a/Automation/Tests/ConfigurationUpdate/verifylogs.py b/Automation/Tests/ConfigurationUpdate/verifylogs.py new file mode 100755 index 0000000..fdfd64a --- /dev/null +++ b/Automation/Tests/ConfigurationUpdate/verifylogs.py @@ -0,0 +1,47 @@ +############################################################################## +# +# 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. +# +############################################################################## + + +def verify(directory): + + file = 'e2mgr.log' + + path = '/' + + file_path = directory + path + file + + f = open(file_path,'r') + + found_message_10370 = False + found_message_10371 = False + + for l in f: + if l.find('MType: 10370') > 0 and l.find('Meid: \\"test1\\"') > 0: + found_message_10370 = True + elif l.find('MType: 10371') > 0 and l.find('Meid: \\"test1\\"') > 0: + found_message_10371 = True + if found_message_10370 and found_message_10371: + break + + if found_message_10370 and found_message_10371: + return True + else: + return False + + + diff --git a/Automation/Tests/ENDC-Setup/ENDC-setup_1_setup_request.robot b/Automation/Tests/ENDC-Setup/ENDC-setup_1_setup_request.robot deleted file mode 100644 index 8fc1d58..0000000 --- a/Automation/Tests/ENDC-Setup/ENDC-setup_1_setup_request.robot +++ /dev/null @@ -1,29 +0,0 @@ -*** Settings *** -Suite Setup Start dockers -Resource ../Resource/resource.robot -Library OperatingSystem -Library Collections -Library REST ${url} - - - - -*** Test Cases *** -Post Request setup node b endc-setup - #${file}= Get Binary File ${PATH} - #${file}= Evaluate json.loads($file) json - #Set To Dictionary ${file} ranName=test2 - Set Headers ${header} - POST /v1/nodeb/endc-setup ${json} - Integer response status 200 - - - -*** Keywords *** -Start dockers - Run And Return Rc And Output ${run_script} - ${result}= Run And Return Rc And Output ${docker_command} - Should Be Equal As Integers ${result[1]} 4 - - - diff --git a/Automation/Tests/ENDC-Setup/ENDC-setup_2_get_nodeb_gnb.robot b/Automation/Tests/ENDC-Setup/ENDC-setup_2_get_nodeb_gnb.robot deleted file mode 100644 index 0f5e711..0000000 --- a/Automation/Tests/ENDC-Setup/ENDC-setup_2_get_nodeb_gnb.robot +++ /dev/null @@ -1,43 +0,0 @@ -*** Settings *** -Resource ../Resource/resource.robot -#Suite Setup Start dockers -Library OperatingSystem -Library Collections -Library REST ${url} - - - -*** Test Cases *** -Get request gnb - Sleep 1s - GET /v1/nodeb/test1 - Integer response status 200 - String response body ranName test1 - String response body ip 10.0.2.15 - String response body connectionStatus CONNECTED - Integer response body port 5577 - String response body nodeType GNB - Integer response body gnb servedNrCells 0 servedNrCellInformation nrPci 99 - String response body gnb servedNrCells 0 servedNrCellInformation cellId 02f829:0007ab0120 - String response body gnb servedNrCells 0 servedNrCellInformation servedPlmns 0 "02f829" - String response body gnb servedNrCells 0 servedNrCellInformation nrMode FDD - String response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode fdd ulFreqInfo nrArFcn 100 - Integer response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode fdd ulFreqInfo frequencyBands 0 nrFrequencyBand 9 - Integer response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode fdd ulFreqInfo frequencyBands 0 supportedSulBands 0 9 - String response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode fdd dlFreqInfo nrArFcn 100 - Integer response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode fdd dlFreqInfo frequencyBands 0 nrFrequencyBand 9 - Integer response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode fdd dlFreqInfo frequencyBands 0 supportedSulBands 0 9 - String response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode fdd ulTransmissionBandwidth nrscs SCS15 - String response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode fdd ulTransmissionBandwidth ncnrb NRB11 - String response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode fdd dlTransmissionBandwidth nrscs SCS15 - String response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode fdd dlTransmissionBandwidth ncnrb NRB11 - - - - -#*** Keywords *** -#Start dockers - #Run And Return Rc And Output ${run_script} - #${result}= Run And Return Rc And Output ${docker_command} - #Should Be Equal As Integers ${result[1]} 4 - diff --git a/Automation/Tests/ENDC-Setup/ENDC_Setup_request_test.robot b/Automation/Tests/ENDC-Setup/ENDC_Setup_request_test.robot new file mode 100755 index 0000000..afe843d --- /dev/null +++ b/Automation/Tests/ENDC-Setup/ENDC_Setup_request_test.robot @@ -0,0 +1,56 @@ +############################################################################## +# +# 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 Collections +Library REST ${url} + + + + +*** Test Cases *** +Run Endc setup request + Post Request setup node b endc-setup + Integer response status 200 + +Get request gnb + Sleep 1s + Get Request node b enb test2 + Integer response status 200 + String response body ranName test2 + String response body ip 10.0.2.15 + String response body connectionStatus CONNECTED + Integer response body port 49999 + String response body nodeType GNB + String response body globalNbId plmnId 42f490 + String response body globalNbId nbId 000004 + String response body gnb servedNrCells 0 servedNrCellInformation cellId 42f490:000007fff0 + String response body gnb servedNrCells 0 servedNrCellInformation configuredStac 0000 + String response body gnb servedNrCells 0 servedNrCellInformation servedPlmns 0 "42f490" + String response body gnb servedNrCells 0 servedNrCellInformation nrMode TDD + String response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode tdd nrFreqInfo nrArFcn 650056 + Integer response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode tdd nrFreqInfo frequencyBands 0 nrFrequencyBand 78 + String response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode tdd transmissionBandwidth nrscs SCS30 + String response body gnb servedNrCells 0 servedNrCellInformation choiceNrMode tdd transmissionBandwidth ncnrb NRB162 + + + + diff --git a/Automation/Tests/ENDC-Setup/__init__.robot b/Automation/Tests/ENDC-Setup/__init__.robot old mode 100644 new mode 100755 index de9aa6a..a938b3a --- a/Automation/Tests/ENDC-Setup/__init__.robot +++ b/Automation/Tests/ENDC-Setup/__init__.robot @@ -1,2 +1,20 @@ +############################################################################## +# +# 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 *** Documentation endc-Setup diff --git a/Automation/Tests/ENDC-Setup/log.html b/Automation/Tests/ENDC-Setup/log.html deleted file mode 100644 index 27cfbe8..0000000 --- a/Automation/Tests/ENDC-Setup/log.html +++ /dev/null @@ -1,2125 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Opening Robot Framework log failed

-
    -
  • Verify that you have JavaScript enabled in your browser.
  • -
  • Make sure you are using a modern enough browser. If using Internet Explorer, version 8 or newer is required.
  • -
  • Check are there messages in your browser's JavaScript error log. Please report the problem if you suspect you have encountered a bug.
  • -
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Automation/Tests/ENDC-Setup/output.xml b/Automation/Tests/ENDC-Setup/output.xml deleted file mode 100644 index f3cd0ff..0000000 --- a/Automation/Tests/ENDC-Setup/output.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - -Runs the given command in the system and returns the RC and output. - -${run_script} - -Running command '/home/ubuntu/run.sh 2>&1'. - - - -Runs the given command in the system and returns the RC and output. - -${docker_command} - - -${result} - -Running command 'docker ps | grep snapshot | wc --lines 2>&1'. -${result} = (0, '4') - - - -Fails if objects are unequal after converting them to integers. - -${result[1]} -4 - - - - - - - - -settings - -*Sets new request headers or updates the existing.* - -${header} - - - - - -http - -*Sends a POST request to the endpoint.* - -/v1/nodeb/endc-setup -${json} - - - - - -assertions - -*Asserts the field as JSON integer.* - -response status -200 - - - - - - - - - -Critical Tests -All Tests - - - - -ENDC-setup 1 setup request - - - - - diff --git a/Automation/Tests/ENDC-Setup/report.html b/Automation/Tests/ENDC-Setup/report.html deleted file mode 100644 index 4bbba2e..0000000 --- a/Automation/Tests/ENDC-Setup/report.html +++ /dev/null @@ -1,2431 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Opening Robot Framework report failed

-
    -
  • Verify that you have JavaScript enabled in your browser.
  • -
  • Make sure you are using a modern enough browser. If using Internet Explorer, version 8 or newer is required.
  • -
  • Check are there messages in your browser's JavaScript error log. Please report the problem if you suspect you have encountered a bug.
  • -
-
- - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Automation/Tests/ENDC-Setup/router.txt b/Automation/Tests/ENDC-Setup/router.txt deleted file mode 100644 index 3d0ee40..0000000 --- a/Automation/Tests/ENDC-Setup/router.txt +++ /dev/null @@ -1,10 +0,0 @@ -newrt|start -rte|10060|10.0.2.15:38000 -rte|10360|10.0.2.15:38000 -rte|10061|10.0.2.15:3801 -rte|10361|10.0.2.15:3801 -rte|10062|10.0.2.15:3801 -rte|10362|10.0.2.15:3801 -rte|1080|10.0.2.15:3801 -rte|10020|10.0.2.15:3801 -newrt|end diff --git a/Automation/Tests/Get-All-Nodes-Real/Get_all_nodes_run_setup_and_get_all.robot b/Automation/Tests/Get-All-Nodes-Real/Get_all_nodes_run_setup_and_get_all.robot new file mode 100755 index 0000000..b4ae87e --- /dev/null +++ b/Automation/Tests/Get-All-Nodes-Real/Get_all_nodes_run_setup_and_get_all.robot @@ -0,0 +1,65 @@ +############################################################################## +# +# 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 *** +Library Process +Resource ../Resource/resource.robot +Resource ../Resource/Keywords.robot +Library OperatingSystem +Library REST ${url} + + +*** Test Cases *** +Run x2 setup + Post Request setup node b x-2 + Integer response status 200 + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body ip 10.0.2.15 + Integer response body port 5577 + String response body connectionStatus CONNECTED + +Run endc setup + Post Request setup node b endc-setup + Integer response status 200 + GET /v1/nodeb/test2 + Integer response status 200 + String response body ranName test2 + String response body ip 10.0.2.15 + String response body connectionStatus CONNECTED + + +Get all node ids + GET v1/nodeb-ids + #Output + Integer response status 200 + String response body 0 inventoryName test1 + String response body 0 globalNbId plmnId 02f829 + String response body 0 globalNbId nbId 007ab0 + String response body 1 inventoryName test2 + String response body 1 globalNbId plmnId 42f490 + String response body 1 globalNbId nbId 000004 + + + + + + + + diff --git a/Automation/Tests/Get-All-Nodes-Real/__init__.robot b/Automation/Tests/Get-All-Nodes-Real/__init__.robot new file mode 100755 index 0000000..f5b1b63 --- /dev/null +++ b/Automation/Tests/Get-All-Nodes-Real/__init__.robot @@ -0,0 +1,20 @@ +############################################################################## +# +# 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 *** +Documentation Get all nodes diff --git a/Automation/Tests/Get-All-Nodes/Get_nodes_Add_nodes_and_get.robot b/Automation/Tests/Get-All-Nodes/Get_nodes_Add_nodes_and_get.robot old mode 100644 new mode 100755 index e17be8c..3d1701f --- a/Automation/Tests/Get-All-Nodes/Get_nodes_Add_nodes_and_get.robot +++ b/Automation/Tests/Get-All-Nodes/Get_nodes_Add_nodes_and_get.robot @@ -1,24 +1,40 @@ +############################################################################## +# +# 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 *** Suite Setup Flush Redis Library Process Resource ../Resource/resource.robot Library OperatingSystem +Library ${CURDIR}/scripts.py Library REST ${url} -*** Variables *** -${file} ${CURDIR}/addtoredis.py -${flush_file} ${CURDIR}/flush.py + *** Test Cases *** Add nodes to redis db - ${result}= Run Process python3.6 ${file} - Should Be Equal As Strings ${result.stdout} Insert successfully to Redis + ${result} scripts.add + Should Be Equal As Strings ${result} True Get all node ids - ${result}= GET v1/nodeb-ids - #Output + GET v1/nodeb-ids Integer response status 200 String response body 0 inventoryName test1 String response body 0 globalNbId plmnId 02f829 @@ -31,8 +47,10 @@ Get all node ids *** Keywords *** Flush Redis - ${result}= Run Process python3.6 ${flush_file} - Should Be Equal As Strings ${result.stdout} Flush Success + ${result} scripts.flush + Should Be Equal As Strings ${result} True + + diff --git a/Automation/Tests/Get-All-Nodes/Get_nodes_flush.robot b/Automation/Tests/Get-All-Nodes/Get_nodes_flush.robot deleted file mode 100644 index d48c999..0000000 --- a/Automation/Tests/Get-All-Nodes/Get_nodes_flush.robot +++ /dev/null @@ -1,11 +0,0 @@ -*** Settings *** -Test Teardown Flush Redis - - -*** Variables *** -${file} ${CURDIR}/flush.py - -*** Keywords *** -Flush Redis - ${result}= Run Process python3.6 ${file} - Should Be Equal As Strings ${result.stdout} Flush Success \ No newline at end of file diff --git a/Automation/Tests/Get-All-Nodes/__init__.robot b/Automation/Tests/Get-All-Nodes/__init__.robot old mode 100644 new mode 100755 index e172845..f5b1b63 --- a/Automation/Tests/Get-All-Nodes/__init__.robot +++ b/Automation/Tests/Get-All-Nodes/__init__.robot @@ -1,2 +1,20 @@ +############################################################################## +# +# 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 *** Documentation Get all nodes diff --git a/Automation/Tests/Get-All-Nodes/__pycache__/config.cpython-36.pyc b/Automation/Tests/Get-All-Nodes/__pycache__/config.cpython-36.pyc new file mode 100644 index 0000000..07484b9 Binary files /dev/null and b/Automation/Tests/Get-All-Nodes/__pycache__/config.cpython-36.pyc differ diff --git a/Automation/Tests/Get-All-Nodes/__pycache__/scripts.cpython-36.pyc b/Automation/Tests/Get-All-Nodes/__pycache__/scripts.cpython-36.pyc new file mode 100644 index 0000000..5cb1749 Binary files /dev/null and b/Automation/Tests/Get-All-Nodes/__pycache__/scripts.cpython-36.pyc differ diff --git a/Automation/Tests/Get-All-Nodes/addtoredis.py b/Automation/Tests/Get-All-Nodes/addtoredis.py deleted file mode 100644 index 273a94f..0000000 --- a/Automation/Tests/Get-All-Nodes/addtoredis.py +++ /dev/null @@ -1,32 +0,0 @@ -import redis - -r = redis.Redis(host='localhost', port=6379, db=0) - -r.flushall() - -r.set("{e2Manager},ENB:02f829:007a80", "\n\x05test1\x12\t10.0.2.15\x18\xc9+ \x01*\x10\n\x0602f829\x12\x06007a800\x01:3\b\x01\x12/\bc\x12\x0f02f829:0007ab50\x1a\x040102\"\x0602f829*\n\n\b\b\x01\x10\x01\x18\x04 \x040\x01") - -r.set("{e2Manager},RAN:test1","\x12\t10.0.2.15\x18\xc9+ \x03H\x01R\x02\b\t") - -r.set("{e2Manager},PCI:test1:63" , "\b\x01\x12/\bc\x12\x0f02f829:0007ab50\x1a\x040102\"\x0602f829*\n\n\b\b\x01\x10\x01\x18\x04 \x040\x01") - -r.set("{e2Manager},CELL:02f829:0007ab50" , "\b\x01\x12/\bc\x12\x0f02f829:0007ab50\x1a\x040102\"\x0602f829*\n\n\b\b\x01\x10\x01\x18\x04 \x040\x01") - -r.sadd("{e2Manager},ENB" , "\n\x05test1\x12\x10\n\x0602f829\x12\x06007a80") - - -r.set("{e2Manager},GNB:03f829:002234", "\n\x05test2\x12\t10.0.2.16\x18\xc9+ \x01*\x10\n\x0702f829\x12\x070012340\x02BI\nG\nE\bc\x12\x1102f829:0008ab0120*\x0602f8290\x01:$\n\"\n\t\bd\"\x05\b\t\x12\x01\t\x12\t\bd\"\x05\b\t\x12\x01\t\x1a\x04\b\x01\x10\x01\"\x04\b\x01\x10\x01") - -r.set("{e2Manager},RAN:test2", "\n\x05test2\x12\t10.0.2.15\x18\xc9+ \x01*\x10\n\x0702f829\x12\x070012340\x03BI\nG\nE\bc\x12\x1103f829:0008ab0120*\x0602f8290\x01:$\n\"\n\t\bd\"\x05\b\t\x12\x01\t\x12\t\bd\"\x05\b\t\x12\x01\t\x1a\x04\b\x01\x10\x01\"\x04\b\x01\x10\x01") - -r.set("{e2Manager},PCI:test2:63", "\b\x02\x1aG\nE\bc\x12\x1102f829:0008ab0120*\x0702f8290\x01:$\n\"\n\t\bd\"\x05\b\t\x12\x01\t\x12\t\bd\"\x05\b\t\x12\x01\t\x1a\x04\b\x01\x10\x01\"\x04\b\x01\x10\x01") - -r.set("{e2Manager},NRCELL:02f829:0007ab0120", "\b\x02\x1aG\nE\bc\x12\x1102f829:0007ab0120*\x0602f8290\x01:$\n\"\n\t\bd\"\x05\b\t\x12\x01\t\x12\t\bd\"\x05\b\t\x12\x01\t\x1a\x04\b\x01\x10\x01\"\x04\b\x01\x10\x01") - -r.sadd("{e2Manager},GNB","\n\x05test2\x12\x10\n\x0603f829\x12\x06001234") - -print("Insert successfully to Redis") - - - - diff --git a/Automation/Tests/Get-All-Nodes/config.py b/Automation/Tests/Get-All-Nodes/config.py new file mode 100755 index 0000000..b608bee --- /dev/null +++ b/Automation/Tests/Get-All-Nodes/config.py @@ -0,0 +1,20 @@ +############################################################################## +# +# 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. +# +############################################################################## + +redis_ip_address = 'localhost' +redis_ip_port = 6379 diff --git a/Automation/Tests/Get-All-Nodes/flush.py b/Automation/Tests/Get-All-Nodes/flush.py deleted file mode 100644 index 8deba40..0000000 --- a/Automation/Tests/Get-All-Nodes/flush.py +++ /dev/null @@ -1,7 +0,0 @@ -import redis - -r = redis.Redis(host='localhost', port=6379, db=0) - -r.flushall() - -print("Flush Success") \ No newline at end of file diff --git a/Automation/Tests/Get-All-Nodes/scripts.py b/Automation/Tests/Get-All-Nodes/scripts.py new file mode 100755 index 0000000..b022d75 --- /dev/null +++ b/Automation/Tests/Get-All-Nodes/scripts.py @@ -0,0 +1,67 @@ +############################################################################## +# +# 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. +# +############################################################################## + +import config +import redis + + +def flush(): + + c = config.redis_ip_address + + p = config.redis_ip_port + + r = redis.Redis(host=c, port=p, db=0) + + r.flushall() + + return True + + +def add(): + + c = config.redis_ip_address + + p = config.redis_ip_port + + r = redis.Redis(host=c, port=p, db=0) + + r.flushall() + + r.set("{e2Manager},ENB:02f829:007a80", "\n\x05test1\x12\t10.0.2.15\x18\xc9+ \x01*\x10\n\x0602f829\x12\x06007a800\x01:3\b\x01\x12/\bc\x12\x0f02f829:0007ab50\x1a\x040102\"\x0602f829*\n\n\b\b\x01\x10\x01\x18\x04 \x040\x01") + + r.set("{e2Manager},RAN:test1","\x12\t10.0.2.15\x18\xc9+ \x03H\x01R\x02\b\t") + + r.set("{e2Manager},PCI:test1:63" , "\b\x01\x12/\bc\x12\x0f02f829:0007ab50\x1a\x040102\"\x0602f829*\n\n\b\b\x01\x10\x01\x18\x04 \x040\x01") + + r.set("{e2Manager},CELL:02f829:0007ab50" , "\b\x01\x12/\bc\x12\x0f02f829:0007ab50\x1a\x040102\"\x0602f829*\n\n\b\b\x01\x10\x01\x18\x04 \x040\x01") + + r.sadd("{e2Manager},ENB" , "\n\x05test1\x12\x10\n\x0602f829\x12\x06007a80") + + + r.set("{e2Manager},GNB:03f829:002234", "\n\x05test2\x12\t10.0.2.16\x18\xc9+ \x01*\x10\n\x0702f829\x12\x070012340\x02BI\nG\nE\bc\x12\x1102f829:0008ab0120*\x0602f8290\x01:$\n\"\n\t\bd\"\x05\b\t\x12\x01\t\x12\t\bd\"\x05\b\t\x12\x01\t\x1a\x04\b\x01\x10\x01\"\x04\b\x01\x10\x01") + + r.set("{e2Manager},RAN:test2", "\n\x05test2\x12\t10.0.2.15\x18\xc9+ \x01*\x10\n\x0702f829\x12\x070012340\x03BI\nG\nE\bc\x12\x1103f829:0008ab0120*\x0602f8290\x01:$\n\"\n\t\bd\"\x05\b\t\x12\x01\t\x12\t\bd\"\x05\b\t\x12\x01\t\x1a\x04\b\x01\x10\x01\"\x04\b\x01\x10\x01") + + r.set("{e2Manager},PCI:test2:63", "\b\x02\x1aG\nE\bc\x12\x1102f829:0008ab0120*\x0702f8290\x01:$\n\"\n\t\bd\"\x05\b\t\x12\x01\t\x12\t\bd\"\x05\b\t\x12\x01\t\x1a\x04\b\x01\x10\x01\"\x04\b\x01\x10\x01") + + r.set("{e2Manager},NRCELL:02f829:0007ab0120", "\b\x02\x1aG\nE\bc\x12\x1102f829:0007ab0120*\x0602f8290\x01:$\n\"\n\t\bd\"\x05\b\t\x12\x01\t\x12\t\bd\"\x05\b\t\x12\x01\t\x1a\x04\b\x01\x10\x01\"\x04\b\x01\x10\x01") + + r.sadd("{e2Manager},GNB","\n\x05test2\x12\x10\n\x0603f829\x12\x06001234") + + return True diff --git a/Automation/Tests/Health/__init__.robot b/Automation/Tests/Health/__init__.robot old mode 100644 new mode 100755 index 233a921..a5cf8f8 --- a/Automation/Tests/Health/__init__.robot +++ b/Automation/Tests/Health/__init__.robot @@ -1,2 +1,20 @@ +############################################################################## +# +# 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 *** Documentation ORAN health check diff --git a/Automation/Tests/Health/get_health_check.robot b/Automation/Tests/Health/get_health_check.robot old mode 100644 new mode 100755 index d6e41b3..6d05a8c --- a/Automation/Tests/Health/get_health_check.robot +++ b/Automation/Tests/Health/get_health_check.robot @@ -1,5 +1,22 @@ +############################################################################## +# +# 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 *** -Suite Setup Start dockers Resource ../Resource/resource.robot Library OperatingSystem Library REST ${url} diff --git a/Automation/Tests/LoadInfomation/__pycache__/config.cpython-36.pyc b/Automation/Tests/LoadInfomation/__pycache__/config.cpython-36.pyc new file mode 100755 index 0000000..088660e Binary files /dev/null and b/Automation/Tests/LoadInfomation/__pycache__/config.cpython-36.pyc differ diff --git a/Automation/Tests/LoadInfomation/__pycache__/loadscripts.cpython-36.pyc b/Automation/Tests/LoadInfomation/__pycache__/loadscripts.cpython-36.pyc new file mode 100755 index 0000000..507c7d1 Binary files /dev/null and b/Automation/Tests/LoadInfomation/__pycache__/loadscripts.cpython-36.pyc differ diff --git a/Automation/Tests/RedButton/RedButton_CONNECTED.robot b/Automation/Tests/RedButton/RedButton_CONNECTED.robot new file mode 100755 index 0000000..9cf2f39 --- /dev/null +++ b/Automation/Tests/RedButton/RedButton_CONNECTED.robot @@ -0,0 +1,52 @@ +############################################################################## +# +# 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 Collections +Library REST ${url} + + +*** Test Cases *** + +Prepare Ran in Connected connectionStatus + Post Request setup node b x-2 + Integer response status 200 + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus CONNECTED + + +Disconnect Ran + PUT /v1/nodeb/shutdown + Integer response status 204 + + + +Verfiy Shutdown ConnectionStatus + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus SHUT_DOWN + + diff --git a/Automation/Tests/RedButton/RedButton_CONNECTED_SHUTDOWN_CONNECTED.robot b/Automation/Tests/RedButton/RedButton_CONNECTED_SHUTDOWN_CONNECTED.robot new file mode 100755 index 0000000..23221d7 --- /dev/null +++ b/Automation/Tests/RedButton/RedButton_CONNECTED_SHUTDOWN_CONNECTED.robot @@ -0,0 +1,75 @@ +############################################################################## +# +# 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 Collections +Library REST ${url} + + +*** Variables *** +${restart_docker_sim} docker restart gnbe2_simu + + +*** Test Cases *** + +Prepare Ran in Connected connectionStatus + Post Request setup node b x-2 + Integer response status 200 + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus CONNECTED + + +Disconnect Ran + PUT /v1/nodeb/shutdown + Integer response status 204 + + + +Verfiy Shutdown ConnectionStatus + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus SHUT_DOWN + +Restart simualtor + + Run And Return Rc And Output ${restart_docker_sim} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} 5 + + +repare Ran in Connected connectionStatus + Post Request setup node b x-2 + Integer response status 200 + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus CONNECTED + + + + + diff --git a/Automation/Tests/RedButton/RedButton_CONNECTING.robot b/Automation/Tests/RedButton/RedButton_CONNECTING.robot new file mode 100755 index 0000000..7d317c1 --- /dev/null +++ b/Automation/Tests/RedButton/RedButton_CONNECTING.robot @@ -0,0 +1,59 @@ +############################################################################## +# +# 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 Collections +Library REST ${url} + +*** Variables *** +${stop_docker_e2} docker stop e2 + + + +*** Test Cases *** + +Pre Condition for Connecting - no E2 + Run And Return Rc And Output ${stop_docker_e2} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} 4 + + +Prepare Ran in Connecting connectionStatus + Sleep 1s + Post Request setup node b x-2 + Integer response status 200 + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus CONNECTING + +Disconnect Ran + PUT /v1/nodeb/shutdown + Integer response status 204 + + +Verfiy Shutdown ConnectionStatus + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus SHUT_DOWN + diff --git a/Automation/Tests/RedButton/RedButton_CONNECTION_FAILURE.robot b/Automation/Tests/RedButton/RedButton_CONNECTION_FAILURE.robot new file mode 100755 index 0000000..581aa81 --- /dev/null +++ b/Automation/Tests/RedButton/RedButton_CONNECTION_FAILURE.robot @@ -0,0 +1,52 @@ +############################################################################## +# +# 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 Collections +Library REST ${url} + + +*** Test Cases *** + +Prepare Ran in CONNECTION FAILURE connectionStatus + Set Headers ${header} + POST /v1/nodeb/x2-setup ${json} + Sleep 1s + POST /v1/nodeb/x2-setup ${json} + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body connectionStatus CONNECTED_SETUP_FAILED + +Disconnect Ran + PUT /v1/nodeb/shutdown + Integer response status 204 + + + +Verfiy Shutdown ConnectionStatus + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus SHUT_DOWN + + diff --git a/Automation/Tests/RedButton/RedButton_DISCONNECTED.robot b/Automation/Tests/RedButton/RedButton_DISCONNECTED.robot new file mode 100755 index 0000000..575fbad --- /dev/null +++ b/Automation/Tests/RedButton/RedButton_DISCONNECTED.robot @@ -0,0 +1,59 @@ +############################################################################## +# +# 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 Collections +Library REST ${url} + +*** Variables *** +${stop_docker_e2} docker stop e2adapter + + + +*** Test Cases *** + +Pre Condition for Connecting - no E2ADAPTER + Run And Return Rc And Output ${stop_docker_e2} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} 4 + + +Prepare Ran in Connecting connectionStatus + Post Request setup node b endc-setup + Integer response status 200 + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test2 + String response body connectionStatus DISCONNECTED + +Disconnect Ran + PUT /v1/nodeb/shutdown + Integer response status 204 + + + +Verfiy Shutdown ConnectionStatus + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test2 + String response body connectionStatus SHUT_DOWN + diff --git a/Automation/Tests/RedButton/RedButton_SHUTDOWN_SHUTDOWN.robot b/Automation/Tests/RedButton/RedButton_SHUTDOWN_SHUTDOWN.robot new file mode 100755 index 0000000..187d56a --- /dev/null +++ b/Automation/Tests/RedButton/RedButton_SHUTDOWN_SHUTDOWN.robot @@ -0,0 +1,60 @@ +############################################################################## +# +# 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 Collections +Library REST ${url} + + +*** Test Cases *** + +Prepare Ran in Connected connectionStatus + Post Request setup node b x-2 + Integer response status 200 + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus CONNECTED + +Disconnect Ran + PUT /v1/nodeb/shutdown + Integer response status 204 + +Verfiy Shutdown ConnectionStatus + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus SHUT_DOWN + +Disconnect Ran on shutdown Status + PUT /v1/nodeb/shutdown + Integer response status 204 + +Verfiy Shutdown ConnectionStatus second time + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus SHUT_DOWN + + diff --git a/Automation/Tests/RedButton/__init__.robot b/Automation/Tests/RedButton/__init__.robot new file mode 100755 index 0000000..e0b9453 --- /dev/null +++ b/Automation/Tests/RedButton/__init__.robot @@ -0,0 +1,20 @@ +############################################################################## +# +# 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 *** +Documentation ORAN Red Button Scenarios diff --git a/Automation/Tests/Reset_RIC_TO_RAN/Reset_Happy_no_cause.robot b/Automation/Tests/Reset_RIC_TO_RAN/Reset_Happy_no_cause.robot new file mode 100755 index 0000000..c9203be --- /dev/null +++ b/Automation/Tests/Reset_RIC_TO_RAN/Reset_Happy_no_cause.robot @@ -0,0 +1,42 @@ +############################################################################## +# +# 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 Collections +Library REST ${url} + + +*** Test Cases *** + +Prepare Ran in Connected connectionStatus + Post Request setup node b x-2 + Integer response status 200 + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus CONNECTED + + +Send Reset reqeust with no cause + Set Headers ${header} + PUT /v1/nodeb-reset/test1 + Integer response status 204 \ No newline at end of file diff --git a/Automation/Tests/Reset_RIC_TO_RAN/Reset_Happy_with_cause.robot b/Automation/Tests/Reset_RIC_TO_RAN/Reset_Happy_with_cause.robot new file mode 100755 index 0000000..693d018 --- /dev/null +++ b/Automation/Tests/Reset_RIC_TO_RAN/Reset_Happy_with_cause.robot @@ -0,0 +1,42 @@ +############################################################################## +# +# 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 Collections +Library REST ${url} + + +*** Test Cases *** + +Prepare Ran in Connected connectionStatus + Post Request setup node b x-2 + Integer response status 200 + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus CONNECTED + + +Send Reset reqeust with no cause + Set Headers ${header} + PUT /v1/nodeb-reset/test1 ${resetcausejson} + Integer response status 204 \ No newline at end of file diff --git a/Automation/Tests/Reset_RIC_TO_RAN/Reset_unhappy.robot b/Automation/Tests/Reset_RIC_TO_RAN/Reset_unhappy.robot new file mode 100755 index 0000000..9f1b33f --- /dev/null +++ b/Automation/Tests/Reset_RIC_TO_RAN/Reset_unhappy.robot @@ -0,0 +1,54 @@ +############################################################################## +# +# 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 Collections +Library REST ${url} + +*** Variables *** +${stop_docker_e2} docker stop e2 + + + +*** Test Cases *** + +Pre Condition for Connecting - no E2 + Run And Return Rc And Output ${stop_docker_e2} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} 4 + + +Prepare Ran in Connecting connectionStatus + Sleep 1s + Post Request setup node b x-2 + Integer response status 200 + Sleep 1s + GET /v1/nodeb/test1 + Integer response status 200 + String response body ranName test1 + String response body connectionStatus CONNECTING + + +Send Reset reqeust with no cause + Set Headers ${header} + PUT /v1/nodeb-reset/test1 ${resetcausejson} + Integer response status 400 + Integer response body errorCode 403 + diff --git a/Automation/Tests/Reset_RIC_TO_RAN/__init__.robot b/Automation/Tests/Reset_RIC_TO_RAN/__init__.robot new file mode 100755 index 0000000..0e9f050 --- /dev/null +++ b/Automation/Tests/Reset_RIC_TO_RAN/__init__.robot @@ -0,0 +1,20 @@ +############################################################################## +# +# 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 *** +Documentation ORAN Reset API - RIC to RAN diff --git a/Automation/Tests/Resource/Keywords.robot b/Automation/Tests/Resource/Keywords.robot new file mode 100755 index 0000000..e5af3d3 --- /dev/null +++ b/Automation/Tests/Resource/Keywords.robot @@ -0,0 +1,58 @@ +############################################################################## +# +# 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 *** +Documentation Keywords file +Resource ../Resource/resource.robot +Library OperatingSystem + + + + + +*** Keywords *** +Post Request setup node b x-2 + Set Headers ${header} + POST /v1/nodeb/x2-setup ${json} + + + +Get Request node b enb test1 + Sleep 1s + GET /v1/nodeb/test1 + + +Get Request node b enb test2 + Sleep 1s + GET /v1/nodeb/test2 + + + +Post Request setup node b endc-setup + Set Headers ${header} + POST /v1/nodeb/endc-setup ${endcjson} + + +Prepare Simulator For Load Information + Run And Return Rc And Output ${stop_simu} + Run And Return Rc And Output ${docker_Remove} + Run And Return Rc And Output ${run_simu} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} 5 + + diff --git a/Automation/Tests/Resource/resource.robot b/Automation/Tests/Resource/resource.robot old mode 100644 new mode 100755 index 45d1ee8..2110d8d --- a/Automation/Tests/Resource/resource.robot +++ b/Automation/Tests/Resource/resource.robot @@ -1,3 +1,21 @@ +############################################################################## +# +# 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 *** Documentation Resource file @@ -5,6 +23,10 @@ Documentation Resource file *** Variables *** ${url} http://localhost:3800 ${json} {"ranIp": "10.0.2.15","ranPort": 5577,"ranName":"test1"} +${endcjson} {"ranIp": "10.0.2.15","ranPort": 49999,"ranName":"test2"} +${resetcausejson} {"cause": "misc:not-enough-user-plane-processing-resources"} ${header} {"Content-Type": "application/json"} -${run_script} /home/ubuntu/run.sh ${docker_command} docker ps | grep 1.0 | wc --lines +${run_simu} docker run -d --name gnbe2_simu --env gNBipv4=localhost --env gNBport=36422 --env duration=600000000000 --env indicationReportRate=1000000000 --env indicationInsertRate=0 -p 5577:36422/sctp snapshot.docker.ranco-dev-tools.eastus.cloudapp.azure.com:10001/gnbe2_sim:1.0.5 +${stop_simu} docker stop gnbe2_simu +${docker_Remove} docker rm gnbe2_simu diff --git a/Automation/Tests/Unhappy/Resource_not_found.robot b/Automation/Tests/Unhappy/Resource_not_found.robot old mode 100644 new mode 100755 index e29a2bd..a026317 --- a/Automation/Tests/Unhappy/Resource_not_found.robot +++ b/Automation/Tests/Unhappy/Resource_not_found.robot @@ -1,5 +1,22 @@ +############################################################################## +# +# 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 *** -Suite Setup Start dockers Resource ../Resource/resource.robot Library OperatingSystem Library REST ${url} @@ -12,9 +29,3 @@ Get Request node b gnb - resource not found 404 Integer response body errorCode 404 String response body errorMessage "Resource not found" - -*** Keywords *** -Start dockers - Run And Return Rc And Output ${run_script} - ${result}= Run And Return Rc And Output ${docker_command} - Should Be Equal As Integers ${result[1]} 4 \ No newline at end of file diff --git a/Automation/Tests/Unhappy/Response400.robot b/Automation/Tests/Unhappy/Response400.robot old mode 100644 new mode 100755 index b427375..088792d --- a/Automation/Tests/Unhappy/Response400.robot +++ b/Automation/Tests/Unhappy/Response400.robot @@ -1,5 +1,22 @@ +############################################################################## +# +# 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 *** -Suite Setup Start dockers Resource ../Resource/resource.robot Library OperatingSystem Library REST ${url} @@ -12,9 +29,3 @@ Post Request setup node b endc-setup - 400 validation of fields POST /v1/nodeb/endc-setup Integer response status 400 - -*** Keywords *** -Start dockers - Run And Return Rc And Output ${run_script} - ${result}= Run And Return Rc And Output ${docker_command} - Should Be Equal As Integers ${result[1]} 4 \ No newline at end of file diff --git a/Automation/Tests/Unhappy/Response500.robot b/Automation/Tests/Unhappy/Response500.robot old mode 100644 new mode 100755 index 144c4d7..2ae4897 --- a/Automation/Tests/Unhappy/Response500.robot +++ b/Automation/Tests/Unhappy/Response500.robot @@ -1,5 +1,22 @@ +############################################################################## +# +# 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 *** -Suite Setup Start dockers Resource ../Resource/resource.robot Library OperatingSystem Library REST ${url} @@ -15,4 +32,4 @@ Get Request node b gnb - DB down - 500 Start dockers Run And Return Rc And Output ${run_script} ${result}= Run And Return Rc And Output ${docker_command} - Should Be Equal As Integers ${result[1]} 4 \ No newline at end of file + Should Be Equal As Integers ${result[1]} 5 \ No newline at end of file diff --git a/Automation/Tests/Unhappy/Setup_failure.robot b/Automation/Tests/Unhappy/Setup_failure.robot old mode 100644 new mode 100755 index 24afb06..8e5d7c4 --- a/Automation/Tests/Unhappy/Setup_failure.robot +++ b/Automation/Tests/Unhappy/Setup_failure.robot @@ -1,5 +1,22 @@ +############################################################################## +# +# 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 *** -Suite Setup Start dockers Resource ../Resource/resource.robot Library OperatingSystem Library REST ${url} @@ -9,8 +26,6 @@ Library REST ${url} *** Test Cases *** Post Request setup node b x2-setup - setup failure - #${file}= Get Binary File ${PATH} - #${file}= Evaluate json.loads($file) json Set Headers ${header} POST /v1/nodeb/x2-setup ${json} Sleep 1s @@ -23,10 +38,3 @@ Post Request setup node b x2-setup - setup failure String response body setupFailure networkLayerCause HO_TARGET_NOT_ALLOWED - - -*** Keywords *** -Start dockers - Run And Return Rc And Output ${run_script} - ${result}= Run And Return Rc And Output ${docker_command} - Should Be Equal As Integers ${result[1]} 4 \ No newline at end of file diff --git a/Automation/Tests/Unhappy/log.html b/Automation/Tests/Unhappy/log.html deleted file mode 100644 index fe754c7..0000000 --- a/Automation/Tests/Unhappy/log.html +++ /dev/null @@ -1,2125 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Opening Robot Framework log failed

-
    -
  • Verify that you have JavaScript enabled in your browser.
  • -
  • Make sure you are using a modern enough browser. If using Internet Explorer, version 8 or newer is required.
  • -
  • Check are there messages in your browser's JavaScript error log. Please report the problem if you suspect you have encountered a bug.
  • -
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Automation/Tests/Unhappy/output.xml b/Automation/Tests/Unhappy/output.xml deleted file mode 100644 index 6589bfa..0000000 --- a/Automation/Tests/Unhappy/output.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - -Runs the given command in the system and returns the RC and output. - -${run_script} - -Running command '/home/ubuntu/run.sh 2>&1'. - - - -Runs the given command in the system and returns the RC and output. - -${docker_command} - - -${result} - -Running command 'docker ps | grep snapshot | wc --lines 2>&1'. -${result} = (0, '4') - - - -Fails if objects are unequal after converting them to integers. - -${result[1]} -4 - - - - - - - - -settings - -*Sets new request headers or updates the existing.* - -${header} - - - - - -http - -*Sends a POST request to the endpoint.* - -/v1/nodeb/x2-setup -${json} - - - - -Pauses the test executed for the given time. - -1s - -Slept 1 second - - - - -http - -*Sends a POST request to the endpoint.* - -/v1/nodeb/x2-setup -${json} - - - - -Pauses the test executed for the given time. - -1s - -Slept 1 second - - - - -http - -*Sends a GET request to the endpoint.* - -/v1/nodeb/test1 - - - - - -assertions - -*Asserts the field as JSON integer.* - -response status -200 - - - - - -assertions - -*Asserts the field as JSON string.* - -response body connectionStatus -CONNECTED_SETUP_FAILED - - - - - -assertions - -*Asserts the field as JSON string.* - -response body failureType -X2_SETUP_FAILURE - - - - - -assertions - -*Asserts the field as JSON string.* - -response body setupFailure networkLayerCause -HO_TARGET_NOT_ALLOWED - - - - - - - - - -Critical Tests -All Tests - - - - -Setup failure - - - - - diff --git a/Automation/Tests/Unhappy/report.html b/Automation/Tests/Unhappy/report.html deleted file mode 100644 index 7ec8b7f..0000000 --- a/Automation/Tests/Unhappy/report.html +++ /dev/null @@ -1,2431 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Opening Robot Framework report failed

-
    -
  • Verify that you have JavaScript enabled in your browser.
  • -
  • Make sure you are using a modern enough browser. If using Internet Explorer, version 8 or newer is required.
  • -
  • Check are there messages in your browser's JavaScript error log. Please report the problem if you suspect you have encountered a bug.
  • -
-
- - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Automation/Tests/Unhappy/router.txt b/Automation/Tests/Unhappy/router.txt deleted file mode 100644 index 3d0ee40..0000000 --- a/Automation/Tests/Unhappy/router.txt +++ /dev/null @@ -1,10 +0,0 @@ -newrt|start -rte|10060|10.0.2.15:38000 -rte|10360|10.0.2.15:38000 -rte|10061|10.0.2.15:3801 -rte|10361|10.0.2.15:3801 -rte|10062|10.0.2.15:3801 -rte|10362|10.0.2.15:3801 -rte|1080|10.0.2.15:3801 -rte|10020|10.0.2.15:3801 -newrt|end diff --git a/Automation/Tests/X2-Setup/X2-setup_1_send_request.robot b/Automation/Tests/X2-Setup/X2-setup_1_send_request.robot deleted file mode 100644 index 52338ff..0000000 --- a/Automation/Tests/X2-Setup/X2-setup_1_send_request.robot +++ /dev/null @@ -1,29 +0,0 @@ -*** Settings *** -Suite Setup Start dockers -Resource ../Resource/resource.robot -Library OperatingSystem -Library REST ${url} - - - - - -*** Test Cases *** -Post Request setup node b x-2 - #${file}= Get Binary File ${PATH} - #${file}= Evaluate json.loads($file) json - Set Headers ${header} - POST /v1/nodeb/x2-setup ${json} - Integer response status 200 - - -*** Keywords *** -Start dockers - Run And Return Rc And Output ${run_script} - ${result}= Run And Return Rc And Output ${docker_command} - Should Be Equal As Integers ${result[1]} 4 - - - - - diff --git a/Automation/Tests/X2-Setup/X2-setup_2_get_nodeb_enb.robot b/Automation/Tests/X2-Setup/X2_Setup_reuqest_test.robot old mode 100644 new mode 100755 similarity index 52% rename from Automation/Tests/X2-Setup/X2-setup_2_get_nodeb_enb.robot rename to Automation/Tests/X2-Setup/X2_Setup_reuqest_test.robot index c2592d6..cec8e84 --- a/Automation/Tests/X2-Setup/X2-setup_2_get_nodeb_enb.robot +++ b/Automation/Tests/X2-Setup/X2_Setup_reuqest_test.robot @@ -1,17 +1,35 @@ +############################################################################## +# +# 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 *** -#Suite Setup Start dockers + Resource ../Resource/resource.robot +Resource ../Resource/Keywords.robot Library OperatingSystem Library REST ${url} - - - - *** Test Cases *** -Get Request node b enb - Sleep 1s - GET /v1/nodeb/test1 +X2 - Setup Test + Post Request setup node b x-2 + Integer response status 200 + +X2 - Get Nodeb + Get Request node b enb test1 Integer response status 200 String response body ranName test1 String response body ip 10.0.2.15 @@ -30,13 +48,5 @@ Get Request node b enb -*** Keywords *** -#Start dockers - #Run And Return Rc And Output ${run_script} - #${result}= Run And Return Rc And Output ${docker_command} - #Should Be Equal As Integers ${result[1]} 4 - - - diff --git a/Automation/Tests/X2-Setup/__init__.robot b/Automation/Tests/X2-Setup/__init__.robot old mode 100644 new mode 100755 index f1f4548..0692a96 --- a/Automation/Tests/X2-Setup/__init__.robot +++ b/Automation/Tests/X2-Setup/__init__.robot @@ -1,2 +1,20 @@ +############################################################################## +# +# 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 *** Documentation X2-Setup ENB diff --git a/Automation/Tests/log.html b/Automation/Tests/log.html index 3063985..31e3522 100644 --- a/Automation/Tests/log.html +++ b/Automation/Tests/log.html @@ -1735,28 +1735,28 @@ function stopPropagation(event) { window.output = {}; diff --git a/Automation/Tests/output.xml b/Automation/Tests/output.xml index 458431f..cf142d6 100644 --- a/Automation/Tests/output.xml +++ b/Automation/Tests/output.xml @@ -1,77 +1,95 @@ - - - - - -Runs the given command in the system and returns the RC and output. - -${run_script} - -Running command '/home/ubuntu/run.sh 2>&1'. - - - -Runs the given command in the system and returns the RC and output. - -${docker_command} - - -${result} - -Running command 'docker ps | grep 1.0 | wc --lines 2>&1'. -${result} = (0, '4') - - - -Fails if objects are unequal after converting them to integers. + + + + + + + +settings + +*Sets new request headers or updates the existing.* -${result[1]} -4 +${header} - + - - - - + http -*Sends a GET request to the endpoint.* +*Sends a POST request to the endpoint.* -/v1/health +/v1/nodeb/x2-setup +${json} - + + + - +Execution terminated by signal + + -assertions +robot:exit -*Asserts the field as JSON integer.* - -response status -200 - - - - +Test execution stopped due to a fatal error. + + + + + + +robot:exit + +Test execution stopped due to a fatal error. + + + +robot:exit + +Test execution stopped due to a fatal error. + + + + + + +robot:exit + +Test execution stopped due to a fatal error. + + + +robot:exit + +Test execution stopped due to a fatal error. + + + +robot:exit + +Test execution stopped due to a fatal error. - + -ORAN health check - +ORAN Reset API - RIC to RAN + -Critical Tests -All Tests +Critical Tests +All Tests +NOT robot:exit +robot:exit -Health -Health.Get Health Check +Reset RIC TO RAN +Reset RIC TO RAN.Reset Happy no cause +Reset RIC TO RAN.Reset Happy with cause +Reset RIC TO RAN.Reset unhappy diff --git a/Automation/Tests/report.html b/Automation/Tests/report.html index a3ebc5c..b13dee0 100644 --- a/Automation/Tests/report.html +++ b/Automation/Tests/report.html @@ -1585,22 +1585,22 @@ storage = function () { window.output = {};