Skip to content

Commit 131fee6

Browse files
author
Triona Doyle
committed
add skip for 1-050 > 4.20
Signed-off-by: Triona Doyle <bot@example.com>
1 parent 2f69a04 commit 131fee6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

test/openshift/e2e/ginkgo/parallel/1-050_validate_sso_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,16 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
6262
By("creating simple namespace-scoped Argo CD instance")
6363
ocVersion := getOCPVersion()
6464
Expect(ocVersion).ToNot(BeEmpty())
65+
66+
// Standard version check
6567
if ocVersion < "4.20" {
6668
Skip("skipping this test as OCP version is less than 4.20")
6769
return
6870
}
6971

70-
// also skip for CI
71-
if strings.Contains(ocVersion, ".ci") {
72-
Skip("skipping this test in CI because OIDC is not enabled by default")
72+
// skip for CI environments if they are newer than 4.20.
73+
if strings.Contains(ocVersion, ".ci") && !strings.HasPrefix(ocVersion, "4.20") {
74+
Skip("skipping this test on CI clusters > 4.20 ")
7375
return
7476
}
7577

0 commit comments

Comments
 (0)