Skip to content

Commit

Permalink
dnsforward: imp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizzick committed Apr 19, 2024
1 parent ca252e8 commit c610a6c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/dnsforward/beforerequest_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ func TestServer_HandleBefore(t *testing.T) {
blockedHosts: []string{},
wantRCode: dns.RcodeSuccess,
wantRCodeUDP: dns.RcodeSuccess,
}, {
want: assert.Empty,
clientSrvName: "%" + "." + tlsServerName,
name: "invalid_client_id",
host: testFQDN,
wantErrMsgUDP: "",
allowedClients: []string{},
disallowedClients: []string{},
blockedHosts: []string{},
wantRCode: dns.RcodeServerFailure,
wantRCodeUDP: dns.RcodeSuccess,
}, {
want: assert.NotEmpty,
clientSrvName: clientID + "." + tlsServerName,
Expand Down

0 comments on commit c610a6c

Please sign in to comment.