First commit

This commit is contained in:
Leonardo Bonati
2021-12-08 20:17:46 +00:00
commit 60dffad583
2923 changed files with 463894 additions and 0 deletions

View File

@@ -0,0 +1,82 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library REST ${url}
Resource ../Resource/scripts_variables.robot
Library String
Library Process
Library ../Scripts/find_rmr_message.py
*** Test Cases ***
X2 - Setup and Get
Post Request setup node b x-2
Get Request node b enb test1
String response body connectionStatus CONNECTED
Run Configuration update
Run ${Run_Config}
Sleep 1s
Prepare logs for tests
Remove log files
Save logs
Verify logs - Confiugration update - Begin Tag Get
${Configuration}= Grep File ./${gnb_log_filename} <ENDCConfigurationUpdate>
${ConfigurationAfterStrip}= Strip String ${Configuration}
Should Be Equal ${ConfigurationAfterStrip} <ENDCConfigurationUpdate>
Verify logs - Confiugration update - End Tag Get
${ConfigurationEnd}= Grep File ./${gnb_log_filename} </ENDCConfigurationUpdate>
${ConfigurationEndAfterStrip}= Strip String ${ConfigurationEnd}
Should Be Equal ${ConfigurationEndAfterStrip} </ENDCConfigurationUpdate>
Verify logs - Confiugration update - Ack Tag Begin
${ConfigurationAck}= Grep File ./${gnb_log_filename} <ENDCConfigurationUpdateAcknowledge>
${ConfigurationAckAfter}= Strip String ${ConfigurationAck}
Should Be Equal ${ConfigurationAckAfter} <ENDCConfigurationUpdateAcknowledge>
Verify logs - Confiugration update - Ack Tag End
${ConfigurationAckEnd}= Grep File ./${gnb_log_filename} </ENDCConfigurationUpdateAcknowledge>
${ConfigurationAckEndAfterStrip}= Strip String ${ConfigurationAckEnd}
Should Be Equal ${ConfigurationAckEndAfterStrip} </ENDCConfigurationUpdateAcknowledge>
Verify logs - find RIC_ENDC_CONF_UPDATE
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${configurationupdate_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
Verify logs - find RIC_ENDC_CONF_UPDATE_ACK
${result1} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${configurationupdate_ack_message_type} ${Meid_test1}
Should Be Equal As Strings ${result1} True

View File

@@ -0,0 +1,25 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Documentation Configuration Update test

View File

@@ -0,0 +1,86 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library Collections
Library REST ${url}
Resource ../Resource/scripts_variables.robot
Library String
Library Process
Library ../Scripts/find_rmr_message.py
Library ../Scripts/find_error_script.py
Library ../Scripts/rsmscripts.py
*** Test Cases ***
Prepare Ran in Connected connectionStatus
# Post Request setup node b endc-setup
Set Headers ${header}
POST /v1/nodeb/endc-setup ${json}
Integer response status 204
Sleep 1s
# GET /v1/nodeb/test2
GET /v1/nodeb/test1
Integer response status 200
# String response body ranName test2
String response body ranName test1
String response body connectionStatus CONNECTED
Run Reset from RAN
Run ${Run_Config}
Sleep 1s
Prepare logs for tests
Remove log files
Save logs
#Verify logs - Reset Sent by e2adapter
# ${result} find_error_script.find_error ${EXECDIR} ${e2adapter_log_filename} ${E2ADAPTER_Setup_Resp}
# Should Be Equal As Strings ${result} True
Verify logs - Reset Sent by simulator
${Reset}= Grep File ./${gnb_log_filename} ResetRequest has been sent
Should Be Equal ${Reset} gnbe2_simu: ResetRequest has been sent
Verify logs - e2mgr logs - messege sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RIC_X2_RESET_REQ_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
Verify logs - e2mgr logs - messege received
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RIC_X2_RESET_RESP_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
RAN Restarted messege sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RAN_RESTARTED_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
RSM RESOURCE STATUS REQUEST message not sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test2}
Should Be Equal As Strings ${result} False
Verify RSM RAN info doesn't exist in redis
${result}= rsmscripts.verify_rsm_ran_info_start_false
Should Be Equal As Strings ${result} False

View File

@@ -0,0 +1,24 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Documentation ORAN Reset - ENDC RAN to RIC Scenario 1

View File

