- "{\"address\":\"e2t.att.com:38000\",\"associatedRanList\":[\"test1\",\"test2\",\"test3\"],\"keepAliveTimestamp\":1577619310484022369,\"state\":\"ACTIVE\"}")
+ "{\"address\":\"e2t.att.com:38000\",\"associatedRanList\":[\"test1\",\"test2\",\"test3\"],"
+ "\"keepAliveTimestamp\":1577619310484022369,\"state\":\"ACTIVE\"}")
+ return True
+
+
+def verify_e2t_addresses_for_e2t_initialization_tc():
+ r = get_redis_client_decode_response()
+
+ value = "[\"{}\"]".format(variables.e2t_alpha_address)
+
+ return r.get("{e2Manager},E2TAddresses") == value
+
+
+def verify_e2t_instance_for_e2t_initialization_tc():
+ r = get_redis_client_decode_response()
+
+ e2_address = "\"address\":\"{}\"".format(variables.e2t_alpha_address)
+ e2_associated_ran_list = "\"associatedRanList\":[]"
+ e2_state = "\"state\":\"ACTIVE\""
+
+ e2_db_instance = r.get("{{e2Manager}},E2TInstance:{}".format(variables.e2t_alpha_address))
+
+ if e2_db_instance.find(e2_address) < 0:
+ return False
+ if e2_db_instance.find(e2_associated_ran_list) < 0:
+ return False
+ if e2_db_instance.find(e2_state) < 0:
+ return False
+