diff options
| author | Yogeshwar Srikrishnan <yoga80@yahoo.com> | 2011-05-25 01:06:20 -0500 |
|---|---|---|
| committer | Yogeshwar Srikrishnan <yoga80@yahoo.com> | 2011-05-25 01:06:20 -0500 |
| commit | 7c04dc579b3380950773f2e2f281c77006f6d951 (patch) | |
| tree | e6dd5c0a0ce6e26d8dd0ad522ec0d3d844500bbf /test | |
| parent | 3b07e5de1e094a98b928e29ee38b48ab93ba6fe2 (diff) | |
Changes to support /tokens on docbook and minor roleref changes
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/test_common.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/test_common.py b/test/unit/test_common.py index 2e7e11bb..126a3f62 100644 --- a/test/unit/test_common.py +++ b/test/unit/test_common.py @@ -720,8 +720,8 @@ def create_role_ref(user_id, role_id, tenant_id, auth_token): header = httplib2.Http(".cache") url = '%susers/%s/roleRefs' % (URL, user_id) - body = {"roleRef": {"tenant_id": tenant_id, - "role_id": role_id}} + body = {"roleRef": {"tenantId": tenant_id, + "roleId": role_id}} resp, content = header.request(url, "POST", body=json.dumps(body), headers={"Content-Type": "application/json", "X-Auth-Token": auth_token}) @@ -733,7 +733,7 @@ def create_role_ref_xml(user_id, role_id, tenant_id, auth_token): url = '%susers/%s/roleRefs' % (URL, user_id) body = '<?xml version="1.0" encoding="UTF-8"?>\ <roleRef xmlns="http://docs.openstack.org/identity/api/v2.0" \ - tenant_id="%s" role_id="%s"/>\ + tenantId="%s" roleId="%s"/>\ ' % (tenant_id, role_id) resp, content = header.request(url, "POST", body=body, headers={"Content-Type": "application/xml", |
