distcloud/distributedcloud/dcmanager/tests/unit
BoYuan Chang 0d05b33719 Support subcloud deploy upload prestaging images
Modify the existing REST API to upload the prestaging images list
to system controller

Test Cases Completed on local VM as well as DC Lab

a. (Passed) With all 4 variables
b. (Passed) With only --prestage-images
c. (Passed) With all other variables expect for --prestage-images
d. (Passed) With 1 or 2 missing varibles when --prestage-images is present
e. (Passed) With 1 or multiple invalid directory path

REST APIs:
curl -X POST -H "X-Auth-Token: $TOKEN" $APIURL/subcloud-deploy \
-F deploy_playbook=@<full path of the playbook name> \
-F deploy_overrides=@<full path of the override file name> \
-F deploy_chart=@full path of the helm chart name> \
-F prestage_images=@<full path of the prestage image name>

CLI:
dcmanager subcloud-deploy upload \
--deploy-playbook <full path of the playbook name> \ <- Existing
--deploy-chart <full path of the override file name> \ <- Existing
--deploy-overrides <full path of the override file name> <- Existing
--prestage-images <full path of the override file name> <- Added

Story: 2009799
Task: 44342

Change-Id: I75d4ac0931d2a37ceb68281a2ab6137ee2459e99
2022-01-31 15:10:50 -05:00
..
api Support subcloud deploy upload prestaging images 2022-01-31 15:10:50 -05:00
audit Refactor portion of dcmanager into dcmanager-state process 2022-01-27 16:33:41 -05:00
common Add features to kube-root-ca update orchestration 2021-10-06 08:01:33 -05:00
db Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
manager Refactor portion of dcmanager into dcmanager-state process 2022-01-27 16:33:41 -05:00
objects Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
orchestrator Ensure no management affected alarm in place before patching 2022-01-17 17:38:12 -05:00
rpc Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
utils Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
__init__.py Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
fakes.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
test_dcmanager.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00