distcloud-client/distributedcloud-client/dcmanagerclient/tests
Swapna Gorre 93fdf78e8a Add 'subcloud deploy delete' command to dcmanager
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>
2024-01-08 12:01:27 -05:00
..
v1 Add 'subcloud deploy delete' command to dcmanager 2024-01-08 12:01:27 -05:00
__init__.py Move content to subdir to support relocated packaging 2019-11-04 14:14:38 -05:00
base.py Remove rehome_data from subcloud show 2023-11-02 14:01:16 +08:00
base_shell_test.py Remove WR License notice from StarlingX distributed cloud client 2021-12-22 13:23:29 -05:00
test_client.py Remove WR License notice from StarlingX distributed cloud client 2021-12-22 13:23:29 -05:00
test_help_and_bash_completion.py Remove WR License notice from StarlingX distributed cloud client 2021-12-22 13:23:29 -05:00
test_httpclient.py Remove WR License notice from StarlingX distributed cloud client 2021-12-22 13:23:29 -05:00
test_shell.py Remove WR License notice from StarlingX distributed cloud client 2021-12-22 13:23:29 -05:00
test_utils.py Use multipart headers on subcloud-backup API calls 2022-12-14 18:13:50 -03:00