X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Automation%2FTests%2FScripts%2Fcleanup_db.py;h=4dd3ff03855e9ab0b39d2f85dd0c698903289b5c;hb=9093b29ad0cbe89e3e0c71b3d72d7961420f907c;hp=61aeffa3e8fca44e9c1f9c0b93d28c6796aba520;hpb=15d3982b5eda43a5b5b9054d7ecb026448c6ca16;p=ric-plt%2Fe2mgr.git diff --git a/Automation/Tests/Scripts/cleanup_db.py b/Automation/Tests/Scripts/cleanup_db.py index 61aeffa..4dd3ff0 100644 --- a/Automation/Tests/Scripts/cleanup_db.py +++ b/Automation/Tests/Scripts/cleanup_db.py @@ -21,6 +21,7 @@ # import config import redis +import time def flush(): @@ -33,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 + + +