Skip to content

Commit

Permalink
Fix DoT and DoH integration tests (disable DNSSEC)
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 2, 2022
1 parent 3a42a76 commit ae24a55
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/doh/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ import (
"github.com/golang/mock/gomock"
"github.com/miekg/dns"
"github.com/qdm12/dns/internal/mockhelp"
"github.com/qdm12/dns/pkg/dnssec"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func boolPtr(b bool) *bool { return &b }

func Test_Resolver(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -221,6 +224,9 @@ func Test_Server_Mocks(t *testing.T) {
Resolver: ResolverSettings{
Metrics: metrics,
},
DNSSEC: dnssec.Settings{
Enabled: boolPtr(false),
},
})
require.NoError(t, err)

Expand Down
6 changes: 6 additions & 0 deletions pkg/dot/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ import (
"github.com/golang/mock/gomock"
"github.com/miekg/dns"
"github.com/qdm12/dns/internal/mockhelp"
"github.com/qdm12/dns/pkg/dnssec"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func boolPtr(b bool) *bool { return &b }

func Test_Resolver(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -201,6 +204,9 @@ func Test_Server_Mocks(t *testing.T) {
Resolver: ResolverSettings{
Metrics: metrics,
},
DNSSEC: dnssec.Settings{
Enabled: boolPtr(false),
},
})
require.NoError(t, err)

Expand Down

0 comments on commit ae24a55

Please sign in to comment.