From 2b763a5b0921468b433e981e1683f5927f432be1 Mon Sep 17 00:00:00 2001 From: Brandon Ewing Date: Wed, 18 Dec 2024 15:36:40 -0600 Subject: [PATCH] Update recursion test to reflect change in behavior After changing recursion parameter, an additional layer of redirection is needed in the test to trigger the failure mode. Signed-off-by: Brandon Ewing --- controllers/utils/dns_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/utils/dns_test.go b/controllers/utils/dns_test.go index 0e0d8734db..af57e84594 100644 --- a/controllers/utils/dns_test.go +++ b/controllers/utils/dns_test.go @@ -115,7 +115,8 @@ func TestValidDigButMaxRecursion(t *testing.T) { } NewFakeDNS(testSettings). AddCNAMERecord("foo.cloud.example.com.", "bar.cloud.example.com."). - AddARecord("bar.cloud.example.com.", net.IPv4(10, 1, 0, 3)). + AddCNAMERecord("bar.cloud.example.com.", "baz.cloud.example.com."). + AddARecord("baz.cloud.example.com.", net.IPv4(10, 1, 0, 3)). Start(). RunTestFunc(func() { result, err := Dig("foo.cloud.example.com", 1, testServer)