@@ -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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/scripts_variables.robot
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
Library ../Scripts/rsmscripts.py
Library REST ${url}
*** Test Cases ***
Prepare Ran in Connected connectionStatus
Post Request setup node b endc-setup
Integer response status 204
Sleep 1s
GET /v1/nodeb/test2
Integer response status 200
String response body ranName test2
String response body connectionStatus CONNECTED
Send Reset reqeust with no cause
Set Headers ${header}
PUT /v1/nodeb/test2/reset
Integer response status 204
Prepare logs for tests
Remove log files
Save logs
RAN Restarted messege sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RAN_RESTARTED_message_type} ${Meid_test2}
Should Be Equal As Strings ${result} True
RSM RESOURCE STATUS REQUEST message not sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test2}
Should Be Equal As Strings ${result} False
Verify RSM RAN info doesn't exist in redis
${result}= rsmscripts.verify_rsm_ran_info_start_false
Should Be Equal As Strings ${result} False

View File

@@ -0,0 +1,66 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/scripts_variables.robot
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
Library ../Scripts/rsmscripts.py
Library REST ${url}
*** Test Cases ***
Prepare Ran in Connected connectionStatus
Post Request setup node b endc-setup
Integer response status 204
Sleep 1s
GET /v1/nodeb/test2
Integer response status 200
String response body ranName test2
String response body connectionStatus CONNECTED
Send Reset reqeust with cause
Set Headers ${header}
PUT /v1/nodeb/test2/reset ${resetcausejson}
Integer response status 204
Prepare logs for tests
Remove log files
Save logs
RAN Restarted messege sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RAN_RESTARTED_message_type} ${Meid_test2}
Should Be Equal As Strings ${result} True
RSM RESOURCE STATUS REQUEST message not sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test2}
Should Be Equal As Strings ${result} False
Verify RSM RAN info doesn't exist in redis
${result}= rsmscripts.verify_rsm_ran_info_start_false
Should Be Equal As Strings ${result} False

View File

@@ -0,0 +1,24 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Documentation ORAN Reset API - ENDC RIC to RAN

View File

@@ -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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Simulator For Load Information
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library Process
Library ../Scripts/loadscripts.py
Library REST ${url}
Suite Teardown Stop Simulator
*** Test Cases ***
Verify Load information doesn't exist in redis
${result}= loadscripts.verify
Should Be Equal As Strings ${result} False
Adding Load information to overwrite on
${result}= loadscripts.add
Should Be Equal As Strings ${result} True
Trigger X-2 Setup for load information
Post Request setup node b x-2
Integer response status 204
Sleep 1s
GET /v1/nodeb/test1
Integer response status 200
String response body connectionStatus CONNECTED
Verify Load information exists in redis
${result}= loadscripts.verify_value
Should Be Equal As Strings ${result} True

View File

@@ -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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Simulator For Load Information
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library Process
Library ../Scripts/loadscripts.py
Library REST ${url}
Suite Teardown Stop Simulator
*** Test Cases ***
Verify Load information doesn't exist in redis
${result}= loadscripts.verify
Should Be Equal As Strings ${result} False
Trigger X-2 Setup for load information
Post Request setup node b x-2
Integer response status 204
Sleep 1s
GET /v1/nodeb/test1
Integer response status 200
String response body connectionStatus CONNECTED
Verify Load information does exist in redis
Sleep 2s
${result}= loadscripts.verify
Should Be Equal As Strings ${result} True

View File

@@ -0,0 +1,24 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Documentation ORAN Load Infomration scenarios

View File

@@ -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 Resource status

View File

@@ -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 ***
Suite Setup Prepare Enviorment
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Resource ../Resource/scripts_variables.robot
Resource resource_status_keywords.robot
Library ../Scripts/rsmscripts.py
Library ../Scripts/find_rmr_message.py
Library OperatingSystem
Library REST ${url_rsm}
Suite Teardown Delete All Sessions
*** Test Cases ***
Run setup
rsmscripts.set_general_config_resource_status_false
Prepare Ran In Connected Status
Put Http Start Request To RSM
Put Request Resource Status Start
Integer response status 204
Verify RSM RAN Info Status Is Start And True In Redis
Sleep 1s
${result}= rsmscripts.verify_rsm_ran_info_start_true
Should Be Equal As Strings ${result} True
Verify RSM Enable Resource Status Is True In General Configuration In Redis
${result}= rsmscripts.verify_general_config_enable_resource_status_true
Should Be Equal As Strings ${result} True
prepare logs for tests
Remove log files
Save logs
Verify RSM Resource Status Request Message Sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test1}
Should Be Equal As Strings ${result} True

