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
Hi David,
I used the information from "http:// docs.rackspace. com/openstack- extensions/ auth/OS- KSADM-admin- devguide/ content/ DELETE_ deleteRoleFromU serOnTenant_ 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 a5d7d2a826f54ec 881970251f53c4c 2f --role-id e99fe38860154d0 9a0ade1ac031c9b 0f --tenant-id 9f391448c51d4ac 5bd12b937de085a bdconnect: (15.184.83.251, 5000)031c9b0f --tenant-id 9f391448c51d4ac 5bd12b937de085s end: '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", "passwordCreden tials": {"username": "admin", "password": "iforgot"}}}' 9f391448c51d4ac 5bd12b937de085a bd/users/ a5d7d2a826f54ec 881970251f53c4c 2f/roles/ OS-KSADM/ e99fe38860154d0 9a0ade1ac031c9b 0f HTTP/1.1\r\nHost: 15.184. 83.251: 35357\r\ nContent- Length: 4\r\nx-auth-token: 1322d76081e3455 c9d498a6b771998 cb\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: 2562
header: Date: Wed, 01 Aug 2012 06:20:01 GMT
connect: (15.184.83.251, 35357)
send: u'PUT /v2.0/tenants/
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