summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjesus m. rodriguez <jesusr@redhat.com>2009-11-16 16:30:31 -0500
committerjesus m. rodriguez <jesusr@redhat.com>2009-11-16 16:30:31 -0500
commit6a5cf056d3493d40716c2ec1c487862301c7d427 (patch)
tree293a308b6aa940f31ef49d7cf4c10da36cea15d7
parent4cfab46babfc3db27ec4afa0c62ffe821b2e5c07 (diff)
downloadcandlepin-6a5cf056d3493d40716c2ec1c487862301c7d427.tar.gz
candlepin-6a5cf056d3493d40716c2ec1c487862301c7d427.tar.xz
candlepin-6a5cf056d3493d40716c2ec1c487862301c7d427.zip
adding scripts to test entitlement and pool api
-rwxr-xr-xproxy/code/scripts/test-entitlementapi.py2
-rwxr-xr-xproxy/code/scripts/test-poolapi.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/proxy/code/scripts/test-entitlementapi.py b/proxy/code/scripts/test-entitlementapi.py
index 8930316..78551d4 100755
--- a/proxy/code/scripts/test-entitlementapi.py
+++ b/proxy/code/scripts/test-entitlementapi.py
@@ -25,4 +25,4 @@ print("get: %s" % rsp)
response = urllib.urlopen('http://localhost:8080/candlepin/entitlement/list')
rsp = response.read()
-print("list: %s" % rsp) \ No newline at end of file
+print("list: %s" % rsp)
diff --git a/proxy/code/scripts/test-poolapi.py b/proxy/code/scripts/test-poolapi.py
index f297ef2..bfb09c6 100755
--- a/proxy/code/scripts/test-poolapi.py
+++ b/proxy/code/scripts/test-poolapi.py
@@ -7,3 +7,7 @@ import simplejson
response = urllib.urlopen('http://localhost:8080/candlepin/entitlementpool')
rsp = response.read()
print("list: %s" % rsp)
+pool = simplejson.loads(rsp)
+print(type(pool))
+for (k, v) in pool.iteritems():
+ print("pool[%s] = '%s'" % (k, v))