@@ -1046,6 +1046,8 @@ func testTXTRegistryMissingRecordsWithPrefix(t *testing.T) {
1046
1046
newEndpointWithOwner ("txt.oldformat2.test-zone.example.org" , "\" heritage=external-dns,external-dns/owner=owner\" " , endpoint .RecordTypeTXT , "" ),
1047
1047
newEndpointWithOwner ("newformat.test-zone.example.org" , "foobar.nameserver.com" , endpoint .RecordTypeNS , "" ),
1048
1048
newEndpointWithOwner ("txt.ns-newformat.test-zone.example.org" , "\" heritage=external-dns,external-dns/owner=owner\" " , endpoint .RecordTypeTXT , "" ),
1049
+ newEndpointWithOwner ("oldformat3.test-zone.example.org" , "random" , endpoint .RecordTypeTXT , "" ),
1050
+ newEndpointWithOwner ("txt.oldformat3.test-zone.example.org" , "\" heritage=external-dns,external-dns/owner=owner\" " , endpoint .RecordTypeTXT , "" ),
1049
1051
newEndpointWithOwner ("txt.newformat.test-zone.example.org" , "\" heritage=external-dns,external-dns/owner=owner\" " , endpoint .RecordTypeTXT , "" ),
1050
1052
newEndpointWithOwner ("noheritage.test-zone.example.org" , "random" , endpoint .RecordTypeTXT , "" ),
1051
1053
newEndpointWithOwner ("oldformat-otherowner.test-zone.example.org" , "bar.loadbalancer.com" , endpoint .RecordTypeA , "" ),
@@ -1084,6 +1086,20 @@ func testTXTRegistryMissingRecordsWithPrefix(t *testing.T) {
1084
1086
},
1085
1087
},
1086
1088
},
1089
+ {
1090
+ DNSName : "oldformat3.test-zone.example.org" ,
1091
+ Targets : endpoint.Targets {"random" },
1092
+ RecordType : endpoint .RecordTypeTXT ,
1093
+ Labels : map [string ]string {
1094
+ endpoint .OwnerLabelKey : "owner" ,
1095
+ },
1096
+ ProviderSpecific : []endpoint.ProviderSpecificProperty {
1097
+ {
1098
+ Name : "txt/force-update" ,
1099
+ Value : "true" ,
1100
+ },
1101
+ },
1102
+ },
1087
1103
{
1088
1104
DNSName : "newformat.test-zone.example.org" ,
1089
1105
Targets : endpoint.Targets {"foobar.nameserver.com" },
@@ -1122,7 +1138,7 @@ func testTXTRegistryMissingRecordsWithPrefix(t *testing.T) {
1122
1138
},
1123
1139
}
1124
1140
1125
- r , _ := NewTXTRegistry (p , "txt." , "" , "owner" , time .Hour , "wc" , []string {endpoint .RecordTypeCNAME , endpoint .RecordTypeA , endpoint .RecordTypeNS }, []string {}, false , nil )
1141
+ r , _ := NewTXTRegistry (p , "txt." , "" , "owner" , time .Hour , "wc" , []string {endpoint .RecordTypeCNAME , endpoint .RecordTypeA , endpoint .RecordTypeNS , endpoint . RecordTypeTXT }, []string {}, false , nil )
1126
1142
records , _ := r .Records (ctx )
1127
1143
1128
1144
assert .True (t , testutils .SameEndpoints (records , expectedRecords ))
0 commit comments