Add R5 content to master
[ric-plt/e2mgr.git] / Automation / Tests / Scripts / cleanup_db.py
index 61aeffa..979da9a 100644 (file)
@@ -21,6 +21,7 @@
 #
 import config
 import redis
+import time
 
 
 def flush():
@@ -32,6 +33,12 @@ def flush():
     r = redis.Redis(host=c, port=p, db=0)
 
     r.flushall()
+    r.set("{e2Manager},GENERAL","{\"enableRic\":true}")
+    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
 
+
+
+