View File

@@ -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 ***
Suite Setup Prepare Enviorment
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Resource ../Resource/scripts_variables.robot
Resource resource_status_keywords.robot
Library ../Scripts/rsmscripts.py
Library ../Scripts/find_rmr_message.py
Library OperatingSystem
Library REST ${url_rsm}
Suite Teardown Delete All Sessions
*** Test Cases ***
Run setup
rsmscripts.set_general_config_resource_status_false
Prepare Ran In Connected Status
Put Http Stop Request To RSM
Put Request Resource Status Stop
Integer response status 204
Verify RSM RAN Info Status Is Stop And True In Redis
${result}= rsmscripts.verify_rsm_ran_info_stop_true
Should Be Equal As Strings ${result} True
Verify RSM Enable Resource Status Is False In General Configuration In Redis
${result}= rsmscripts.verify_general_config_enable_resource_status_false
Should Be Equal As Strings ${result} True
prepare logs for tests
Remove log files
Save logs
Verify RSM Resource Status Request Message Not Sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test1}
Should Be Equal As Strings ${result} False

View File

@@ -0,0 +1,36 @@
##############################################################################
#
# 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
Library ../Scripts/cleanup_db.py
Resource ../Resource/resource.robot
Library Collections
Library OperatingSystem
Library json
Library RequestsLibrary
*** Keywords ***
Prepare Ran In Connected Status
Create Session x2setup ${url}
${headers}= Create Dictionary Accept=application/json Content-Type=application/json
${resp}= Post Request x2setup /v1/nodeb/x2-setup data=${json_setup_rsm_tests} headers=${headers}
Should Be Equal As Strings ${resp.status_code} 204

View File

@@ -0,0 +1,55 @@
##############################################################################
#
# 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 Prepare Enviorment
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Resource ../Resource/scripts_variables.robot
Resource resource_status_keywords.robot
Library ../Scripts/rsmscripts.py
Library ../Scripts/find_rmr_message.py
Library OperatingSystem
Library REST ${url_rsm}
Suite Teardown Delete All Sessions
*** Test Cases ***
Run setup
Prepare Ran In Connected Status
Put Http Start Request To RSM
Put Request Resource Status Start
Integer response status 204
Verify RSM RAN Info Status Is Start And True In Redis
Sleep 1s
${result}= rsmscripts.verify_rsm_ran_info_start_true
Should Be Equal As Strings ${result} True
Verify RSM Enable Resource Status Is True In General Configuration In Redis
${result}= rsmscripts.verify_general_config_enable_resource_status_true
Should Be Equal As Strings ${result} True
prepare logs for RSM tests
Remove log files
Save logs
Verify RSM Resource Status Request Message Sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test1}
Should Be Equal As Strings ${result} True

View File

@@ -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 ***
Suite Setup Prepare Enviorment
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Resource ../Resource/scripts_variables.robot
Resource resource_status_keywords.robot
Library ../Scripts/rsmscripts.py
Library ../Scripts/find_rmr_message.py
Library OperatingSystem
Library REST ${url_rsm}
Suite Teardown Delete All Sessions
*** Test Cases ***
Run setup
Prepare Ran In Connected Status
Put Http Stop Request To RSM
Put Request Resource Status Stop
Integer response status 204
#Verify RSM RAN Info Status Is Stop And False In Redis
#${result}= rsmscripts.verify_rsm_ran_info_stop_false
#Should Be Equal As Strings ${result} True
Verify RSM Enable Resource Status Is False In General Configuration In Redis
${result}= rsmscripts.verify_general_config_enable_resource_status_false
Should Be Equal As Strings ${result} True
prepare logs for tests
Remove log files
Save logs
Verify RSM Resource Status Request Message Sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test1}
Should Be Equal As Strings ${result} True

View File

@@ -0,0 +1,46 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Resource red_button_keywords.robot
Library OperatingSystem
Library Collections
Library REST ${url}
*** Test Cases ***
Verify gnb nodeb connection status is CONNECTED and it's associated to an e2t instance
Verify connected and associated
Execute Shutdown
Execute Shutdown
Verify nodeb's connection status is SHUT_DOWN and it's NOT associated to an e2t instance
Verify shutdown for gnb
Verify E2T instance has no associated RANs
Verify E2T instance has no associated RANs

View File

