← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1406721] [NEW] RoleNotFound exception not tested for grant APIs

 

Public bug reported:

In general, our unit testing of granting assignments does not test that
we throw a RoleNotFound exception if the role_id supplied  does not
exit. While it might argued that the assignment APIs shouldn't validate
this (like we don't validate user/grouo ids), currently the spec (and
the code) says that we do.  So we should test for this case.  This test
will be important to ensure functionality does;t change as we split role
management into its own backend (and hence the checking of valid role_id
is lifted up into the manager)

** Affects: keystone
     Importance: Wishlist
     Assignee: Henry Nash (henry-nash)
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1406721

Title:
  RoleNotFound exception not tested for grant APIs

Status in OpenStack Identity (Keystone):
  New

Bug description:
  In general, our unit testing of granting assignments does not test
  that we throw a RoleNotFound exception if the role_id supplied  does
  not exit. While it might argued that the assignment APIs shouldn't
  validate this (like we don't validate user/grouo ids), currently the
  spec (and the code) says that we do.  So we should test for this case.
  This test will be important to ensure functionality does;t change as
  we split role management into its own backend (and hence the checking
  of valid role_id is lifted up into the manager)

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1406721/+subscriptions


Follow ups

References