diff options
author | Adrian Likins <adrian@alikins.usersys.redhat.com> | 2009-11-20 12:32:14 -0500 |
---|---|---|
committer | Adrian Likins <adrian@alikins.usersys.redhat.com> | 2009-11-20 12:32:14 -0500 |
commit | c74cc81fbd0b3600a6f596915b0cf887e10d2077 (patch) | |
tree | 07bf2e0a07fc1c9093ca82e3116ab464039db146 | |
parent | b3f1d75169c16cae604e6ed6f07e4c6db359f7d1 (diff) | |
download | candlepin-c74cc81fbd0b3600a6f596915b0cf887e10d2077.tar.gz candlepin-c74cc81fbd0b3600a6f596915b0cf887e10d2077.tar.xz candlepin-c74cc81fbd0b3600a6f596915b0cf887e10d2077.zip |
add test-ownerapy.py
Just GET's the /owner/ url, since thats all /owner has
-rwxr-xr-x | proxy/code/scripts/test-ownerapi.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/proxy/code/scripts/test-ownerapi.py b/proxy/code/scripts/test-ownerapi.py new file mode 100755 index 0000000..6b4f501 --- /dev/null +++ b/proxy/code/scripts/test-ownerapi.py @@ -0,0 +1,10 @@ +#!/usr/bin/python + +import httplib, urllib +import sys +import simplejson + +response = urllib.urlopen('http://localhost:8080/candlepin/owner') +rsp = response.read() +print("get: %s" % rsp) + |