Skip to content

Commit 45fdcf6

Browse files
perdasilvaopenshift-cherrypick-robot
authored andcommitted
remove csv labeler plugin timebomb test
Signed-off-by: perdasilva <[email protected]>
1 parent f0ce7f3 commit 45fdcf6

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

staging/operator-lifecycle-manager/pkg/controller/operators/olm/plugins/downstream_csv_namespace_labeler_plugin_test.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ package plugins
33
import (
44
"context"
55
"errors"
6-
"os/exec"
7-
"strings"
86
"testing"
97
"time"
108

@@ -298,21 +296,3 @@ func Test_SyncDoesNotLabelNamespacesWithCopiedCSVs(t *testing.T) {
298296
assert.NoError(t, err)
299297
assert.NotContains(t, ns.GetLabels(), NamespaceLabelSyncerLabelKey)
300298
}
301-
302-
func Test_OCPVersion(t *testing.T) {
303-
// This test is a maintenance alert that means the next OCP version is now in active development.
304-
// This plugin relies on a list of payload namespaces that comes from the cluster-policy-controller project
305-
// https://github.com/openshift/cluster-policy-controller/tree/master/pkg/psalabelsyncer
306-
// This list is dependent on the OCP version. Please update the dependency version to correspond to the one
307-
// vendored for the new OCP version (or contact the responsible team if it hasn't been updated yet).
308-
// Then, bump the OCP version in the `nextOCPUncutBranchName` constant below
309-
const nextOCPUncutBranchName = "release-4.14"
310-
const errorMessage = "[maintenance alert] new ocp version branch has been cut: please check comments in test for instructions"
311-
312-
// Get branches
313-
branches, err := exec.Command("git", "branch", "-a").Output()
314-
assert.NoError(t, err)
315-
316-
// check if the next uncut branch has been cut and fail if so
317-
assert.False(t, strings.Contains(string(branches), nextOCPUncutBranchName), errorMessage)
318-
}

0 commit comments

Comments
 (0)