@@ -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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Library Collections
Resource ../Resource/Keywords.robot
Resource ../Resource/resource.robot
Library OperatingSystem
Library REST ${url}
*** Test Cases ***
Reset - 400 http - 401 Corrupted json
Post Request setup node b x-2
Integer response status 204
Sleep 1s
GET /v1/nodeb/test1
String response body connectionStatus CONNECTED
Set Headers ${header}
PUT /v1/nodeb/test1/reset {abc}
Integer response status 400
Integer response body errorCode 401
String response body errorMessage corrupted json
Reset - 400 http - 401 Validation error
Set Headers ${header}
PUT /v1/nodeb/test1/reset ${resetbadcausejson}
Integer response status 400
Integer response body errorCode 402
String response body errorMessage Validation error

View File

@@ -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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Library Collections
Resource ../Resource/Keywords.robot
Resource ../Resource/resource.robot
Library OperatingSystem
Library REST ${url}
*** Test Cases ***
Pre Condition for Connecting - no simu
Run And Return Rc And Output ${stop_simu}
${result}= Run And Return Rc And Output ${docker_command}
Should Be Equal As Integers ${result[1]} ${docker_number-1}
Reset - 400 http - 403 wrong state
Post Request setup node b x-2
Integer response status 204
Sleep 10s
GET /v1/nodeb/test1
String response body connectionStatus DISCONNECTED
Set Headers ${header}
PUT /v1/nodeb/test1/reset
#Output
Integer response status 400
Integer response body errorCode 403
String response body errorMessage ${403_reset_message}

View File

@@ -0,0 +1,38 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/Keywords.robot
Resource ../Resource/resource.robot
Library OperatingSystem
Library REST ${url}
*** Test Cases ***
Reset - 404 http - 404 Corrupted json
Set Headers ${header}
PUT /v1/nodeb/test11/reset
Integer response status 404
Integer response body errorCode 404
String response body errorMessage Resource not found

View File

@@ -0,0 +1,51 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Library Collections
Resource ../Resource/Keywords.robot
Resource ../Resource/resource.robot
Library OperatingSystem
Library REST ${url}
*** Test Cases ***
Endc-setup - 400 http - 401 Corrupted json
Set Headers ${header}
POST /v1/nodeb/endc-setup
Integer response status 400
Integer response body errorCode 401
String response body errorMessage corrupted json
Endc-setup - 400 http - 402 Validation error
Set Headers ${header}
POST /v1/nodeb/endc-setup ${endcbadjson}
Integer response status 400
Integer response body errorCode 402
String response body errorMessage Validation error

View File

@@ -0,0 +1,39 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/Keywords.robot
Resource ../Resource/resource.robot
Library REST ${url}
Suite Teardown Start Dbass
*** Test Cases ***
ENDC-setup - 500 http - 500 RNIB error
Stop Dbass
Set Headers ${header}
POST /v1/nodeb/endc-setup ${json}
Integer response status 500
Integer response body errorCode 500
String response body errorMessage RNIB error

View File

@@ -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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/Keywords.robot
Resource ../Resource/resource.robot
Library ../Scripts/e2mdbscripts.py
Library REST ${url}
Suite Teardown Start RoutingManager Simulator
*** Test Cases ***
ENDC-setup - 503 http - 511 No Routing Manager Available
Stop RoutingManager Simulator
Set Headers ${header}
POST /v1/nodeb/x2-setup ${json}
Integer response status 503
Integer response body errorCode 511
String response body errorMessage No Routing Manager Available
Verify RAN is NOT associated with E2T instance
${result} e2mdbscripts.verify_ran_is_associated_with_e2t_instance test1 e2t.att.com:38000
Should Be True ${result} == False

View File

@@ -0,0 +1,46 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/Keywords.robot
Resource ../Resource/resource.robot
Library OperatingSystem
Library REST ${url}
*** Test Cases ***
Post Request setup node b x2-setup - setup failure
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
String response body failureType X2_SETUP_FAILURE

View File

