Skip to content

Commit 2fb7ff3

Browse files
authored
Merge pull request #679 from ovh/dev/aamstutz/fix-domain-zone-record-ttl
fix: ovh_domain_zone_record: wrong assertion in test + 0 ttl not sent
2 parents 5cc3a6b + de4bc02 commit 2fb7ff3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ovh/resource_domain_zone_record.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type OvhDomainZoneRecord struct {
1818
Id int64 `json:"id,omitempty"`
1919
Zone string `json:"zone,omitempty"`
2020
Target string `json:"target"`
21-
Ttl int `json:"ttl,omitempty"`
21+
Ttl int `json:"ttl"`
2222
FieldType string `json:"fieldType,omitempty"`
2323
SubDomain string `json:"subDomain,omitempty"`
2424
}

ovh/resource_domain_zone_record_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func TestAccDomainZoneRecord_Basic(t *testing.T) {
108108
// provider shall send an error if the TTL is less than 60
109109
{
110110
Config: testAccCheckOvhDomainZoneRecordConfig_CNAME(zone, subdomain, "google.com.", 10),
111-
ExpectError: regexp.MustCompile(`must be greater`),
111+
ExpectError: regexp.MustCompile(`must be either equal to 0 or, greater than or equal to 60`),
112112
},
113113
{
114114
Config: testAccCheckOvhDomainZoneRecordConfig_A(zone, subdomain, "192.168.0.10", 3600),

0 commit comments

Comments
 (0)