From: ss412g Date: Wed, 11 Dec 2019 13:04:49 +0000 (+0200) Subject: Add dynamic timestamp X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=2609f582b14a3bf2e41ffd9f5167eb12eb1d3461;p=ric-plt%2Fe2mgr.git Add dynamic timestamp Change-Id: I540fbf4a746ae73445a7ca2254e83e97548a99f3 Signed-off-by: ss412g --- diff --git a/Automation/Tests/Scripts/cleanup_db.py b/Automation/Tests/Scripts/cleanup_db.py index 4cf961f..100522b 100644 --- a/Automation/Tests/Scripts/cleanup_db.py +++ b/Automation/Tests/Scripts/cleanup_db.py @@ -17,6 +17,7 @@ ############################################################################## import config import redis +import time def flush(): @@ -33,7 +34,7 @@ def flush(): r.set("{e2Manager},E2TAddresses", "[\"e2t.att.com:38000\"]") - r.set("{e2Manager},E2TInstance:e2t.att.com:38000", "{\"address\":\"e2t.att.com:38000\",\"associatedRanList\":[],\"keepAliveTimestamp\":1575974678854116185,\"state\":\"ACTIVE\"}") + r.set("{e2Manager},E2TInstance:e2t.att.com:38000", "{\"address\":\"e2t.att.com:38000\",\"associatedRanList\":[],\"keepAliveTimestamp\":" + str(int(time.time())) + ",\"state\":\"ACTIVE\"}") return True