diff --git a/designate/tests/__init__.py b/designate/tests/__init__.py index a513ca5b..4e27a2eb 100644 --- a/designate/tests/__init__.py +++ b/designate/tests/__init__.py @@ -422,7 +422,7 @@ class TestCase(base.BaseTestCase): # Fill out the necessary pool details pool.ns_records = objects.PoolNsRecordList.from_list([ - {'hostname': 'ns1.example.org.', 'priority': 0} + {'hostname': 'ns1.example.org.', 'priority': 1} ]) pool.targets = objects.PoolTargetList.from_list([ diff --git a/designate/tests/test_api/test_v1/test_servers.py b/designate/tests/test_api/test_v1/test_servers.py index 7157af5f..ebe4101b 100644 --- a/designate/tests/test_api/test_v1/test_servers.py +++ b/designate/tests/test_api/test_v1/test_servers.py @@ -130,7 +130,7 @@ class ApiV1ServersTest(ApiV1Test): # Add a new NS record to the pool pool.ns_records.append( - objects.PoolNsRecord(priority=0, hostname='new-ns1.example.org.')) + objects.PoolNsRecord(priority=1, hostname='new-ns1.example.org.')) # Save the pool to add a new nameserver self.storage.update_pool(self.admin_context, pool) @@ -143,7 +143,7 @@ class ApiV1ServersTest(ApiV1Test): # Add a new NS record to the pool pool.ns_records.append( - objects.PoolNsRecord(priority=0, hostname='new-ns2.example.org.')) + objects.PoolNsRecord(priority=1, hostname='new-ns2.example.org.')) # Save the pool to add a new nameserver self.storage.update_pool(self.admin_context, pool) @@ -221,7 +221,7 @@ class ApiV1ServersTest(ApiV1Test): # because the last remaining server is not allowed to be deleted # Add a new NS record to the pool pool.ns_records.append( - objects.PoolNsRecord(priority=0, hostname='new-ns2.example.org.')) + objects.PoolNsRecord(priority=1, hostname='new-ns2.example.org.')) # Save the pool to add a new nameserver self.storage.update_pool(self.admin_context, pool)