Test New E2T Send Init
Stop E2
-
- ${result}= cleanup_db.flush_and_restore_without_e2t_keys
+ ${result}= cleanup_db.flush
Should Be Equal As Strings ${result} True
-
Start E2
prepare logs for tests
+++ /dev/null
-##############################################################################
-#
-# 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 REST ${url}
-
-
-
-
-*** Test Cases ***
-Run Endc setup request
- Post Request setup node b endc-setup
- Integer response status 204
-
-Get request gnb
- Sleep 1s
- Get Request node b gnb test2
- Integer response status 200
- String response body ranName test2
- String response body ip ${ip_e2adapter}
- 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
-
-prepare logs for tests
- Remove log files
- Save logs
-
-
-ENDC - RAN Connected message going to be sent
- ${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${RAN_CONNECTED_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
-
*** Test Cases ***
-Run x2 setup
- Post Request setup node b x-2
- Integer response status 204
- Sleep 2s
- GET /v1/nodeb/test1
- Integer response status 200
- String response body ranName test1
- Integer response body port 5577
- String response body connectionStatus CONNECTED
-Run endc setup
- Post Request setup node b endc-setup
- Integer response status 204
- Sleep 2s
- GET /v1/nodeb/test2
- Integer response status 200
- String response body ranName test2
- String response body connectionStatus CONNECTED
Get all node ids
GET v1/nodeb/ids
Sleep 2s
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
+ String response body 0 inventoryName ${ranName}
+ String response body 0 globalNbId plmnId 02F829
+ String response body 0 globalNbId nbId 001100000011000000110000
+
--- /dev/null
+##############################################################################
+#
+# 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 REST ${url}
+
+
+
+
+*** Test Cases ***
+
+
+Get request gnb
+ Sleep 2s
+ Get Request node b gnb
+ Integer response status 200
+ String response body ranName ${ranname}
+ String response body connectionStatus CONNECTED
+ String response body nodeType GNB
+ String response body associatedE2tInstanceAddress ${e2tinstanceaddress}
+ Integer response body gnb ranFunctions 0 ranFunctionId 1
+ Integer response body gnb ranFunctions 0 ranFunctionRevision 1
+ Integer response body gnb ranFunctions 1 ranFunctionId 2
+ Integer response body gnb ranFunctions 1 ranFunctionRevision 1
+ Integer response body gnb ranFunctions 2 ranFunctionId 3
+ Integer response body gnb ranFunctions 2 ranFunctionRevision 1
+
+
+
+
+
#
*** Settings ***
-Documentation endc-Setup
+Documentation GetNodeb-GNB
*** 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
+Get request gnb
+ Sleep 2s
+ Get Request node b gnb
Integer response status 200
- String response body ranName test1
- String response body ip ${ip_gnb_simu}
- Integer response body port 5577
+ String response body ranName ${ranname}
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
+ String response body nodeType GNB
+ String response body associatedE2tInstanceAddress ${e2tinstanceaddress}
+ Integer response body gnb ranFunctions 0 ranFunctionId 1
+ Integer response body gnb ranFunctions 0 ranFunctionRevision 1
+ Integer response body gnb ranFunctions 1 ranFunctionId 2
+ Integer response body gnb ranFunctions 1 ranFunctionRevision 1
+ Integer response body gnb ranFunctions 2 ranFunctionId 3
+ Integer response body gnb ranFunctions 2 ranFunctionRevision 1
+
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
+ ${result} e2mdbscripts.verify_ran_is_associated_with_e2t_instance ${ranname} ${e2tinstanceaddress}
Should Be True ${result}
Stop E2T
- stop_e2
+ Stop E2
Sleep 3s
-prepare logs for tests
+Prepare logs
Remove log files
Save logs
-Verify Is Dead Message Printed
- ${result} find_error_script.find_error ${EXECDIR} ${e2mgr_log_filename} ${e2_is_dead_message_printed}
- Should Be Equal As Strings ${result} True
-
Verify RAN is not associated with E2T instance
- Get Request node b enb test1
+ Get Request node b gnb
Integer response status 200
- String response body ranName test1
+ String response body ranName ${ranname}
Missing response body associatedE2tInstanceAddress
String response body connectionStatus DISCONNECTED
Verify E2T instance removed from db
- ${result} e2mdbscripts.verify_e2t_instance_key_exists e2t.att.com:38000
+ ${result} e2mdbscripts.verify_e2t_instance_key_exists ${e2tinstanceaddress}
Should Be True ${result} == False
- ${result} e2mdbscripts.verify_e2t_instance_exists_in_addresses e2t.att.com:38000
+ ${result} e2mdbscripts.verify_e2t_instance_exists_in_addresses ${e2tinstanceaddress}
Should Be True ${result} == False
Start E2T
- start_e2
\ No newline at end of file
+ Start E2
\ No newline at end of file
Setup Ran and verify it's CONNECTED and associated
- Post Request setup node b x-2
- Integer response status 204
- Get Request node b enb test1
+ Get Request node b gnb
Integer response status 200
- String response body ranName test1
+ String response body ranName ${ranname}
String response body connectionStatus CONNECTED
- String response body associatedE2tInstanceAddress e2t.att.com:38000
+ String response body associatedE2tInstanceAddress ${e2tinstanceaddress}
-Restart simulator
- Restart simulator
+Stop simulator
+ Stop Simulator
Verify connection status is DISCONNECTED and RAN is not associated with E2T instance
- Sleep 5s
- GET /v1/nodeb/test1
+ Sleep 2s
+ GET ${getNodeb}
Integer response status 200
- String response body ranName test1
+ String response body ranName ${ranname}
Missing response body associatedE2tInstanceAddress
String response body connectionStatus DISCONNECTED
Verify E2T instance is NOT associated with RAN
- ${result} e2mdbscripts.verify_ran_is_associated_with_e2t_instance test1 e2t.att.com:38000
+ ${result} e2mdbscripts.verify_ran_is_associated_with_e2t_instance ${ranname} ${e2tinstanceaddress}
Should Be True ${result} == False
*** Test Cases ***
-Execute X2 setup, verify nodeb connection status is CONNECTED and it's associated to an e2t instance
- Execute setup and verify connected and associated
+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 enb
+ Verify shutdown for gnb
Verify E2T instance has no associated RANs
Verify E2T instance has no associated RANs
*** Test Cases ***
-Execute X2 setup, verify nodeb connection status is CONNECTED and it's associated to an e2t instance
- Execute setup and verify connected and associated
+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 enb
-
-Verify E2T instance has no associated RANs
+ Verify shutdown for gnb
Verify E2T instance has no associated RANs
Restart simulator
Restart simulator
-Execute second X2 setup, verify nodeb connection status is CONNECTED and it's associated to an e2t instance
- Execute setup and verify connected and associated
\ No newline at end of file
+Verify gnb nodeb connection status is CONNECTED and it's associated to an e2t instance
+ Verify connected and associated
\ No newline at end of file
+++ /dev/null
-##############################################################################
-#
-# 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}
-
-*** 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]} ${docker_number-1}
-
-Prepare Ran in Connecting connectionStatus
- Post Request setup node b endc-setup
- Integer response status 204
- Sleep 10s
- GET /v1/nodeb/test2
- Integer response status 200
- String response body ranName test2
- String response body connectionStatus DISCONNECTED
-
-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
Library REST ${url}
*** Test Cases ***
-
-Execute X2 setup, verify nodeb connection status is CONNECTED and it's associated to an e2t instance
- Execute setup and verify connected and associated
+Verify 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 enb
+ Verify shutdown for gnb
Verify E2T instance has no associated RANs
Verify E2T instance has no associated RANs
Execute Shutdown
Verify again nodeb's connection status is SHUT_DOWN and it's NOT associated to an e2t instance
- Verify shutdown for enb
+ Verify shutdown for gnb
Verify again E2T instance has no associated RANs
Verify E2T instance has no associated RANs
Library REST ${url}
*** Keywords ***
-Execute setup and verify connected and associated
- Post Request setup node b x-2
- Integer response status 204
- Get Request node b enb test1
- Integer response status 200
- String response body ranName test1
- String response body connectionStatus CONNECTED
- String response body associatedE2tInstanceAddress e2t.att.com:38000
-
-Execute setup twice and verify connected setup failed
- Post Request setup node b x-2
- Sleep 1s
- Post Request setup node b x-2
- Get Request node b enb test1
- String response body connectionStatus CONNECTED_SETUP_FAILED
-
-
-Verify shutdown for enb
- Get Request node b enb test1
- Integer response status 200
- String response body ranName test1
- String response body connectionStatus SHUT_DOWN
- Missing response body associatedE2tInstanceAddress
-
+Verify connected and associated
+ Get Request node b gnb
+ Integer response status 200
+ String response body ranName ${ranName}
+ String response body connectionStatus CONNECTED
+ String response body associatedE2tInstanceAddress ${e2tinstanceaddress}
Verify shutdown for gnb
- Get Request node b gnb test2
+ Get Request node b gnb
Integer response status 200
- String response body ranName test2
+ String response body ranName ${ranName}
String response body connectionStatus SHUT_DOWN
Missing response body associatedE2tInstanceAddress
Verify E2T instance has no associated RANs
- ${result} e2mdbscripts.verify_e2t_instance_has_no_associated_rans e2t.att.com:38000
+ ${result} e2mdbscripts.verify_e2t_instance_has_no_associated_rans ${e2tinstanceaddress}
Should Be True ${result}
Execute Shutdown
Library OperatingSystem
*** Keywords ***
-Post Request setup node b x-2
- Set Headers ${header}
- POST /v1/nodeb/x2-setup ${json}
-
-Put Request Resource Status Start
- Set Headers ${header}
- PUT /v1/general/resourcestatus ${resource_status_start_json}
-
-Put Request Resource Status Stop
- Set Headers ${header}
- PUT /v1/general/resourcestatus ${resource_status_stop_json}
-
-Get Request node b enb test1
+Get Request node b gnb
Sleep 1s
- GET /v1/nodeb/test1
+ GET ${getNodeb}
+
-Get Request node b gnb test2
- Sleep 1s
- GET /v1/nodeb/test2
Remove log files
Remove File ${EXECDIR}/${gnb_log_filename}
Remove File ${EXECDIR}/${e2mgr_log_filename}
Remove File ${EXECDIR}/${e2t_log_filename}
- Remove File ${EXECDIR}/${rsm_log_filename}
- Remove File ${EXECDIR}/${e2e_simu_log_filename}
Remove File ${EXECDIR}/${rm_sim_log_filename}
- Remove File ${EXECDIR}/${e2adapter_log_filename}
Save logs
Sleep 1s
Run ${Save_sim_log}
Run ${Save_e2mgr_log}
Run ${Save_e2t_log}
- Run ${Save_rsm_log}
- Run ${Save_e2e_simu_log}
Run ${Save_rm_sim_log}
- Run ${Save_e2adapter_log}
-
-
-Post Request setup node b endc-setup
- Set Headers ${header}
- POST /v1/nodeb/endc-setup ${endcjson}
Stop Simulator
Run And Return Rc And Output ${stop_simu}
-
-Prepare Simulator For Load Information
- Run And Return Rc And Output ${stop_simu}
- Run And Return Rc And Output ${docker_Remove}
- ${flush} cleanup_db.flush
- Should Be Equal As Strings ${flush} True
- Run And Return Rc And Output ${run_simu_load}
- ${result}= Run And Return Rc And Output ${docker_command}
- Should Be Equal As Integers ${result[1]} ${docker_number}
-
Prepare Enviorment
Log To Console Starting preparations
${starting_timestamp} Evaluate datetime.datetime.now(datetime.timezone.utc).isoformat("T") modules=datetime
${e2t_log_filename} Evaluate "e2t.${SUITE NAME}.log".replace(" ","-")
${e2mgr_log_filename} Evaluate "e2mgr.${SUITE NAME}.log".replace(" ","-")
${gnb_log_filename} Evaluate "gnb.${SUITE NAME}.log".replace(" ","-")
- ${rsm_log_filename} Evaluate "rsm.${SUITE NAME}.log".replace(" ","-")
- ${e2e_simu_log_filename} Evaluate "e2e_simu.${SUITE NAME}.log".replace(" ","-")
${rm_sim_log_filename} Evaluate "rm_sim.${SUITE NAME}.log".replace(" ","-")
- ${e2adapter_log_filename} Evaluate "e2adapter.${SUITE NAME}.log".replace(" ","-")
- ${Save_sim_log} Evaluate 'docker logs --since ${starting_timestamp} gnbe2_simu > ${gnb_log_filename}'
+ ${Save_sim_log} Evaluate 'docker logs --since ${starting_timestamp} gnbe2_oran_simu > ${gnb_log_filename}'
${Save_e2mgr_log} Evaluate 'docker logs --since ${starting_timestamp} e2mgr > ${e2mgr_log_filename}'
${Save_e2t_log} Evaluate 'docker logs --since ${starting_timestamp} e2 > ${e2t_log_filename}'
- ${Save_rsm_log} Evaluate 'docker logs --since ${starting_timestamp} rsm > ${rsm_log_filename}'
- ${Save_e2e_simu_log} Evaluate 'docker logs --since ${starting_timestamp} e2e_simu > ${e2e_simu_log_filename}'
${Save_rm_sim_log} Evaluate 'docker logs --since ${starting_timestamp} rm_sim > ${rm_sim_log_filename}'
- ${Save_e2adapter_log} Evaluate 'docker logs --since ${starting_timestamp} e2adapter > ${e2adapter_log_filename}'
- Set Suite Variable ${e2t_log_filename}
+ Set Suite Variable ${e2t_log_filename}
Set Suite Variable ${e2mgr_log_filename}
Set Suite Variable ${gnb_log_filename}
- Set Suite Variable ${rsm_log_filename}
- Set Suite Variable ${e2e_simu_log_filename}
Set Suite Variable ${rm_sim_log_filename}
- Set Suite Variable ${e2adapter_log_filename}
Set Suite Variable ${Save_sim_log}
Set Suite Variable ${Save_e2mgr_log}
Set Suite Variable ${Save_e2t_log}
- Set Suite Variable ${Save_rsm_log}
- Set Suite Variable ${Save_e2e_simu_log}
Set Suite Variable ${Save_rm_sim_log}
- Set Suite Variable ${Save_e2adapter_log}
Log To Console Ready to flush db
${flush} cleanup_db.flush
Should Be Equal As Strings ${flush} True
Run And Return Rc And Output ${stop_simu}
- Run And Return Rc And Output ${stop_e2e_simu}
Run And Return Rc And Output ${docker_Remove}
- Run And Return Rc And Output ${docker_remove_e2e_simu}
Run And Return Rc And Output ${run_simu_regular}
- Run And Return Rc And Output ${run_e2e_simu_regular}
- Run And Return Rc And Output ${restart_e2adapter}
Sleep 3s
Log To Console Validating dockers are up
${result}= Run And Return Rc And Output ${docker_command}
Should Be Equal As Integers ${result[1]} ${docker_number-1}
Restart simulator
-
- Run And Return Rc And Output ${restart_docker_sim}
+ Run And Return Rc And Output ${restart_simu}
${result}= Run And Return Rc And Output ${docker_command}
Should Be Equal As Integers ${result[1]} ${docker_number}
*** Variables ***
-${docker_number} 8
-${docker_number-1} 7
-${ip_gnb_simu} 10.0.2.15
-${ip_e2adapter} 10.0.2.15
+${docker_number} 5
+${docker_number-1} 4
${url} http://localhost:3800
-${url_rsm} http://localhost:4800
-${json_setup_rsm_tests} {"ranIp": "10.0.2.15","ranPort": 36422,"ranName":"test1"}
-${json} {"ranIp": "10.0.2.15","ranPort": 5577,"ranName":"test1"}
-${endcbadjson} {"ranIp": "a","ranPort": 49999,"ranName":"test2"}
-${endcjson} {"ranIp": "10.0.2.15","ranPort": 49999,"ranName":"test2"}
-${resetcausejson} {"cause": "misc:not-enough-user-plane-processing-resources"}
-${resetbadcausejson} {"cause": "bla" }
-${resetbad1causejson} {"cause": }
-${resource_status_start_json} {"enableResourceStatus":true}
-${resource_status_stop_json} {"enableResourceStatus":false}
+${ranName} gnb:208-092-303030
+${getNodeb} /v1/nodeb/${ranName}
+${E2tInstanceAddress} 127.0.0.1:38000
${header} {"Content-Type": "application/json"}
${docker_command} docker ps | grep Up | wc --lines
-${run_simu_load} 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_simu:1.0.6
-${stop_e2e_simu} docker stop e2e_simu
-${stop_simu} docker stop gnbe2_simu
-${run_simu_regular} docker run -d --name gnbe2_simu --env gNBipv4=localhost --env gNBport=36422 --env duration=600000000000 --env indicationReportRate=0 --env indicationInsertRate=0 -p 5577:36422/sctp snapshot.docker.ranco-dev-tools.eastus.cloudapp.azure.com:10001/gnbe2_simu:1.0.6
-${run_e2e_simu_regular} docker run -d --name e2e_simu -p 36422:36422 --net host -it snapshot.docker.ranco-dev-tools.eastus.cloudapp.azure.com:10001/e2sim:1.4.0 sh -c "./build/e2sim 10.0.2.15 36422"
-${docker_Remove} docker rm gnbe2_simu
-${docker_remove_e2e_simu} docker rm e2e_simu
+${stop_simu} docker stop gnbe2_oran_simu
+${run_simu_regular} docker run -d --name gnbe2_oran_simu --net host --env gNBipv4=10.0.2.15 --env gNBport=5577 --env ricIpv4=10.0.2.15 --env ricPort=36422 --env nbue=0 snapshot.docker.ranco-dev-tools.eastus.cloudapp.azure.com:10001/gnbe2_oran_simu:3.2-32
+${docker_Remove} docker rm gnbe2_oran_simu
${docker_restart} docker restart e2mgr
-${restart_simu} docker restart gnbe2_simu
-${restart_e2e_simu} docker restart e2e_simu
-${restart_e2adapter} docker restart e2adapter
-${restart_rsm} docker restart rsm
+${restart_simu} docker restart gnbe2_oran_simu
${start_e2} docker start e2
${stop_e2} docker stop e2
${dbass_start} docker run -d --name dbass -p 6379:6379 --env DBAAS_SERVICE_HOST=10.0.2.15 snapshot.docker.ranco-dev-tools.eastus.cloudapp.azure.com:10001/dbass:1.0.0
${dbass_remove} docker rm dbass
${dbass_stop} docker stop dbass
-${restart_simu} docker restart gnbe2_simu
+${restart_simu} docker restart gnbe2_oran_simu
${stop_docker_e2} docker stop e2
-${restart_docker_sim} docker restart gnbe2_simu
-${Run_Config} docker exec gnbe2_simu pkill gnbe2_simu -INT
-${403_reset_message} "Activity X2_RESET rejected. RAN current state DISCONNECTED does not allow its execution "
${stop_routingmanager_sim} docker stop rm_sim
${start_routingmanager_sim} docker start rm_sim
*** Variables ***
-${configurationupdate_message_type} MType: 10370
-${Meid_test1} Meid: \\"test1\\"
-${Meid_test2} Meid: \\"test2\\"
-${configurationupdate_ack_message_type} MType: 10371
-${RAN_CONNECTED_message_type} MType: 1200
-${RAN_RESTARTED_message_type} MType: 1210
-${RIC_X2_RESET_REQ_message_type} MType: 10070
-${RIC_X2_RESET_RESP_message_type} MType: 10070
+
${E2_INIT_message_type} MType: 1100
-#${failed_to_retrieve_nodeb_message} failed to retrieve nodeB entity. RanName: test1.
-#{#RanReconnectionManager.ReconnectRan - RAN name: test1 - Failed fetching RAN from rNib. Error: dial tcp 172.17.0.2:637 #9: i/o timeout"
-${failed_to_retrieve_nodeb_message} RAN name: test1 - Failed fetching RAN from rNib
${first_retry_to_retrieve_from_db} RnibDataService.retry - retrying 1 GetNodeb
${third_retry_to_retrieve_from_db} RnibDataService.retry - after 3 attempts of GetNodeb
${RIC_RES_STATUS_REQ_message_type_successfully_sent} Message type: 10090 - Successfully sent RMR message
${E2_TERM_KEEP_ALIVE_REQ_message_type_successfully_sent} Message type: 1101 - Successfully sent RMR message
-${e2_is_dead_message_printed} E2TShutdownManager.Shutdown - E2T e2t.att.com:38000 is Dead, RIP
-${RAN_NAME_test1} RAN name: test1
-${RAN_NAME_test2} RAN name: test2
-${E2ADAPTER_Setup_Resp} Send dummy ENDCX2SetupResponse to RIC
+
r.flushall()
- r.set("{rsm},CFG:GENERAL:v1.0.0" , "{\"enableResourceStatus\":true,\"partialSuccessAllowed\":true,\"prbPeriodic\":true,\"tnlLoadIndPeriodic\":true,\"wwLoadIndPeriodic\":true,\"absStatusPeriodic\":true,\"rsrpMeasurementPeriodic\":true,\"csiPeriodic\":true,\"periodicityMs\":1,\"periodicityRsrpMeasurementMs\":3,\"periodicityCsiMs\":3}")
+ r.set("{e2Manager},E2TAddresses", "[\"127.0.0.1:38000\"]")
- r.set("{e2Manager},E2TAddresses", "[\"e2t.att.com:38000\"]")
-
- r.set("{e2Manager},E2TInstance:e2t.att.com:38000", "{\"address\":\"e2t.att.com:38000\",\"associatedRanList\":[],\"keepAliveTimestamp\":" + str(int((time.time()+2) * 1000000000)) + ",\"state\":\"ACTIVE\"}")
+ r.set("{e2Manager},E2TInstance:127.0.0.1:38000","{\"address\":\"127.0.0.1:38000\",\"associatedRanList\":[],\"keepAliveTimestamp\":" + str(int((time.time()+2) * 1000000000)) + ",\"state\":\"ACTIVE\",\"deletionTimeStamp\":0}")
return True
-def flush_and_restore_without_e2t_keys():
-
- c = config.redis_ip_address
-
- p = config.redis_ip_port
-
- r = redis.Redis(host=c, port=p, db=0)
- r.flushall()
- r.set("{rsm},CFG:GENERAL:v1.0.0" , "{\"enableResourceStatus\":true,\"partialSuccessAllowed\":true,\"prbPeriodic\":true,\"tnlLoadIndPeriodic\":true,\"wwLoadIndPeriodic\":true,\"absStatusPeriodic\":true,\"rsrpMeasurementPeriodic\":true,\"csiPeriodic\":true,\"periodicityMs\":1,\"periodicityRsrpMeasurementMs\":3,\"periodicityCsiMs\":3}")
-
- return True
r = getRedisClientDecodeResponse()
- value = "[\"e2t.att.com:38000\"]"
+ value = "[\"127.0.0.1:38000\"]"
return r.get("{e2Manager},E2TAddresses") == value
r = getRedisClientDecodeResponse()
- e2_address = "\"address\":\"e2t.att.com:38000\""
+ e2_address = "\"address\":\"127.0.0.1:38000\""
e2_associated_ran_list = "\"associatedRanList\":[]"
e2_state = "\"state\":\"ACTIVE\""
- e2_db_instance = r.get("{e2Manager},E2TInstance:e2t.att.com:38000")
+ e2_db_instance = r.get("{e2Manager},E2TInstance:127.0.0.1:38000")
if e2_db_instance.find(e2_address) < 0:
return False
Suite Teardown Start Dbass
*** Test Cases ***
-ENDC-setup - 500 http - 500 RNIB error
+Get All nodes - 500 http - 500 RNIB error
Stop Dbass
GET /v1/nodeb/ids
Integer response status 500
# 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
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 X2 setup twice and verify its connection status is CONNECTED_SETUP_FAILED
- Execute setup twice and verify connected setup failed
Execute Shutdown
Execute Shutdown
Verify nodeb's connection status is SHUT_DOWN and it's NOT associated to an e2t instance
- Verify shutdown for enb
+ Verify shutdown for gnb
Verify E2T instance has no associated RANs
Verify E2T instance has no associated RANs
-
-