diff options
author | jesus m. rodriguez <jesusr@redhat.com> | 2009-07-31 13:37:12 -0400 |
---|---|---|
committer | jesus m. rodriguez <jesusr@redhat.com> | 2009-08-27 15:42:08 -0400 |
commit | d87d588843f08e7e1e2e6f752029b1581d85d9b0 (patch) | |
tree | 83ed93023c0277119b70728cd5a9fbbe0aa75745 | |
parent | bf9e1bdf9bb0d3498259b8ac183b3365f935eabe (diff) | |
download | candlepin-d87d588843f08e7e1e2e6f752029b1581d85d9b0.tar.gz candlepin-d87d588843f08e7e1e2e6f752029b1581d85d9b0.tar.xz candlepin-d87d588843f08e7e1e2e6f752029b1581d85d9b0.zip |
add test client for consumers
-rwxr-xr-x | proxy/code/scripts/test-consumerapi.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/proxy/code/scripts/test-consumerapi.py b/proxy/code/scripts/test-consumerapi.py new file mode 100755 index 0000000..f7f16ec --- /dev/null +++ b/proxy/code/scripts/test-consumerapi.py @@ -0,0 +1,15 @@ +#!/usr/bin/python + +import httplib, urllib +import sys + +# GET list of consumers +response = urllib.urlopen('http://localhost:8080/candlepin/consumer/') +rsp = response.read() +print("list of users: %s" % rsp) + +# GET candlepin user +response = urllib.urlopen('http://localhost:8080/candlepin/consumer/candlepin') +rsp = response.read() +print("get: %s" % rsp) + |