448bb06c3b
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> |
||
---|---|---|
.. | ||
api | ||
cmd | ||
common | ||
db | ||
objects | ||
tests | ||
__init__.py | ||
config-generator.conf | ||
policy.yaml |