Comment 1 for bug 1022990

Revision history for this message
Rajalakshmi Ganesan (rajalakshmi-ganesan) wrote :

Hi David,

 I used the information from "http://docs.rackspace.com/openstack-extensions/auth/OS-KSADM-admin-devguide/content/DELETE_deleteRoleFromUserOnTenant_v2.0_tenants__tenantId__users__userId__roles_OS-KSADM__roleId__Admin_API_Service_Developer_Operations-d1e1357.html" to write tests initially.

It is same as the URI's sent via keystone client...

rajalakshmi_ganesan@ubuntu:~/tempest_april1/tempest/tempest/tests/identity/admin$ keystone --debug user-role-add --user-id a5d7d2a826f54ec881970251f53c4c2f --role-id e99fe38860154d09a0ade1ac031c9b0f --tenant-id 9f391448c51d4ac5bd12b937de085abdconnect: (15.184.83.251, 5000)031c9b0f --tenant-id 9f391448c51d4ac5bd12b937de085send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 15.184.83.251:5000\r\nContent-Length: 102\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "iforgot"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Content-Length: 2562
header: Date: Wed, 01 Aug 2012 06:20:01 GMT
connect: (15.184.83.251, 35357)
send: u'PUT /v2.0/tenants/9f391448c51d4ac5bd12b937de085abd/users/a5d7d2a826f54ec881970251f53c4c2f/roles/OS-KSADM/e99fe38860154d09a0ade1ac031c9b0f HTTP/1.1\r\nHost: 15.184.83.251:35357\r\nContent-Length: 4\r\nx-auth-token: 1322d76081e3455c9d498a6b771998cb\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\nnull'
reply: 'HTTP/1.1 200 OK\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Content-Length: 75
header: Date: Wed, 01 Aug 2012 06:20:02 GMT

Hence planing to change the URI's in tempest...Raised a bug for this Bug #1031639