Skip to content

Commit 129e33e

Browse files
committed
Update unit test.
1 parent b5bcf4f commit 129e33e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pkg/types/validation/featuregate_test.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,11 @@ func TestFeatureGates(t *testing.T) {
7171
name: "vSphere hosts is allowed with Feature Gates enabled",
7272
installConfig: func() *types.InstallConfig {
7373
c := validInstallConfig()
74-
c.FeatureSet = v1.TechPreviewNoUpgrade
75-
c.VSphere = validVSpherePlatform()
76-
c.VSphere.Hosts = []*vsphere.Host{{Role: "test"}}
77-
return c
78-
}(),
79-
},
80-
{
81-
name: "vSphere hosts is not allowed without Feature Gates",
82-
installConfig: func() *types.InstallConfig {
83-
c := validInstallConfig()
74+
c.FeatureSet = v1.Default
8475
c.VSphere = validVSpherePlatform()
8576
c.VSphere.Hosts = []*vsphere.Host{{Role: "test"}}
8677
return c
8778
}(),
88-
expected: `^platform.vsphere.hosts: Forbidden: this field is protected by the VSphereStaticIPs feature gate which must be enabled through either the TechPreviewNoUpgrade or CustomNoUpgrade feature set$`,
8979
},
9080
{
9181
name: "vSphere hosts is allowed with custom Feature Gates",

0 commit comments

Comments
 (0)