update/software-client/software_client/v1
Bin Qian 229acb985f Add deletion constraint
This change adds checks before deleting software releases:
1. software release is available or unavailable
2. When it is on a system controller, the release is not being used by a
   subcloud
This change also update the following:
1. removed the exception handling in controller level, moved to
   exception hook
2. CLI code to display HTTP error, only handles 500 status code, by
   displaying message from API, all other 4xx, 5xx status code display
   HTTP error directly.
3. ensure CLI return 1 for unsuccessful requets (status code 500)
4. fixed some minor issues

Story: 2010676
Task: 49657

TCs:
     passed: observe delection rejected because of release not found,
release is not in available or unavailable state.
     passed: delete an available release
     passed: on system controller, successfully delete scenarios
     passed: (simulated) on system controller with subcloud, delete
     release used by subcloud is rejected

Change-Id: I306b1d8604113b92d907384844e8e8107835a463
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2024-03-20 22:41:48 +00:00
..
__init__.py Add support for https in USM software client 2024-03-14 06:58:50 -04:00
client.py Add support for https in USM software client 2024-03-14 06:58:50 -04:00
deploy.py Add support for https in USM software client 2024-03-14 06:58:50 -04:00
deploy_cmd.py Add support for https in USM software client 2024-03-14 06:58:50 -04:00
deploy_shell.py Add support for https in USM software client 2024-03-14 06:58:50 -04:00
release.py Add deletion constraint 2024-03-20 22:41:48 +00:00
release_shell.py Add deletion constraint 2024-03-20 22:41:48 +00:00
shell.py Add support for https in USM software client 2024-03-14 06:58:50 -04:00