Skip to content

Commit bb75370

Browse files
author
wafuwafu13
committed
add server and norec case
1 parent 44ed807 commit bb75370

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

check-dns/lib/check_dns_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ func TestCheckDns(t *testing.T) {
5959
"status: NXDOMAIN",
6060
false,
6161
},
62+
{
63+
[]string{"-H", "jprs.co.jp", "-s", "202.11.16.49", "--norec"},
64+
checkers.OK,
65+
"status: NOERROR",
66+
false,
67+
},
68+
{
69+
[]string{"-H", "www.google.com", "-s", "202.11.16.49", "--norec"},
70+
checkers.CRITICAL,
71+
"status: REFUSED",
72+
false,
73+
},
6274
}
6375

6476
for i, tt := range tests {

0 commit comments

Comments
 (0)