fault/fm-rest-api/fm
fperez 448bb06c3b Fix fm-rest-api returning incorrect error codes
Some alarm and event exceptions in fm-rest-api are returning
HTTP 500 instead of the correct status code. This issue is related
to the exception class being used.

This commit corrects the returned value and prevents the default
exception from being generated.

Test Plan:
PASS: Apply the changes to the system. Use the 'fm alarm-show' or
      'event-show' commands with a non-existent UUID. Verify that
      the correct code is returned in both logs and console output.
PASS: Force other errors, such as invalid parameters (400) and
      unauthorized access (401), and verify that the returned code
      matches the expected value.

closes-bug: 2080697

Change-Id: Ie91dc3bba8efa0e1e47678f18710c83d97eb2905
Signed-off-by: fperez <fabrizio.perez@windriver.com>
2024-09-16 13:54:57 -03:00
..
fm Fix fm-rest-api returning incorrect error codes 2024-09-16 13:54:57 -03:00
scripts Fault Management API request audit logging 2022-02-18 00:39:43 -03:00
.coveragerc Adding a tox coverage target for fm-rest-api. 2020-02-20 15:52:05 -06:00
.stestr.conf Create test framework for python with stestr. 2020-01-16 16:45:45 +08:00
fm-api-pmond.conf Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
LICENSE fm-rest-api: Fix LICENSE Permissions 2019-06-13 10:25:41 -07:00
pylint.rc Tox and Zuul cleanup for python3.9 2023-03-02 19:32:25 +00:00
requirements.txt [DevStack] WSME doesn't always get installed, force it 2019-04-02 23:27:27 +00:00
setup.cfg Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
setup.py add migrate.cfg to wheel package to install image 2019-05-02 07:58:58 +08:00
test-requirements.txt Tox and Zuul cleanup for python3.9 2023-03-02 19:32:25 +00:00
tox.ini Tox and Zuul cleanup for python3.9 2023-03-02 19:32:25 +00:00