Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: Ifd0d1b8aa419e39361e76a4f846cb4eeaf0d46ca
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Currently, general users have rights to restore other users'
checkpoints. We should add permission check to avoid the security
risk.
Closes-Bug: #1805004
Change-Id: If0f957a3aa8f25778833d7611342fab6b8efa388
Currently, karbor do not have 'delete' method in restore
API, but it has 'delete' related tests, so we should remove
them.
Change-Id: I8941951f7c422b1dcdf52897313f73f7f92fe235
Closes-Bug: #1731869
Leverage oslo.policy to register default policies in the
code. Administrator only need to update the specified
policy in the config file.
Change-Id: I8eb8db315766afba3e199809a7bc9041b52638cd
Partial-Implements: blueprint policy-in-code
Currently, immediatelly after heat stack has been created, status is
updated to success, without waiting for the stack result.
Instead, set the success status only after heat stack finished
successfully.
Change-Id: I60c795ec547070b7d53f31fbd7865c573efe4433
Restore REST body includes the parameters attribute which specifies
each resource or resource type paramters according to protection
plugin's restore schema.
Restore target auth parameters (such as username and password) to be
sent in 'restore_auth' dictionary in the restore body and not saved
in the restore object.
Change-Id: I7e73d2a0f1d347e83c9bb412649533700bd35ea4