yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #18979
[Bug 1355655] [NEW] Attempt to assign a role to a non existent user should fail
Public bug reported:
I use tempest tests get the following error:
===========================================
StringException: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/tempest/api/identity/admin/test_roles.py", line 143, in test_assign_user_role_for_non_existent_user
tenant ['id'], 'junk-user-id-999', role ['id'])
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 393, in assertRaises
self.assertThat (our_callable, matcher)
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat
raise mismatch_error
MismatchError: <bound method IdentityClientJSON.assign_user_role of <tempest.services.identity.json.identity_client.IdentityClientJSON object at 0x7f9183c2f250 >> returned ({'status': '200', 'content-length': '78', 'vary' : 'X-Auth-Token', 'date': 'Tue, 12 Aug 2014 08:00:39 GMT', 'content-type': 'application / json', 'x-distribution': 'Ubuntu'}, {u'id ': u'd4a5fe216f92439789389f968c6e50d6', u'name ': u'role1552687157'})
============================================
by testing found that "assign a role to a user that does not exist is a success."
See attachment Screenshot by postman
** Affects: keystone
Importance: Undecided
Status: Incomplete
** Attachment added: "postman"
https://bugs.launchpad.net/bugs/1355655/+attachment/4175195/+files/%7BF25C4498-06C3-484D-B9E7-0533D1E98110%7D.bmp
** Changed in: keystone
Status: New => Fix Committed
** Attachment removed: "postman"
https://bugs.launchpad.net/keystone/+bug/1355655/+attachment/4175195/+files/%7BF25C4498-06C3-484D-B9E7-0533D1E98110%7D.bmp
** Changed in: keystone
Status: Fix Committed => Incomplete
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1355655
Title:
Attempt to assign a role to a non existent user should fail
Status in OpenStack Identity (Keystone):
Incomplete
Bug description:
I use tempest tests get the following error:
===========================================
StringException: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/tempest/api/identity/admin/test_roles.py", line 143, in test_assign_user_role_for_non_existent_user
tenant ['id'], 'junk-user-id-999', role ['id'])
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 393, in assertRaises
self.assertThat (our_callable, matcher)
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat
raise mismatch_error
MismatchError: <bound method IdentityClientJSON.assign_user_role of <tempest.services.identity.json.identity_client.IdentityClientJSON object at 0x7f9183c2f250 >> returned ({'status': '200', 'content-length': '78', 'vary' : 'X-Auth-Token', 'date': 'Tue, 12 Aug 2014 08:00:39 GMT', 'content-type': 'application / json', 'x-distribution': 'Ubuntu'}, {u'id ': u'd4a5fe216f92439789389f968c6e50d6', u'name ': u'role1552687157'})
============================================
by testing found that "assign a role to a user that does not exist is a success."
See attachment Screenshot by postman
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1355655/+subscriptions
Follow ups
References