Skip to content

Commit

Permalink
tests: match NS records too
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jul 5, 2023
1 parent 2ed0398 commit 6f19164
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ func TestMainInferredServer(t *testing.T) {
assert.Regexp(t, regexp.MustCompile(`example.com. .* A .*`), out.String())
assert.Regexp(t, regexp.MustCompile(`example.com. .* AAAA .*`), out.String())
assert.Regexp(t, regexp.MustCompile(`example.com. .* MX .*`), out.String())
assert.Regexp(t, regexp.MustCompile(`example.com. .* NS .*`), out.String())
}

func TestMainInvalidReverseQuery(t *testing.T) {
Expand Down Expand Up @@ -321,6 +322,7 @@ func TestMainTLS12(t *testing.T) {
assert.Regexp(t, regexp.MustCompile(`example.com. .* A .*`), out.String())
assert.Regexp(t, regexp.MustCompile(`example.com. .* AAAA .*`), out.String())
assert.Regexp(t, regexp.MustCompile(`example.com. .* MX .*`), out.String())
assert.Regexp(t, regexp.MustCompile(`example.com. .* NS .*`), out.String())
}

func TestMainNSID(t *testing.T) {
Expand Down

0 comments on commit 6f19164

Please sign in to comment.