From 7c04dc579b3380950773f2e2f281c77006f6d951 Mon Sep 17 00:00:00 2001 From: Yogeshwar Srikrishnan Date: Wed, 25 May 2011 01:06:20 -0500 Subject: Changes to support /tokens on docbook and minor roleref changes --- test/unit/test_common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 = '\ \ + tenantId="%s" roleId="%s"/>\ ' % (tenant_id, role_id) resp, content = header.request(url, "POST", body=body, headers={"Content-Type": "application/xml", -- cgit