From c74cc81fbd0b3600a6f596915b0cf887e10d2077 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Fri, 20 Nov 2009 12:32:14 -0500 Subject: add test-ownerapy.py Just GET's the /owner/ url, since thats all /owner has --- proxy/code/scripts/test-ownerapi.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 proxy/code/scripts/test-ownerapi.py (limited to 'proxy/code/scripts/test-ownerapi.py') 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) + -- cgit