@@ -66,22 +66,24 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
6666 var (
6767 ctx context.Context
6868 k8sClient client.Client
69- ocVersion string
7069 )
7170 BeforeEach (func () {
7271 fixture .EnsureSequentialCleanSlate ()
7372 k8sClient , _ = utils .GetE2ETestKubeClient ()
7473 ctx = context .Background ()
75- ocVersion = getOCPVersion ()
76- Expect (ocVersion ).ToNot (BeEmpty ())
77- fixture .SkipIfMinOCPVersion (ocVersion , fixture .OCP4_22 )
7874 })
7975
8076 It ("validates that GitOpsService can take in custom resource constraints" , func () {
8177 csv := clusterserviceversion .Get (ctx , k8sClient )
8278 Expect (csv ).ToNot (BeNil ())
8379 defer func () { Expect (fixture .RemoveDynamicPluginFromCSV (ctx , k8sClient )).To (Succeed ()) }()
8480
81+ ocVersion := getOCPVersion ()
82+ Expect (ocVersion ).ToNot (BeEmpty ())
83+ if strings .Contains (ocVersion , "4.15." ) {
84+ Skip ("skipping this test as OCP version is 4.15" )
85+ return
86+ }
8587 addDynamicPluginEnv (csv , ocVersion )
8688
8789 depl := & appsv1.Deployment {ObjectMeta : metav1.ObjectMeta {Name : "gitops-plugin" , Namespace : "openshift-gitops" }}
@@ -180,6 +182,12 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
180182 Expect (csv ).ToNot (BeNil ())
181183 defer func () { Expect (fixture .RemoveDynamicPluginFromCSV (ctx , k8sClient )).To (Succeed ()) }()
182184
185+ ocVersion := getOCPVersion ()
186+ Expect (ocVersion ).ToNot (BeEmpty ())
187+ if strings .Contains (ocVersion , "4.15." ) {
188+ Skip ("skipping this test as OCP version is 4.15" )
189+ return
190+ }
183191 addDynamicPluginEnv (csv , ocVersion )
184192
185193 depl := & appsv1.Deployment {ObjectMeta : metav1.ObjectMeta {Name : "gitops-plugin" , Namespace : "openshift-gitops" }}
@@ -245,6 +253,12 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
245253 Expect (csv ).ToNot (BeNil ())
246254 defer func () { Expect (fixture .RemoveDynamicPluginFromCSV (ctx , k8sClient )).To (Succeed ()) }()
247255
256+ ocVersion := getOCPVersion ()
257+ Expect (ocVersion ).ToNot (BeEmpty ())
258+ if strings .Contains (ocVersion , "4.15." ) {
259+ Skip ("skipping this test as OCP version is 4.15" )
260+ return
261+ }
248262 addDynamicPluginEnv (csv , ocVersion )
249263
250264 depl := & appsv1.Deployment {ObjectMeta : metav1.ObjectMeta {Name : "gitops-plugin" , Namespace : "openshift-gitops" }}
0 commit comments