update/software/software/tests
Heitor Matsui 4040061ebe Fix deploy host status update when install fails
Currently the deploy host status is being moved to failed only
when it is rejected, thus having a reject reason. However, there
are scenarios where deploy host can fail and not necessarily with
a reject reason, so these scenarios are not being covered.

This commit fixes this issue, along with some minor tox issues,
and convert the db api lock logs to debug, since they were
generating log lines that were bloating software.log.

Test Plan
PASS: force deploy host failure, verify the deploy host status
      is updated accordingly
Regression
PASS: deploy host is rejected, verify the behavior remains the
      same as before (deploy host status failed)
PASS: deploy host with success, verify the behavior remains the
      same as before (deploy host status done)

Story: 2010676
Task: 49936

Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>
Change-Id: Ibcc2246ee3bf4598ae3e21bdec59247d4e754855
2024-04-26 11:09:09 -03:00
..
__init__.py Upload skeleton for unified software management 2023-04-03 14:03:04 +00:00
base.py Raise deploy state out of sync alarm 2024-04-15 19:14:23 +00:00
test_software_controller.py USM deploy state 2024-04-17 16:40:07 +00:00
test_software_controller_messages.py Fix deploy host status update when install fails 2024-04-26 11:09:09 -03:00
test_software_function.py Remove incorrect host validation from deploy host 2024-04-24 14:54:29 -03:00