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 02dd62e commit c1ecde9
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 c1ecde9

Please sign in to comment.