dnsforward: imp tests

This commit is contained in:
Dimitry Kolyshev 2024-04-19 12:28:49 +02:00
parent ca252e8fa2
commit c610a6c886
1 changed files with 11 additions and 0 deletions

View File

@ -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,