Resource ../Resource/scripts_variables.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
+Library ../Scripts/rsmscripts.py
Library REST ${url}
${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
+ Should Be Equal As Strings ${result} False
Library Process
Library ../Scripts/find_rmr_message.py
Library ../Scripts/find_error_script.py
+Library ../Scripts/rsmscripts.py
*** Test Cases ***
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
+ Should Be Equal As Strings ${result} False
\ No newline at end of file
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
+Library ../Scripts/rsmscripts.py
Library REST ${url}
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
\ No newline at end of file
+ Should Be Equal As Strings ${result} False
+
+Verify RSM RAN info doesn't exist in redis
+ ${result}= rsmscripts.verify_rsm_ran_info
+ Should Be Equal As Strings ${result} False
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
+Library ../Scripts/rsmscripts.py
Library REST ${url}
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
\ No newline at end of file
+ Should Be Equal As Strings ${result} False
+
+Verify RSM RAN info doesn't exist in redis
+ ${result}= rsmscripts.verify_rsm_ran_info
+ Should Be Equal As Strings ${result} False
\ No newline at end of file
String response body connectionStatus CONNECTED
-Verify Load information does exist in redis
+Verify Load information exists in redis
${result}= loadscripts.verify_value
Should Be Equal As Strings ${result} True
--- /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.
+#
+##############################################################################
+
+import config
+import redis
+import cleanup_db
+
+
+def getRedisClientDecodeResponse():
+
+ c = config.redis_ip_address
+
+ p = config.redis_ip_port
+
+ return redis.Redis(host=c, port=p, db=0, decode_responses=True)
+
+
+def verify_rsm_ran_info():
+
+ r = getRedisClientDecodeResponse()
+
+ value = "{\"ranName\":\"test1\",\"enb1MeasurementId\":1,\"enb2MeasurementId\":0,\"action\":\"start\",\"actionStatus\":false}"
+
+ if r.get("{rsm},RAN:test1") == value:
+ return True
+ else:
+ return False
\ No newline at end of file
Resource ../Resource/scripts_variables.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
+Library ../Scripts/rsmscripts.py
Library REST ${url}
*** Test Cases ***
${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
+ Should Be Equal As Strings ${result} True
\ No newline at end of file
Library String
Library Process
Library ../Scripts/find_rmr_message.py
-
+Library ../Scripts/rsmscripts.py
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
+ Should Be Equal As Strings ${result} True
\ No newline at end of file
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
+Library ../Scripts/rsmscripts.py
Library REST ${url}
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
\ No newline at end of file
+ Should Be Equal As Strings ${result} True
+
+Verify RSM RAN info exists in redis
+ ${result}= rsmscripts.verify_rsm_ran_info
+ Should Be Equal As Strings ${result} True
\ No newline at end of file
Resource ../Resource/Keywords.robot
Library OperatingSystem
Library ../Scripts/find_rmr_message.py
+Library ../Scripts/rsmscripts.py
Library REST ${url}
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
\ No newline at end of file
+ Should Be Equal As Strings ${result} True
+
+Verify RSM RAN info exists in redis
+ ${result}= rsmscripts.verify_rsm_ran_info
+ Should Be Equal As Strings ${result} True
\ No newline at end of file