From 268206be114c3d51748dfc53518b6fc877df9428 Mon Sep 17 00:00:00 2001 From: Chai Bot Date: Thu, 25 Jun 2026 07:41:58 +0000 Subject: [PATCH] unit tests: remove stale UserProvisionedDNS feature gate test The UserProvisionedDNS feature is no longer feature-gated after openshift/api#2775 removed the AWSClusterHostedDNSInstall gate. The validation code in featuregates.go has already been updated to stop checking for UserProvisionedDNS. Remove the now-stale test case "AWS UserProvisionedDNS is not allowed without Feature Gates" and the unused dns import it required. Co-Authored-By: Claude Opus 4.6 --- pkg/types/validation/featuregate_test.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pkg/types/validation/featuregate_test.go b/pkg/types/validation/featuregate_test.go index efffd9a3e4d..e46daa6c87c 100644 --- a/pkg/types/validation/featuregate_test.go +++ b/pkg/types/validation/featuregate_test.go @@ -9,7 +9,6 @@ import ( v1 "github.com/openshift/api/config/v1" "github.com/openshift/installer/pkg/types" "github.com/openshift/installer/pkg/types/azure" - "github.com/openshift/installer/pkg/types/dns" "github.com/openshift/installer/pkg/types/vsphere" ) @@ -19,16 +18,6 @@ func TestFeatureGates(t *testing.T) { installConfig *types.InstallConfig expected string }{ - { - name: "AWS UserProvisionedDNS is not allowed without Feature Gates", - installConfig: func() *types.InstallConfig { - c := validInstallConfig() - c.AWS = validAWSPlatform() - c.AWS.UserProvisionedDNS = dns.UserProvisionedDNSEnabled - return c - }(), - expected: `^platform.aws.userProvisionedDNS: Forbidden: this field is protected by the AWSClusterHostedDNSInstall feature gate which must be enabled through either the TechPreviewNoUpgrade or CustomNoUpgrade feature set$`, - }, { name: "AWS Sovereign Cloud is not allowed without Feature Gates", installConfig: func() *types.InstallConfig {