Sleep 1s
GET ${getNodeb}
+Update Ran request
+ Sleep 1s
+ PUT ${update_gnb_url} ${update_gnb_body}
+Update Ran request not valid
+ Sleep 1s
+ PUT ${update_gnb_url} ${update_gnb_body_notvalid}
+
Remove log files
Remove File ${EXECDIR}/${gnb_log_filename}
Remove File ${EXECDIR}/${e2mgr_log_filename}
Stop RoutingManager Simulator
Run And Return Rc And Output ${stop_routingmanager_sim}
-
+Restart simulator with less docker
+ 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-1}
${url} http://localhost:3800
${ranName} gnb:208-092-303030
${getNodeb} /v1/nodeb/${ranName}
-${E2tInstanceAddress} 127.0.0.1:38000
+${update_gnb_url} /v1/nodeb/${ranName}/update
+${update_gnb_body} {"servedNrCells":[{"servedNrCellInformation":{"cellId":"abcd","choiceNrMode":{"fdd":{}},"nrMode":1,"nrPci":1,"servedPlmns":["whatever"]},"nrNeighbourInfos":[{"nrCgi":"one","choiceNrMode":{"fdd":{}},"nrMode":1,"nrPci":1}]}]}
+${update_gnb_body_notvalid} {"servedNrCells":[{"servedNrCellInformation":{"choiceNrMode":{"fdd":{}},"nrMode":1,"nrPci":1,"servedPlmns":["whatever"]},"nrNeighbourInfos":[{"nrCgi":"whatever","choiceNrMode":{"fdd":{}},"nrMode":1,"nrPci":1}]}]}
+${E2tInstanceAddress} 10.0.2.15:38000
${header} {"Content-Type": "application/json"}
${docker_command} docker ps | grep Up | wc --lines
${stop_simu} docker stop gnbe2_oran_simu
r.flushall()
- r.set("{e2Manager},E2TAddresses", "[\"127.0.0.1:38000\"]")
+ r.set("{e2Manager},E2TAddresses", "[\"10.0.2.15:38000\"]")
- 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}")
+ r.set("{e2Manager},E2TInstance:10.0.2.15:38000","{\"address\":\"10.0.2.15:38000\",\"associatedRanList\":[],\"keepAliveTimestamp\":" + str(int((time.time()+2) * 1000000000)) + ",\"state\":\"ACTIVE\",\"deletionTimeStamp\":0}")
return True
r = getRedisClientDecodeResponse()
- value = "[\"127.0.0.1:38000\"]"
+ value = "[\"10.0.2.15:38000\"]"
return r.get("{e2Manager},E2TAddresses") == value
r = getRedisClientDecodeResponse()
- e2_address = "\"address\":\"127.0.0.1:38000\""
+ e2_address = "\"address\":\"10.0.2.15:38000\""
e2_associated_ran_list = "\"associatedRanList\":[]"
e2_state = "\"state\":\"ACTIVE\""
- e2_db_instance = r.get("{e2Manager},E2TInstance:127.0.0.1:38000")
+ e2_db_instance = r.get("{e2Manager},E2TInstance:10.0.2.15:38000")
if e2_db_instance.find(e2_address) < 0:
return False
--- /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}
+Suite Teardown Start RoutingManager Simulator
+
+
+
+
+*** Test Cases ***
+Stop Routing manager simulator and restarting simulator
+ Stop RoutingManager Simulator
+ Restart simulator with less docker
+
+Get request gnb
+ Sleep 2s
+ Get Request node b gnb
+ Integer response status 200
+ String response body ranName ${ranname}
+ String response body connectionStatus DISCONNECTED
+ String response body nodeType GNB
+ 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
+
+
+
+
+
--- /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 ***
+Documentation Setup Failure
--- /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 ***
+
+Update Ran Unhappy
+ Sleep 2s
+ Update Ran request not valid
+ Integer response status 400
+ Integer response body errorCode 402
+ String response body errorMessage Validation error
+
+
+
+
+
+
--- /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 ***
+
+Update Ran
+ Sleep 2s
+ Update Ran request
+ Integer response status 200
+ String response body ranName ${ranname}
+ String response body connectionStatus CONNECTED
+ String response body nodeType GNB
+ String response body gnb servedNrCells 0 servedNrCellInformation cellId abcd
+ String response body gnb servedNrCells 0 nrNeighbourInfos 0 nrCgi one
+ String response body gnb servedNrCells 0 servedNrCellInformation servedPlmns 0 whatever
+
+
+
+
+
+
+
+
+
+
+
--- /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 ***
+Documentation Update Ran