From d62ac1b4cd6583dfa4c36dad355e04df48fafd31 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 23 Jul 2024 10:28:41 +0200 Subject: [PATCH] test: fix broken dns TXT lookup test It sems the TXT entry for wikipedia.org changed which is causing the test to fail. Fix it by only checking for a partial match. In general it seems like a bad idea to rely on public domains not on our control for any of these tests but this is a bigger problem and I only want to get the test to pass for now. Signed-off-by: Paul Holzinger --- test/basic_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/basic_test.go b/test/basic_test.go index e51864f00..3c3887157 100644 --- a/test/basic_test.go +++ b/test/basic_test.go @@ -77,7 +77,7 @@ var _ = ginkgo.Describe("dns", func() { ginkgo.It("should resolve TXT for wikipedia.org", func() { out, err := sshExec("nslookup -query=txt wikipedia.org") gomega.Expect(err).ShouldNot(gomega.HaveOccurred()) - gomega.Expect(string(out)).To(gomega.ContainSubstring(`"v=spf1 -all"`)) + gomega.Expect(string(out)).To(gomega.ContainSubstring(`"v=spf1`)) }) ginkgo.It("should resolve gateway.containers.internal", func() {