octavia/octavia/tests/functional/db
Brian Haley 25f8980e22 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)
2020-12-02 16:54:25 +00:00
..
__init__.py Add license for empty __init__.py 2018-03-14 07:02:56 +09:00
base.py Availability Zone admin API 2019-11-22 09:49:17 -08:00
test_models.py Remove deprecated exception classes 2020-05-18 15:33:18 -04:00
test_repositories.py Handle listener not found during loadbalancer status update 2020-12-02 16:54:25 +00:00