Empty RecordSets can be re-provisioned
An empty recordset is just a logical entity with a given record type. Right now we save the recordset name and type even when it is a null set, thus preventing us from re-using the name as a different type (eg. A to CNAME). It would be better to check for this empty recordset condition and delete if possible, rather than throwing error 400. This commit also adds CNAME type to Record and RecordSet fixtures Closes-Bug: #1304088 Change-Id: I4dd0e7def848939d8f0053a5ca40b14a0b68b8b3
This commit is contained in:
@@ -204,6 +204,10 @@ class TestCase(base.BaseTestCase):
|
||||
{'name': '_sip._tcp.%s', 'type': 'SRV'},
|
||||
{'name': '_sip._udp.%s', 'type': 'SRV'},
|
||||
],
|
||||
'CNAME': [
|
||||
{'name': 'www.%s', 'type': 'CNAME'},
|
||||
{'name': 'sub1.%s', 'type': 'CNAME'},
|
||||
]
|
||||
}
|
||||
|
||||
record_fixtures = {
|
||||
@@ -218,6 +222,10 @@ class TestCase(base.BaseTestCase):
|
||||
'SRV': [
|
||||
{'data': '0 5060 server1.example.org.', 'priority': 5},
|
||||
{'data': '1 5060 server2.example.org.', 'priority': 10},
|
||||
],
|
||||
'CNAME': [
|
||||
{'data': 'www.somedomain.org.'},
|
||||
{'data': 'www.someotherdomain.com.'},
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user