@@ -0,0 +1,81 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Resource ../Resource/scripts_variables.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
Library ../Scripts/rsmscripts.py
Library ../Scripts/e2mdbscripts.py
Library REST ${url}
*** Test Cases ***
X2 - Setup Test
Post Request setup node b x-2
Integer response status 204
X2 - Get Nodeb
Get Request Node B Enb test1
Integer response status 200
String response body ranName test1
String response body ip ${ip_gnb_simu}
Integer response body port 5577
String response body connectionStatus CONNECTED
String response body nodeType ENB
String response body associatedE2tInstanceAddress e2t.att.com:38000
String response body enb enbType MACRO_ENB
Integer response body enb servedCells 0 pci 99
String response body enb servedCells 0 cellId 02f829:0007ab00
String response body enb servedCells 0 tac 0102
String response body enb servedCells 0 broadcastPlmns 0 "02f829"
Integer response body enb servedCells 0 choiceEutraMode fdd ulearFcn 1
Integer response body enb servedCells 0 choiceEutraMode fdd dlearFcn 1
String response body enb servedCells 0 choiceEutraMode fdd ulTransmissionBandwidth BW50
String response body enb servedCells 0 choiceEutraMode fdd dlTransmissionBandwidth BW50
prepare logs for tests
Remove log files
Save logs
X2 - RAN Connected message going to be sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RAN_CONNECTED_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
RSM RESOURCE STATUS REQUEST message sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test1}
Should Be Equal As Strings ${result} True
Verify RSM RAN info exists in redis
${result}= rsmscripts.verify_rsm_ran_info_start_false
Should Be Equal As Strings ${result} True
Verify RAN is associated with E2T instance
${result} e2mdbscripts.verify_ran_is_associated_with_e2t_instance test1 e2t.att.com:38000
Should Be True ${result}

View File

@@ -0,0 +1,24 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Documentation X2-Setup ENB

View File

@@ -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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Resource ../Resource/scripts_variables.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
Library ../Scripts/rsmscripts.py
Library ../Scripts/e2mdbscripts.py
Library REST ${url}
*** Test Cases ***
X2 - Setup Test 1
Post Request setup node b x-2
Integer response status 204
X2 - Setup Test 2
Post Request setup node b x-2
Integer response status 204
X2 - Get Nodeb
Get Request Node B Enb test1
Integer response status 200
String response body ranName test1
String response body associatedE2tInstanceAddress e2t.att.com:38000
prepare logs for tests
Remove log files
Save logs
X2 - RAN Connected message going to be sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RAN_CONNECTED_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
RSM RESOURCE STATUS REQUEST message sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test1}
Should Be Equal As Strings ${result} True
Verify RSM RAN info exists in redis
${result}= rsmscripts.verify_rsm_ran_info_start_false
Should Be Equal As Strings ${result} True
Verify RAN is associated with E2T instance
${result} e2mdbscripts.verify_ran_is_associated_with_e2t_instance test1 e2t.att.com:38000
Should Be True ${result}

View File

@@ -0,0 +1,71 @@
##############################################################################
#
# 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 Prepare Enviorment
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Resource ../Resource/scripts_variables.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
Library ../Scripts/rsmscripts.py
Library ../Scripts/e2mdbscripts.py
Library REST ${url}
*** Test Cases ***
X2 - Setup Test 1
Post Request setup node b x-2
Integer response status 204
Restart Simulator
Restart Simulator
Verify RAN is NOT associated with E2T instance
${result} e2mdbscripts.verify_ran_is_associated_with_e2t_instance test1 e2t.att.com:38000
Should Be True ${result} == False
X2 - Setup Test 2
Post Request setup node b x-2
Integer response status 204
X2 - Get Nodeb
Get Request Node B Enb test1
Integer response status 200
String response body ranName test1
String response body associatedE2tInstanceAddress e2t.att.com:38000
prepare logs for tests
Remove log files
Save logs
X2 - RAN Connected message going to be sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RAN_CONNECTED_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
RSM RESOURCE STATUS REQUEST message sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test1}
Should Be Equal As Strings ${result} True
Verify RSM RAN info exists in redis
${result}= rsmscripts.verify_rsm_ran_info_start_false
Should Be Equal As Strings ${result} True
Verify RAN is associated with E2T instance
${result} e2mdbscripts.verify_ran_is_associated_with_e2t_instance test1 e2t.att.com:38000
Should Be True ${result}

View File

@@ -0,0 +1,79 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library Collections
Library REST ${url}
Resource ../Resource/scripts_variables.robot
Library String
Library Process
Library ../Scripts/find_rmr_message.py
Library ../Scripts/rsmscripts.py
*** Test Cases ***
Prepare Ran in Connected connectionStatus
Post Request setup node b x-2
Integer response status 204
Sleep 1s
GET /v1/nodeb/test1
Integer response status 200
String response body ranName test1
String response body connectionStatus CONNECTED
Run Reset from RAN
Run ${Run_Config}
Sleep 1s
Prepare logs for tests
Remove log files
Save logs
Verify logs - Reset Sent by simulator
${Reset}= Grep File ./${gnb_log_filename} ResetRequest has been sent
Should Be Equal ${Reset} gnbe2_simu: ResetRequest has been sent
Verify logs - e2mgr logs - messege sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RIC_X2_RESET_REQ_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
Verify logs - e2mgr logs - messege received
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RIC_X2_RESET_RESP_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
RAN Restarted messege sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RAN_RESTARTED_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
RSM RESOURCE STATUS REQUEST message sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test1}
Should Be Equal As Strings ${result} True
Verify RSM RAN info exists in redis
${result}= rsmscripts.verify_rsm_ran_info_start_false
Should Be Equal As Strings ${result} True

