@@ -238,6 +238,7 @@ func TestDesignateRecords(t *testing.T) {
238
238
rs14ID , _ := client .CreateRecordSet (ctx , zone1ID , recordsets.CreateOpts {
239
239
Name : "ftp.example.com." ,
240
240
Type : endpoint .RecordTypeA ,
241
+ TTL : 120 ,
241
242
Records : []string {"10.1.1.2" },
242
243
})
243
244
@@ -281,6 +282,7 @@ func TestDesignateRecords(t *testing.T) {
281
282
DNSName : "ftp.example.com" ,
282
283
RecordType : endpoint .RecordTypeA ,
283
284
Targets : endpoint.Targets {"10.1.1.2" },
285
+ RecordTTL : 120 ,
284
286
Labels : map [string ]string {
285
287
designateRecordSetID : rs14ID ,
286
288
designateZoneID : zone1ID ,
321
323
continue out
322
324
}
323
325
}
324
- t .Errorf ("unexpected endpoint %s/%s -> %s" , ep .DNSName , ep .RecordType , ep .Targets )
326
+ t .Errorf ("unexpected endpoint %s/%s (TTL: %d) -> %s" , ep .DNSName , ep .RecordType , ep . RecordTTL , ep .Targets )
325
327
}
326
328
if len (expected ) != 0 {
327
329
t .Errorf ("not all expected endpoints were returned. Remained: %v" , expected )
@@ -353,7 +355,7 @@ func testDesignateCreateRecords(t *testing.T, client *fakeDesignateClient) []*re
353
355
})
354
356
355
357
if err != nil {
356
- t .Fatal ("failed to prefil records" )
358
+ t .Fatal ("failed to prefill records" )
357
359
}
358
360
359
361
endpoints := []* endpoint.Endpoint {
@@ -373,6 +375,7 @@ func testDesignateCreateRecords(t *testing.T, client *fakeDesignateClient) []*re
373
375
DNSName : "ftp.example.com" ,
374
376
RecordType : endpoint .RecordTypeA ,
375
377
Targets : endpoint.Targets {"10.1.1.2" },
378
+ RecordTTL : 120 ,
376
379
Labels : map [string ]string {},
377
380
},
378
381
{
@@ -411,6 +414,7 @@ func testDesignateCreateRecords(t *testing.T, client *fakeDesignateClient) []*re
411
414
Name : "ftp.example.com." ,
412
415
Type : endpoint .RecordTypeA ,
413
416
Records : []string {"10.1.1.2" },
417
+ TTL : 120 ,
414
418
ZoneID : "zone-1" ,
415
419
},
416
420
{
@@ -473,6 +477,7 @@ func testDesignateUpdateRecords(t *testing.T, client *fakeDesignateClient) []*re
473
477
DNSName : "ftp.example.com" ,
474
478
RecordType : endpoint .RecordTypeA ,
475
479
Targets : endpoint.Targets {"10.1.1.2" },
480
+ RecordTTL : 120 ,
476
481
Labels : map [string ]string {
477
482
designateZoneID : "zone-1" ,
478
483
designateRecordSetID : expected [2 ].ID ,
@@ -495,6 +500,7 @@ func testDesignateUpdateRecords(t *testing.T, client *fakeDesignateClient) []*re
495
500
DNSName : "ftp.example.com" ,
496
501
RecordType : endpoint .RecordTypeA ,
497
502
Targets : endpoint.Targets {"10.3.3.1" },
503
+ RecordTTL : 60 ,
498
504
Labels : map [string ]string {
499
505
designateZoneID : "zone-1" ,
500
506
designateRecordSetID : expected [2 ].ID ,
0 commit comments