X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Automation%2FTests%2FScripts%2Fcleanup_db.py;h=979da9a75bebd1424a94739b49d1a2bfeb1681da;hb=a957b2009d4833de7961455104194bb021311c9f;hp=0bae97e4daec464a59ac302b3fc143e950c46d3c;hpb=0995008bd70d98ea5c374f71f710b920d2939765;p=ric-plt%2Fe2mgr.git diff --git a/Automation/Tests/Scripts/cleanup_db.py b/Automation/Tests/Scripts/cleanup_db.py index 0bae97e..979da9a 100644 --- a/Automation/Tests/Scripts/cleanup_db.py +++ b/Automation/Tests/Scripts/cleanup_db.py @@ -33,10 +33,9 @@ def flush(): r = redis.Redis(host=c, port=p, db=0) r.flushall() - - r.set("{e2Manager},E2TAddresses", "[\"127.0.0.1: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},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