Commit Graph

16 Commits

Author SHA1 Message Date
Kendall Nelson 353f75eca0 Retire Karbor
As announced on the openstack-discuss ML[1], Karbor is retiring
this cycle (Wallaby).

This commit retires this repository as per the process defined in
the project-guide[2].

Thank you to all the contributors of Karbor for your hard work!

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018643.html
[2] https://docs.openstack.org/project-team-guide/repository.html#retiring-a-repository

Depends-On: https://review.opendev.org/c/openstack/project-config/+/767030
Change-Id: I972ffb299f93863c4e34b1f504b002095661e6af
2020-12-21 11:51:02 -08:00
Sean McGinnis 3df667582c
Use unittest.mock instead of third party mock
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>
2020-08-13 08:28:07 -05:00
hulina 7dfb09b147 Correct spelling errors in test_quota_classes
Change-Id: Ie35cc9150f654f2382336eeef23823eb9d766bd7
2019-08-20 10:46:54 +08:00
YUHAN 50dc879eaf Add unit test for restores API
Change-Id: Ia650f3b7feb2d9f52c1a0ae8c38579965017bdc8
2018-11-27 04:10:48 +08:00
jiaopengju 37c197851a Add permission check when creating restore
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
2018-11-25 21:09:11 +08:00
chenying c5ae53d58c Add jsonschema validation for karbor restores API
Change-Id: Ib32a9d8fd28275d8a2a89ae436506c395671262c
Partial-Implements: bp karbor-json-schema-validation
2017-12-13 15:47:48 +08:00
jiaopengju 6b565a1ed6 Remove duplicated unit tests of restore API
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
2017-11-22 10:03:54 +08:00
chenying 105f68fa36 Fix the unit tests about policy and the DocumentedRule description
Change-Id: I419dab4bfee11cbba3779d11dbb188cb048a488e
Partial-Implements: blueprint policy-and-docs-in-code
2017-10-11 16:33:20 +08:00
chenying c31902b8d9 Add default policy in code for the restore resource
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
2017-09-27 15:17:58 +08:00
Yuval Brik a808a5bcf3 keystone: move to v3
Change-Id: I2bd316e52aede8ca207d364d247b2a0ffeccf9c4
2017-02-07 14:00:45 +02:00
Yuval Brik 04e2086ad9 Use parenthesis instead of slash for multiline
Change-Id: I4111fb46613cf44645cb2f276a21be685de865d8
2016-12-25 10:23:19 +02:00
Yuval Brik 5a523b2cb7 restore: update success only upon heat complete
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
2016-10-26 11:34:49 +03:00
Jenkins aba12ed6cf Merge "Move restore auth parameters to restore_auth attr" 2016-09-25 10:17:28 +00:00
Yuval Brik 3771bdd1a9 Move restore auth parameters to restore_auth attr
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
2016-09-18 09:47:13 +03:00
zhangshuai abf2b460b7 Remove hard code in api
use constants.XXXXXX instead of hard code in api.

Change-Id: Idf3037c68632dd068da44c38c64c988126f4b707
2016-09-14 09:16:30 +08:00
chenying 1c60dac7fa Change Smaug to Karbor
There was a decision in the community to change the project name.

Change-Id: I8b3d538b9573ebaa2a873f4696e1f1a500c941a8
2016-08-18 22:55:34 +08:00