example: rename a script to use it as internal test
authorWonki Kim <wonki_.kim@samsung.com>
Fri, 24 Apr 2020 09:58:28 +0000 (18:58 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Sat, 25 Apr 2020 05:58:37 +0000 (14:58 +0900)
there is a script that calls commands which are for internal use only.
this patch rename the script as according purpose

Change-Id: Iacea3beae4fdab364ec7be35ab640a3eb076cb02

protocol/examples/python/testInternal.py [moved from protocol/examples/python/killServer.py with 58% similarity]

similarity index 58%
rename from protocol/examples/python/killServer.py
rename to protocol/examples/python/testInternal.py
index d0f9977..23f2faa 100644 (file)
@@ -1,5 +1,5 @@
 from __future__ import print_function
-import aurum_pb2
+from aurum_pb2 import *
 import aurum_pb2_grpc
 import logging
 import grpc
@@ -7,8 +7,11 @@ import grpc
 def run():
     with grpc.insecure_channel('127.0.0.1:50051') as channel:
         stub = aurum_pb2_grpc.BootstrapStub(channel)
-        stub.killServer(aurum_pb2.ReqEmpty())
+
+        print(stub.sync(ReqEmpty()))
+        print(stub.getDeviceTime(ReqGetDeviceTime(type='WALLCLOCK')))
+#        stub.killServer(aurum_pb2.ReqEmpty())
 
 if __name__ == '__main__':
     logging.basicConfig()
-    run()
\ No newline at end of file
+    run()