RIC-398 - Fix all critical issues from static code analysis scan
[ric-plt/e2mgr.git] / Automation / Tests / Scripts / cleanup_db.py
index 49ebca5..4dd3ff0 100644 (file)
 #   limitations under the License.
 #
 ##############################################################################
+#
+#   This source code is part of the near-RT RIC (RAN Intelligent Controller)
+#   platform project (RICP).
+#
 import config
 import redis
+import time
 
 
 def flush():
@@ -29,5 +34,12 @@ def flush():
 
     r.flushall()
 
+    r.set("{e2Manager},E2TAddresses", "[\"10.0.2.15:38000\"]")
+
+    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
 
+
+
+