octavia/octavia/tests/functional/db
Brian Haley b0b3086680 Handle listener not found during loadbalancer status update
If a call to update loadbalancer status cannot find the
specified listener, the API server will throw an exception:

"Error while updating the load balancer status: 'NoneType'
 object has no attribute 'update'"

Change ListenerRepository.update() to check the DB query
returned a record, and if not, raise a NotFound exception
back to the caller.

Change-Id: I6693be3e2d2f0e34f19f07f55b0429f8fda317b2
Task: 41108
Story: 2008254
(cherry picked from commit 17ae2625da)
2021-01-11 06:19:30 +00:00
..
__init__.py Add license for empty __init__.py 2018-03-14 07:02:56 +09:00
base.py Fix new pylint errors 2020-08-21 15:00:27 +02:00
test_models.py Fix new pylint errors 2020-08-21 15:00:27 +02:00
test_repositories.py Handle listener not found during loadbalancer status update 2021-01-11 06:19:30 +00:00