From c1ecde90d6bd68ef7c34266d5ddd7cec4b0311bf Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Sun, 2 Jan 2022 14:28:52 +0000 Subject: [PATCH] Fix DoT and DoH integration tests (disable DNSSEC) --- pkg/doh/integration_test.go | 6 ++++++ pkg/dot/integration_test.go | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/pkg/doh/integration_test.go b/pkg/doh/integration_test.go index 0bd50f5f..675d05e1 100644 --- a/pkg/doh/integration_test.go +++ b/pkg/doh/integration_test.go @@ -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() @@ -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) diff --git a/pkg/dot/integration_test.go b/pkg/dot/integration_test.go index 0bdbb850..14b7e3e8 100644 --- a/pkg/dot/integration_test.go +++ b/pkg/dot/integration_test.go @@ -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() @@ -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)