dnsforward: imp tests
This commit is contained in:
parent
ca252e8fa2
commit
c610a6c886
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue