Add dynamic timestamp 00/2000/1
authorss412g <shuky.har-noy@intl.att.com>
Wed, 11 Dec 2019 13:04:49 +0000 (15:04 +0200)
committerss412g <shuky.har-noy@intl.att.com>
Wed, 11 Dec 2019 13:05:03 +0000 (15:05 +0200)
Change-Id: I540fbf4a746ae73445a7ca2254e83e97548a99f3
Signed-off-by: ss412g <shuky.har-noy@intl.att.com>
Automation/Tests/Scripts/cleanup_db.py

index 4cf961f..100522b 100644 (file)
@@ -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