Last active
December 10, 2015 22:28
-
-
Save ecarreras/4501827 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import xmlrpclib | |
import sys | |
def run_test(host, port, dbname, uid, pwd, tid): | |
sock = xmlrpclib.ServerProxy('https://%s:%d/xmlrpc/ws_transaction' | |
% (host, port)) | |
sock.commit(dbname, uid, pwd, tid) | |
sock.close(dbname, uid, pwd, tid) | |
if __name__ == "__main__": | |
host, port, dbname, uid, pwd, tid = sys.argv[1:] | |
port = int(port) | |
uid = int(uid) | |
tid = int(tid) | |
run_test(host, port, dbname, uid, pwd, tid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import xmlrpclib | |
import sys | |
def run_test(host, port): | |
sock = xmlrpclib.ServerProxy('https://%s:%d/xmlrpc/ws_transaction' | |
% (host, port)) | |
tid = sock.list() | |
if __name__ == "__main__": | |
host = sys.argv[1] | |
port = int(sys.argv[2]) | |
run_test(host, port) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment