update/software-client
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
..
debian Adding software-client to docker_stable_wheel.inc 2023-11-27 12:04:06 -03:00
service-files Build Software Client python wheels package 2023-10-05 20:16:14 +00:00
software_client Add deletion constraint 2024-03-20 22:41:48 +00:00
pylint.rc Build Software Client python wheels package 2023-10-05 20:16:14 +00:00
requirements.txt Build Software Client python wheels package 2023-10-05 20:16:14 +00:00
setup.cfg Build Software Client python wheels package 2023-10-05 20:16:14 +00:00
setup.py Build Software Client python wheels package 2023-10-05 20:16:14 +00:00
test-requirements.txt Add support for https in USM software client 2024-03-14 06:58:50 -04:00
tox.ini Build Software Client python wheels package 2023-10-05 20:16:14 +00:00