Skip to content

Commit 2eab276

Browse files
committed
Remove FeatureGate check in e2e tests
1 parent 5feaebf commit 2eab276

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

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 {

0 commit comments

Comments
 (0)