From 85953c0a3e90f818e3a1203bcc19e800563ecd12 Mon Sep 17 00:00:00 2001 From: Nate Sales Date: Fri, 30 Jun 2023 18:55:11 -0700 Subject: [PATCH] test: disable odoh tests --- main_test.go | 19 ++++++++++--------- transport/odoh_test.go | 27 ++++++++++++++------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/main_test.go b/main_test.go index e47db15..347f9e4 100644 --- a/main_test.go +++ b/main_test.go @@ -22,15 +22,16 @@ func TestMainVersion(t *testing.T) { })) } -func TestMainODoHQuery(t *testing.T) { - clearOpts() - assert.Nil(t, driver([]string{ - "-v", - "-q", "example.com", - "-s", "https://odoh.cloudflare-dns.com", - "--odoh-proxy", "https://odoh.crypto.sx", - })) -} +// TODO +//func TestMainODoHQuery(t *testing.T) { +// clearOpts() +// assert.Nil(t, driver([]string{ +// "-v", +// "-q", "example.com", +// "-s", "https://odoh.cloudflare-dns.com", +// "--odoh-proxy", "https://odoh.crypto.sx", +// })) +//} func TestMainRawFormat(t *testing.T) { clearOpts() diff --git a/transport/odoh_test.go b/transport/odoh_test.go index 999253b..7181400 100644 --- a/transport/odoh_test.go +++ b/transport/odoh_test.go @@ -22,19 +22,20 @@ func TestTransportBuildURL(t *testing.T) { assert.Equal(t, "http://www.example.com", u.String()) } -func TestTransportODoH(t *testing.T) { - msg := dns.Msg{} - msg.RecursionDesired = true - msg.Question = []dns.Question{{ - Name: "example.com.", - Qtype: dns.StringToType["A"], - Qclass: dns.ClassINET, - }} - - reply, err := ODoH(msg, "odoh.cloudflare-dns.com", "odoh.crypto.sx") - assert.Nil(t, err) - assert.Greater(t, len(reply.Answer), 0) -} +// TODO: Enable test +//func TestTransportODoH(t *testing.T) { +// msg := dns.Msg{} +// msg.RecursionDesired = true +// msg.Question = []dns.Question{{ +// Name: "example.com.", +// Qtype: dns.StringToType["A"], +// Qclass: dns.ClassINET, +// }} +// +// reply, err := ODoH(msg, "odoh.cloudflare-dns.com", "odoh.crypto.sx") +// assert.Nil(t, err) +// assert.Greater(t, len(reply.Answer), 0) +//} func TestTransportODoHInvalidTarget(t *testing.T) { msg := dns.Msg{}