@@ -109,23 +109,21 @@ func makeChanges(t *testing.T, prv providers.DNSServiceProvider, dc *models.Doma
109
109
dom , _ := dc .Copy ()
110
110
for _ , r := range tst .Records {
111
111
rc := models .RecordConfig (* r )
112
+
112
113
if strings .Contains (rc .GetTargetField (), "**current-domain**" ) {
113
- _ = rc .SetTarget (strings .Replace (rc .GetTargetField (), "**current-domain**" , domainName , 1 ) + "." )
114
- }
115
- if strings .Contains (rc .GetTargetField (), "**current-domain-no-trailing**" ) {
116
- _ = rc .SetTarget (strings .Replace (rc .GetTargetField (), "**current-domain-no-trailing**" , domainName , 1 ))
114
+ _ = rc .SetTarget (strings .Replace (rc .GetTargetField (), "**current-domain**" , domainName , 1 ))
117
115
}
118
116
if strings .Contains (rc .GetLabelFQDN (), "**current-domain**" ) {
119
117
rc .SetLabelFromFQDN (strings .Replace (rc .GetLabelFQDN (), "**current-domain**" , domainName , 1 ), domainName )
120
118
}
121
- // if providers.ProviderHasCapability(*providerToRun, providers.CanUseAzureAlias) {
119
+
122
120
if strings .Contains (rc .GetTargetField (), "**subscription-id**" ) {
123
121
_ = rc .SetTarget (strings .Replace (rc .GetTargetField (), "**subscription-id**" , origConfig ["SubscriptionID" ], 1 ))
124
122
}
125
123
if strings .Contains (rc .GetTargetField (), "**resource-group**" ) {
126
124
_ = rc .SetTarget (strings .Replace (rc .GetTargetField (), "**resource-group**" , origConfig ["ResourceGroup" ], 1 ))
127
125
}
128
- //}
126
+
129
127
dom .Records = append (dom .Records , & rc )
130
128
}
131
129
dom .Unmanaged = tst .Unmanaged
@@ -285,7 +283,7 @@ func (tc *TestCase) UnsafeIgnore() *TestCase {
285
283
286
284
func SetLabel (r * models.RecordConfig , label , domain string ) {
287
285
r .Name = label
288
- r .NameFQDN = dnsutil .AddOrigin (label , "**current-domain**" )
286
+ r .NameFQDN = dnsutil .AddOrigin (label , "**current-domain**. " )
289
287
}
290
288
291
289
func withMeta (record * models.RecordConfig , metadata map [string ]string ) * models.RecordConfig {
@@ -425,7 +423,7 @@ func makeRec(name, target, typ string) *models.RecordConfig {
425
423
Type : typ ,
426
424
TTL : 300 ,
427
425
}
428
- SetLabel (r , name , "**current-domain**" )
426
+ SetLabel (r , name , "**current-domain**. " )
429
427
r .MustSetTarget (target )
430
428
return r
431
429
}
0 commit comments