Comment 1 for bug 1925239

Revision history for this message
Zachary Buhman (zachary-buhman) wrote :

I think the confusion may ultimately come from the original unit tests introduced in https://opendev.org/openstack/keystone/commit/b2b341f4700554ebe7c35307916df067cfeb61ff

Unlike "normal" unauthenticated /auth/tokens requests, these unit tests are authenticated. This causes initiator.id to have a unit-testable value, which causes "self.assertEqual(initiator.name, user_id)" to succeed in those tests.

This succeeds because, coincidentally, the user ID in the authentication request matches the authenticating user ID.

This was not mentioned https://bugs.launchpad.net/keystone/+bug/1780503 , so I suspect the author may not have been aware of this detail.