Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/python-bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/jsonrpc-test.py')
-rwxr-xr-xbin/jsonrpc-test.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/bin/jsonrpc-test.py b/bin/jsonrpc-test.py
deleted file mode 100755
index 9cd660b..0000000
--- a/bin/jsonrpc-test.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env python
-# coding: utf-8
-
-from pprint import pprint
-import pyjsonrpc
-
-http_client = pyjsonrpc.HttpClient(
- url = "http://localhost:8080",
- #username = "Username",
- #password = "Password"
-)
-
-#try:
- #print http_client.call("a2")
- ## Result: 3
-#except:
- #pass
-
-# It is also possible to use the *method* name as *attribute* name.
-#print http_client.add(1, 2)
-
-# provoke an error
-#print http_client.add(2,"abc")
-
-
-result = http_client.execute_fullresult("list jobs last")
-pprint(result)
-
-result = http_client.execute("list jobs last")
-pprint(result)
-
-result = http_client.list("jobs last")
-pprint(result)
-
-
-#try:
- #pprint(result['result'])
-#except:
- #pprint( result )
-