diff --git a/rest/model/dns/record_test.go b/rest/model/dns/record_test.go index 9e4558e..e95acfd 100644 --- a/rest/model/dns/record_test.go +++ b/rest/model/dns/record_test.go @@ -20,6 +20,12 @@ var marshalRecordCases = []struct { []*Answer{NewCAAAnswer(0, "issue", "letsencrypt.org")}, []byte(`{"meta":{},"zone":"example.com","domain":"caa.example.com","type":"CAA","answers":[{"meta":{},"answer":["0","issue","letsencrypt.org"]}],"filters":[],"regions":{}}`), }, + { + "marshalCAARecord manual", + &Record{Zone: "example.com", Domain: "caa.example.com", Type: "CAA"}, + []*Answer{NewCAAAnswer(0, "issue", "letsencrypt.org")}, + []byte(`{"zone":"example.com","domain":"caa.example.com","type":"CAA","answers":[{"meta":{},"answer":["0","issue","letsencrypt.org"]}],"filters":null,"regions":null}`), + }, { "marshalURLFWDRecord", NewRecord("example.com", "fwd.example.com", "URLFWD", nil, nil),