summaryrefslogtreecommitdiffstats
path: root/proxy/code/scripts/test-connection.py
diff options
context:
space:
mode:
authorjesus m. rodriguez <jesusr@redhat.com>2009-11-18 21:58:14 -0500
committerjesus m. rodriguez <jesusr@redhat.com>2009-11-18 21:58:14 -0500
commitb78b3ce2451ca6d12ed65677ea63e7ee5e60041a (patch)
tree50d8f3d6b70a043a60d44a0773c41a457b89ff55 /proxy/code/scripts/test-connection.py
parent0b6e5469af00e30a11370d6a9402d59d9e74c2df (diff)
downloadcandlepin-b78b3ce2451ca6d12ed65677ea63e7ee5e60041a.tar.gz
candlepin-b78b3ce2451ca6d12ed65677ea63e7ee5e60041a.tar.xz
candlepin-b78b3ce2451ca6d12ed65677ea63e7ee5e60041a.zip
remove unused test-connection, fix userapi
Diffstat (limited to 'proxy/code/scripts/test-connection.py')
-rwxr-xr-xproxy/code/scripts/test-connection.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/proxy/code/scripts/test-connection.py b/proxy/code/scripts/test-connection.py
deleted file mode 100755
index 0aaca74..0000000
--- a/proxy/code/scripts/test-connection.py
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/python
-
-import httplib, urllib
-import sys
-
-if len(sys.argv) < 1:
- print("please supply a message")
- sys.exit(1)
-
-param = sys.argv[1]
-
-params = urllib.urlencode({'message':sys.argv[1]})
-headers = {"Content-type":"application/x-www-form-urlencoded",
- "Accept": "application/json"}
-conn = httplib.HTTPConnection("localhost", 8080)
-conn.request("POST", '/candlepin/helloworld', params, headers)
-#response = conn.getresponse()
-#print response.status, response.reason
-#rsp = response.read()
-conn.close()
-#print rsp
-
-# test creating org
-params = urllib.urlencode({'name':'test-org-client-created-' + param})
-conn.request("POST", '/candlepin/org', params, headers)
-response = conn.getresponse()
-print response.status, response.reason
-rsp = response.read()
-print(rsp)
-
-# test creating consumer
-params = urllib.urlencode({'name':'test-consumer-client-created-' + param})
-conn.request("POST", '/candlepin/consumer', params, headers)
-response = conn.getresponse()
-print response.status, response.reason
-rsp = response.read()
-print(rsp)
-
-response = urllib.urlopen('http://localhost:8080/candlepin/consumer/list')
-rsp = response.read()
-print(rsp)
-