← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1262325] [NEW] unit tests needed to validate policy exceptions for all available actions

 

Public bug reported:

We need a suite of unit tests that iterate through each available rule
in policy.json, converts them all into admin-only actions, and asserts
if a valid policy exception is raised when those actions are performed
by a non-admin.

Currently there are tests that validate if policy.enforce enforces fake
admin only actions, but it doesn't test for the exceptions raised at the
API level for all available actions in policy file.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1262325

Title:
  unit tests needed to validate policy exceptions for all available
  actions

Status in OpenStack Compute (Nova):
  New

Bug description:
  We need a suite of unit tests that iterate through each available rule
  in policy.json, converts them all into admin-only actions, and asserts
  if a valid policy exception is raised when those actions are performed
  by a non-admin.

  Currently there are tests that validate if policy.enforce enforces
  fake admin only actions, but it doesn't test for the exceptions raised
  at the API level for all available actions in policy file.

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


Follow ups

References