diff options
author | jesus m. rodriguez <jesusr@redhat.com> | 2009-09-14 16:34:47 -0400 |
---|---|---|
committer | jesus m. rodriguez <jesusr@redhat.com> | 2009-09-14 16:34:47 -0400 |
commit | a8aa2186b6f5cd5fdb9a7c223444095bcaad3001 (patch) | |
tree | f409e753398d0d56c9a47787ff39566eb7244023 /proxy/code/scripts/test-testapi.py | |
parent | 58cb2dcc27a95b64b3eb486f1e56ea641be9f1f7 (diff) | |
download | candlepin-a8aa2186b6f5cd5fdb9a7c223444095bcaad3001.tar.gz candlepin-a8aa2186b6f5cd5fdb9a7c223444095bcaad3001.tar.xz candlepin-a8aa2186b6f5cd5fdb9a7c223444095bcaad3001.zip |
test out submitting JSON to create test objects.
Diffstat (limited to 'proxy/code/scripts/test-testapi.py')
-rwxr-xr-x | proxy/code/scripts/test-testapi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/proxy/code/scripts/test-testapi.py b/proxy/code/scripts/test-testapi.py index 205c61a..518ecf5 100755 --- a/proxy/code/scripts/test-testapi.py +++ b/proxy/code/scripts/test-testapi.py @@ -9,7 +9,8 @@ if len(sys.argv) < 1: sys.exit(1) print("------------ TESTING json create") -params = {"name":"now","uuid":"thiswork","stringList":["string1", "string2"]} +parent = {"name":"parentname","uuid":"parentuuid","stringList":["string3", "string4"]} +params = {"name":"now","uuid":"thiswork","stringList":["string1", "string2"],"parent":parent} print(type(params['stringList'])) headers = {"Content-type":"application/json", "Accept": "application/json"} |