summaryrefslogtreecommitdiffstats
path: root/proxy/code/scripts/test-userapi.py
blob: 0851a6e7baa85f3b20b6f5d868c8357443062c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/python

import httplib, urllib
import sys

# GET candlepin user
response = urllib.urlopen('http://localhost:8080/candlepin/user/candlepin')
rsp = response.read()
print("get: %s" % rsp)

# GET list of users
response = urllib.urlopen('http://localhost:8080/candlepin/user/')
rsp = response.read()
print("list of users: %s" % rsp)