summaryrefslogtreecommitdiffstats
path: root/proxy/code/scripts
diff options
context:
space:
mode:
authorjesus m. rodriguez <jesusr@redhat.com>2009-11-12 15:25:33 -0500
committerjesus m. rodriguez <jesusr@redhat.com>2009-11-12 15:25:33 -0500
commitf4feea49201468152cb19cc1a5013b6d2d7f7f8a (patch)
tree98467f17ee49c886f1e8a444e7a7e362dc40d9d1 /proxy/code/scripts
parent5f2c420567b94d6fc8949833d6d441c2bd1a291e (diff)
downloadcandlepin-f4feea49201468152cb19cc1a5013b6d2d7f7f8a.tar.gz
candlepin-f4feea49201468152cb19cc1a5013b6d2d7f7f8a.tar.xz
candlepin-f4feea49201468152cb19cc1a5013b6d2d7f7f8a.zip
allow upload of cert and return list of available ent pools
Diffstat (limited to 'proxy/code/scripts')
-rwxr-xr-xproxy/code/scripts/test-poolapi.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/proxy/code/scripts/test-poolapi.py b/proxy/code/scripts/test-poolapi.py
new file mode 100755
index 0000000..f297ef2
--- /dev/null
+++ b/proxy/code/scripts/test-poolapi.py
@@ -0,0 +1,9 @@
+#!/usr/bin/python
+
+import httplib, urllib
+import sys
+import simplejson
+
+response = urllib.urlopen('http://localhost:8080/candlepin/entitlementpool')
+rsp = response.read()
+print("list: %s" % rsp)