@@ -238,6 +238,7 @@ func TestDesignateRecords(t *testing.T) {
238238 rs14ID , _ := client .CreateRecordSet (ctx , zone1ID , recordsets.CreateOpts {
239239 Name : "ftp.example.com." ,
240240 Type : endpoint .RecordTypeA ,
241+ TTL : 120 ,
241242 Records : []string {"10.1.1.2" },
242243 })
243244
@@ -281,6 +282,7 @@ func TestDesignateRecords(t *testing.T) {
281282 DNSName : "ftp.example.com" ,
282283 RecordType : endpoint .RecordTypeA ,
283284 Targets : endpoint.Targets {"10.1.1.2" },
285+ RecordTTL : 120 ,
284286 Labels : map [string ]string {
285287 designateRecordSetID : rs14ID ,
286288 designateZoneID : zone1ID ,
321323 continue out
322324 }
323325 }
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 )
325327 }
326328 if len (expected ) != 0 {
327329 t .Errorf ("not all expected endpoints were returned. Remained: %v" , expected )
@@ -353,7 +355,7 @@ func testDesignateCreateRecords(t *testing.T, client *fakeDesignateClient) []*re
353355 })
354356
355357 if err != nil {
356- t .Fatal ("failed to prefil records" )
358+ t .Fatal ("failed to prefill records" )
357359 }
358360
359361 endpoints := []* endpoint.Endpoint {
@@ -373,6 +375,7 @@ func testDesignateCreateRecords(t *testing.T, client *fakeDesignateClient) []*re
373375 DNSName : "ftp.example.com" ,
374376 RecordType : endpoint .RecordTypeA ,
375377 Targets : endpoint.Targets {"10.1.1.2" },
378+ RecordTTL : 120 ,
376379 Labels : map [string ]string {},
377380 },
378381 {
@@ -411,6 +414,7 @@ func testDesignateCreateRecords(t *testing.T, client *fakeDesignateClient) []*re
411414 Name : "ftp.example.com." ,
412415 Type : endpoint .RecordTypeA ,
413416 Records : []string {"10.1.1.2" },
417+ TTL : 120 ,
414418 ZoneID : "zone-1" ,
415419 },
416420 {
@@ -473,6 +477,7 @@ func testDesignateUpdateRecords(t *testing.T, client *fakeDesignateClient) []*re
473477 DNSName : "ftp.example.com" ,
474478 RecordType : endpoint .RecordTypeA ,
475479 Targets : endpoint.Targets {"10.1.1.2" },
480+ RecordTTL : 120 ,
476481 Labels : map [string ]string {
477482 designateZoneID : "zone-1" ,
478483 designateRecordSetID : expected [2 ].ID ,
@@ -495,6 +500,7 @@ func testDesignateUpdateRecords(t *testing.T, client *fakeDesignateClient) []*re
495500 DNSName : "ftp.example.com" ,
496501 RecordType : endpoint .RecordTypeA ,
497502 Targets : endpoint.Targets {"10.3.3.1" },
503+ RecordTTL : 60 ,
498504 Labels : map [string ]string {
499505 designateZoneID : "zone-1" ,
500506 designateRecordSetID : expected [2 ].ID ,
0 commit comments