designate/designate/tests
Erik Olof Gunnar Andersson 1924abff40 Add unique constraint to service_statuses
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
2018-05-20 12:41:21 -07:00
..
resources Update the description of pool-2 in multiple-pools.yaml 2017-11-13 09:56:03 +08:00
test_agent Remove usage of parameter enforce_type 2017-05-22 22:45:14 +08:00
test_api Merge "Keep NS records for subdomains during Zone import." 2018-03-05 04:04:40 +00:00
test_backend Merge "Fix issues with value pool-manger and bind9 tests" 2017-06-09 12:11:18 +00:00
test_central Add unique constraint to service_statuses 2018-05-20 12:41:21 -07:00
test_mdns Unskip and fix handler tests in py3 2017-05-23 14:47:22 +02:00
test_network_api Update email addresses hp.com to hpe.com 2016-01-11 14:29:33 +00:00
test_notification_handler Remove deprecated cfg in notification and add format-v6 test 2017-07-17 06:21:50 +00:00
test_objects Add validation for MX, TXT, and SSHFP records 2016-01-26 15:17:27 -06:00
test_pool_manager Migrate object to OVO (4) 2018-02-25 16:07:38 +00:00
test_producer Worker Model 2016-08-24 14:54:31 +00:00
test_quota Update email addresses hp.com to hpe.com 2016-01-11 14:29:33 +00:00
test_resources Remove unused V2 schemas 2015-07-21 12:04:07 +01:00
test_schema Remove v1 API 2018-01-11 14:13:43 +00:00
test_storage Add unique constraint to service_statuses 2018-05-20 12:41:21 -07:00
test_workers Remove old functional tests 2017-03-08 12:46:26 +00:00
unit Add unique constraint to service_statuses 2018-05-20 12:41:21 -07:00
__init__.py Add unique constraint to service_statuses 2018-05-20 12:41:21 -07:00
fixtures.py Remove translation of log messages 2018-03-14 12:54:05 -07:00
test_context.py Restrict editing of managed records to policy based ACL 2015-04-09 11:39:51 +01:00
test_coordination.py Merge "Retry Coordinator start indefinitely" 2016-01-14 15:19:09 +00:00
test_dnsutils.py Update email addresses hp.com to hpe.com 2016-01-11 14:29:33 +00:00
test_hookpoints.py Use six.iterkeys(x) instead of x.keys() 2015-07-01 00:18:40 +05:30
test_sqlalchemy.py Update email addresses hp.com to hpe.com 2016-01-11 14:29:33 +00:00
test_utils.py Remove v1 API 2018-01-11 14:13:43 +00:00