1924abff40
In the current implementation, if for any reason a duplicate service entry gets created, the call to update that service will fail endlessly, and instead cause the service to create new entries everytime update_service_status gets called. Causing it to fill the database with duplicate entries. This patch adds a unique constraint to the service_statuses table based on the service_name and hostname, to ensure that this cannot happen. In addition we add a new test to the storage driver and further expanded the central service test coverage. Change-Id: I307a8f7dd8b8a83effa447a846db3288efa32dba Closes-Bug: #1768824 |
||
---|---|---|
.. | ||
test_agent | ||
test_api | ||
test_backend | ||
test_central | ||
test_mdns | ||
test_metrics | ||
test_objects | ||
test_pool_manager | ||
test_producer | ||
test_scheduler | ||
README | ||
__init__.py | ||
test_pool.py | ||
test_service_status.py |
README
This directory contains pure unit tests. Examples: ostestr --regex designate.tests.test_unit python setup.py testr --coverage -t designate.tests.test_unit