diff options
author | jesus m. rodriguez <jesusr@redhat.com> | 2009-11-16 16:30:31 -0500 |
---|---|---|
committer | jesus m. rodriguez <jesusr@redhat.com> | 2009-11-16 16:30:31 -0500 |
commit | 6a5cf056d3493d40716c2ec1c487862301c7d427 (patch) | |
tree | 293a308b6aa940f31ef49d7cf4c10da36cea15d7 | |
parent | 4cfab46babfc3db27ec4afa0c62ffe821b2e5c07 (diff) | |
download | candlepin-6a5cf056d3493d40716c2ec1c487862301c7d427.tar.gz candlepin-6a5cf056d3493d40716c2ec1c487862301c7d427.tar.xz candlepin-6a5cf056d3493d40716c2ec1c487862301c7d427.zip |
adding scripts to test entitlement and pool api
-rwxr-xr-x | proxy/code/scripts/test-entitlementapi.py | 2 | ||||
-rwxr-xr-x | proxy/code/scripts/test-poolapi.py | 4 |
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)) |