Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ae24a55

Browse files
committedJan 2, 2022
Fix DoT and DoH integration tests (disable DNSSEC)
1 parent 3a42a76 commit ae24a55

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
 

‎pkg/doh/integration_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ import (
1313
"github.com/golang/mock/gomock"
1414
"github.com/miekg/dns"
1515
"github.com/qdm12/dns/internal/mockhelp"
16+
"github.com/qdm12/dns/pkg/dnssec"
1617
"github.com/stretchr/testify/assert"
1718
"github.com/stretchr/testify/require"
1819
)
1920

21+
func boolPtr(b bool) *bool { return &b }
22+
2023
func Test_Resolver(t *testing.T) {
2124
t.Parallel()
2225

@@ -221,6 +224,9 @@ func Test_Server_Mocks(t *testing.T) {
221224
Resolver: ResolverSettings{
222225
Metrics: metrics,
223226
},
227+
DNSSEC: dnssec.Settings{
228+
Enabled: boolPtr(false),
229+
},
224230
})
225231
require.NoError(t, err)
226232

‎pkg/dot/integration_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ import (
1212
"github.com/golang/mock/gomock"
1313
"github.com/miekg/dns"
1414
"github.com/qdm12/dns/internal/mockhelp"
15+
"github.com/qdm12/dns/pkg/dnssec"
1516
"github.com/stretchr/testify/assert"
1617
"github.com/stretchr/testify/require"
1718
)
1819

20+
func boolPtr(b bool) *bool { return &b }
21+
1922
func Test_Resolver(t *testing.T) {
2023
t.Parallel()
2124

@@ -201,6 +204,9 @@ func Test_Server_Mocks(t *testing.T) {
201204
Resolver: ResolverSettings{
202205
Metrics: metrics,
203206
},
207+
DNSSEC: dnssec.Settings{
208+
Enabled: boolPtr(false),
209+
},
204210
})
205211
require.NoError(t, err)
206212

0 commit comments

Comments
 (0)
Please sign in to comment.