From 0a0e617a20c33c7cee3f957de9919852cf319778 Mon Sep 17 00:00:00 2001 From: Thomas Limoncelli Date: Thu, 4 Dec 2025 16:20:39 -0500 Subject: [PATCH] fix CF tests --- integrationTest/helpers_integration_test.go | 2 +- integrationTest/integration_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/integrationTest/helpers_integration_test.go b/integrationTest/helpers_integration_test.go index 750efd077..328d9084e 100644 --- a/integrationTest/helpers_integration_test.go +++ b/integrationTest/helpers_integration_test.go @@ -340,7 +340,7 @@ func cfProxyCNAME(name, target, status string) *models.RecordConfig { } func cfSingleRedirectEnabled() bool { - return ((*enableCFRedirectMode) != true) + return (*enableCFRedirectMode) } func cfSingleRedirect(name string, code any, when, then string) *models.RecordConfig { diff --git a/integrationTest/integration_test.go b/integrationTest/integration_test.go index da6490b69..3a9992f7a 100644 --- a/integrationTest/integration_test.go +++ b/integrationTest/integration_test.go @@ -1180,6 +1180,7 @@ func makeTests() []*TestGroup { testgroup("CF_REDIRECT", only("CLOUDFLAREAPI"), + alltrue(cfSingleRedirectEnabled()), tc("redir", cfRedir("cnn.**current-domain**/*", "https://www.cnn.com/$1")), tc("change", cfRedir("cnn.**current-domain**/*", "https://change.cnn.com/$1")), tc("changelabel", cfRedir("cable.**current-domain**/*", "https://change.cnn.com/$1")),