Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
fformica committed Oct 9, 2024
1 parent ee0745b commit e78f700
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rest/model/dns/record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e78f700

Please sign in to comment.