This commit adds the subcloud deploy delete command to dcmanager client.
It's used to delete deploy files under /opt/platform/deploy.
Usage:
dcmanager subcloud deploy delete
dcmanager subcloud deploy delete --release <Release_Version>
dcmanager subcloud deploy delete --prestage-images
dcmanager subcloud deploy delete --deployment-files
Test Cases:
1) PASS: Verify the deployment files were deleted belonging to
the specified release.
2) PASS: Verify the deployment files were deleted belonging to
the active release when the '--release' not present.
3) PASS: Verify the prestage images list file deleted when the
'--prestage-images' present.
4) PASS: Verify the deploy overrides, deploy chart, deploy playbook
files deleted when '--deployment-files' present.
5) PASS: Run 'dcmanager subcloud deploy delete' and verify that the
correct API call is made.
Depends-On: https://review.opendev.org/c/starlingx/distcloud/+/901112
Story: 2010718
Task: 49190
Change-Id: I38961a584b5e295580eae0a5d80549732ed591c8
Signed-off-by: Swapna Gorre <swapna.gorre@windriver.com>