The code is copied from ironic. Ironic has no policy in Juno
, so it need the code to test. But it is not needed in magnum.
Change-Id: Ib066d953993b92c7c96d661cfcb7f2d3ef888659
Closes-Bug: #1482023
According to https://pypi.python.org/pypi/fixtures, prior to
version 1.3.0 fixtures recommended overriding setUp. This is
still supported, but since it is harder to write leak-free
fixtures in this fashion, it is not recommended. We should
override _setUp now.
Change-Id: Id269b706c44cdb9c12e075ccb69dcb6055b18a3c
Closes-Bug: 1476573
Two purpose:
Make sure the policy enforce_wsgi decorator is called.
Make sure the request will be disallowed by policy, when it does not
satisfy the policy rule.
Co-Authored-By: yuntongjin <yuntong.jin@intel.com>
Change-Id: I4a4930d7951f416d3553c737c3523c37014d7101
Partial-implements: blueprint policy-enforce