Skip to content

Commit e65f97d

Browse files
Merge pull request #984 from jhadvig/OCPBUGS-55698
OCPBUGS-55698: Lift FeatureGate by bumping openshift/api
2 parents 183e7e5 + 2eab276 commit e65f97d

15 files changed

+16
-990
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/go-bindata/go-bindata v3.1.2+incompatible
1212
github.com/go-test/deep v1.0.5
1313
github.com/google/go-cmp v0.6.0
14-
github.com/openshift/api v0.0.0-20250402094343-3d7abe90f97e
14+
github.com/openshift/api v0.0.0-20250414093238-eccb393dd5ab
1515
github.com/openshift/build-machinery-go v0.0.0-20250102153059-e85a1a7ecb5c
1616
github.com/openshift/client-go v0.0.0-20250402181141-b3bad3b645f2
1717
github.com/openshift/library-go v0.0.0-20250402180609-ce2ba53fb2a4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ github.com/onsi/ginkgo/v2 v2.21.0 h1:7rg/4f3rB88pb5obDgNZrNHrQ4e6WpjonchcpuBRnZM
145145
github.com/onsi/ginkgo/v2 v2.21.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo=
146146
github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4=
147147
github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog=
148-
github.com/openshift/api v0.0.0-20250402094343-3d7abe90f97e h1:+nJrGJMAhBH8yhXe7u3z44IWA/kHtzgjmpOAry+aeb4=
149-
github.com/openshift/api v0.0.0-20250402094343-3d7abe90f97e/go.mod h1:yk60tHAmHhtVpJQo3TwVYq2zpuP70iJIFDCmeKMIzPw=
148+
github.com/openshift/api v0.0.0-20250414093238-eccb393dd5ab h1:q47vclYZRp/RtV9yk4SVh5APfg8QVzKiK55T9gxmx1Y=
149+
github.com/openshift/api v0.0.0-20250414093238-eccb393dd5ab/go.mod h1:yk60tHAmHhtVpJQo3TwVYq2zpuP70iJIFDCmeKMIzPw=
150150
github.com/openshift/build-machinery-go v0.0.0-20250102153059-e85a1a7ecb5c h1:6XcszPFZpan4qll5XbdLll7n1So3IsPn28aw2j1obMo=
151151
github.com/openshift/build-machinery-go v0.0.0-20250102153059-e85a1a7ecb5c/go.mod h1:8jcm8UPtg2mCAsxfqKil1xrmRMI3a+XU2TZ9fF8A7TE=
152152
github.com/openshift/client-go v0.0.0-20250402181141-b3bad3b645f2 h1:bPXR0R8zp1o12nSUphN26hSM+OKYq5pMorbDCpApzDQ=

test-e2e.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ echo "Running tests..."
1111
if [ "$OPENSHIFT_CI" = true ]; then
1212
KUBERNETES_CONFIG=${KUBECONFIG} go test -timeout 30m -v ./test/e2e/ 2>&1 | tee "$ARTIFACT_DIR/test.out"
1313
RESULT="${PIPESTATUS[0]}"
14-
# This is a hack for add prefix to the TestPluginsCSP* test names, so sippy can read them.
15-
# Remove once the Featuregate is lifted.
16-
sed -i 's/TestPluginsCSP/[OCPFeatureGate:ConsolePluginContentSecurityPolicy]&/g' "$ARTIFACT_DIR/test.out"
1714

1815
go-junit-report < "$ARTIFACT_DIR/test.out" > "$ARTIFACT_DIR/junit.xml"
1916
if [ "$RESULT" -ne 0 ]; then

test/e2e/plugins_test.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,6 @@ func cleanupTestCase(t *testing.T, client *framework.ClientSet, defaultPlugins,
133133
func TestPluginsCSPSinglePlugin(t *testing.T) {
134134
client, defaultPlugins := setupTestCase(t)
135135

136-
isFeatureGateSet := framework.IsFeatureGateSet(t, client)
137-
if !isFeatureGateSet {
138-
t.Skip("Feature gate not set, skipping test")
139-
}
140-
141136
defer cleanupTestCase(t, client, defaultPlugins, maps.Keys(pluginCSPSinglePlugin))
142137

143138
for name, csp := range pluginCSPSinglePlugin {
@@ -150,11 +145,6 @@ func TestPluginsCSPSinglePlugin(t *testing.T) {
150145
func TestPluginsCSPMultiplePluginsWithoutCSP(t *testing.T) {
151146
client, defaultPlugins := setupTestCase(t)
152147

153-
isFeatureGateSet := framework.IsFeatureGateSet(t, client)
154-
if !isFeatureGateSet {
155-
t.Skip("Feature gate not set, skipping test")
156-
}
157-
158148
defer cleanupTestCase(t, client, defaultPlugins, maps.Keys(pluginCSPMultiplePluginsWithoutCSP))
159149

160150
for name, csp := range pluginCSPMultiplePluginsWithoutCSP {
@@ -167,11 +157,6 @@ func TestPluginsCSPMultiplePluginsWithoutCSP(t *testing.T) {
167157
func TestPluginsCSPMultiplePlugins(t *testing.T) {
168158
client, defaultPlugins := setupTestCase(t)
169159

170-
isFeatureGateSet := framework.IsFeatureGateSet(t, client)
171-
if !isFeatureGateSet {
172-
t.Skip("Feature gate not set, skipping test")
173-
}
174-
175160
defer cleanupTestCase(t, client, defaultPlugins, maps.Keys(pluginCSPMultiplePlugins))
176161

177162
for name, csp := range pluginCSPMultiplePlugins {
@@ -184,11 +169,6 @@ func TestPluginsCSPMultiplePlugins(t *testing.T) {
184169
func TestPluginsCSPMultiplePluginsWithDuplicates(t *testing.T) {
185170
client, defaultPlugins := setupTestCase(t)
186171

187-
isFeatureGateSet := framework.IsFeatureGateSet(t, client)
188-
if !isFeatureGateSet {
189-
t.Skip("Feature gate not set, skipping test")
190-
}
191-
192172
defer cleanupTestCase(t, client, defaultPlugins, maps.Keys(pluginCSPMultiplePluginsWithDuplicates))
193173

194174
for name, csp := range pluginCSPMultiplePluginsWithDuplicates {
@@ -200,11 +180,6 @@ func TestPluginsCSPMultiplePluginsWithDuplicates(t *testing.T) {
200180
func TestPluginsCSPMultiplePluginsWithMutualExclusion(t *testing.T) {
201181
client, defaultPlugins := setupTestCase(t)
202182

203-
isFeatureGateSet := framework.IsFeatureGateSet(t, client)
204-
if !isFeatureGateSet {
205-
t.Skip("Feature gate not set, skipping test")
206-
}
207-
208183
defer cleanupTestCase(t, client, defaultPlugins, maps.Keys(pluginCSPMultiplePluginsWithMutualExclusion))
209184

210185
for name, csp := range pluginCSPMultiplePluginsWithMutualExclusion {

vendor/github.com/openshift/api/config/v1/types_infrastructure.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift/api/config/v1/zz_generated.featuregated-crd-manifests.yaml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift/api/console/v1/zz_generated.crd-manifests/90_consoleplugins-Default.crd.yaml

Lines changed: 0 additions & 232 deletions
This file was deleted.

0 commit comments

Comments
 (0)