View File

@@ -0,0 +1,24 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Documentation ORAN Reset - X2 RAN to RIC Scenario 1

View File

@@ -0,0 +1,81 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library Collections
Library REST ${url}
Resource ../Resource/scripts_variables.robot
Library String
Library Process
Library ../Scripts/find_rmr_message.py
Library ../Scripts/find_error_script.py
Suite Teardown Start Dbass with 4 dockers
*** Test Cases ***
Prepare Ran in Connected connectionStatus
Post Request setup node b x-2
Integer response status 204
Sleep 1s
GET /v1/nodeb/test1
Integer response status 200
String response body ranName test1
String response body connectionStatus CONNECTED
Stop RNIB
Stop Dbass
Run Reset from RAN
Run ${Run_Config}
Sleep 60s
Prepare logs for tests
Remove log files
Save logs
Verify logs - Reset Sent by simulator
${Reset}= Grep File ./${gnb_log_filename} ResetRequest has been sent
Should Be Equal ${Reset} gnbe2_simu: ResetRequest has been sent
Verify logs for restart received
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RIC_X2_RESET_REQ_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
Verify for error on retrying
${result} find_error_script.find_error ${EXECDIR} ${e2mgr_log_filename} ${failed_to_retrieve_nodeb_message}
Should Be Equal As Strings ${result} True
*** Keywords ***
Start Dbass with 4 dockers
Run And Return Rc And Output ${dbass_remove}
Run And Return Rc And Output ${dbass_start}
Sleep 5s
${result}= Run And Return Rc And Output ${docker_command}
Should Be Equal As Integers ${result[1]} ${docker_number-1}

View File

@@ -0,0 +1,24 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Documentation ORAN Reset - RAN to RIC Scenario Unhappy

View File

@@ -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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/scripts_variables.robot
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
Library ../Scripts/rsmscripts.py
Library REST ${url}
*** Test Cases ***
Prepare Ran in Connected connectionStatus
Post Request setup node b x-2
Integer response status 204
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/test1/reset
Integer response status 204
Prepare logs for tests
Remove log files
Save logs
RAN Restarted messege sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RAN_RESTARTED_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
RSM RESOURCE STATUS REQUEST message sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test1}
Should Be Equal As Strings ${result} True
Verify RSM RAN info exists in redis
${result}= rsmscripts.verify_rsm_ran_info_start_false
Should Be Equal As Strings ${result} True

View File

@@ -0,0 +1,66 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Suite Setup Prepare Enviorment
Resource ../Resource/scripts_variables.robot
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
Library ../Scripts/rsmscripts.py
Library REST ${url}
*** Test Cases ***
Prepare Ran in Connected connectionStatus
Post Request setup node b x-2
Integer response status 204
Sleep 1s
GET /v1/nodeb/test1
Integer response status 200
String response body ranName test1
String response body connectionStatus CONNECTED
Send Reset reqeust with cause
Set Headers ${header}
PUT /v1/nodeb/test1/reset ${resetcausejson}
Integer response status 204
Prepare logs for tests
Remove log files
Save logs
RAN Restarted messege sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RAN_RESTARTED_message_type} ${Meid_test1}
Should Be Equal As Strings ${result} True
RSM RESOURCE STATUS REQUEST message sent
${result} find_rmr_message.verify_logs ${EXECDIR} ${rsm_log_filename} ${RIC_RES_STATUS_REQ_message_type_successfully_sent} ${RAN_NAME_test1}
Should Be Equal As Strings ${result} True
Verify RSM RAN info exists in redis
${result}= rsmscripts.verify_rsm_ran_info_start_false
Should Be Equal As Strings ${result} True

View File

@@ -0,0 +1,24 @@
##############################################################################
#
# 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.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
*** Settings ***
Documentation ORAN Reset API - X2 RIC to RAN