You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openshift/tests-extension/.openshift-tests-extension/openshift_payload_olmv1.json
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -441,6 +441,16 @@
441
441
"lifecycle": "blocking",
442
442
"environmentSelector": {}
443
443
},
444
+
{
445
+
"name": "[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Serial] OLMv1 operator installation support for operators supporting both singleNamespace and ownNamespace watch modes with quay-operator should install cluster extensions successfully in both singleNamespace and ownNamespace watch modes",
446
+
"labels": {},
447
+
"resources": {
448
+
"isolation": {}
449
+
},
450
+
"source": "openshift:payload:olmv1",
451
+
"lifecycle": "blocking",
452
+
"environmentSelector": {}
453
+
},
444
454
{
445
455
"name": "[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:Disconnected][Serial] OLMv1 operator installation support for ownNamespace watch mode with an operator that does not support ownNamespace installation mode should fail to install a cluster extension successfully",
446
456
"originalName": "[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:Disconnected] OLMv1 operator installation support for ownNamespace watch mode with an operator that does not support ownNamespace installation mode should fail to install a cluster extension successfully",
Copy file name to clipboardExpand all lines: openshift/tests-extension/test/olmv1-singleownnamespace.go
+146Lines changed: 146 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -208,6 +208,152 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:D
208
208
})
209
209
})
210
210
211
+
var_=Describe("[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Serial] OLMv1 operator installation support for operators supporting both singleNamespace and ownNamespace watch modes with quay-operator", Ordered, Serial, func() {
212
+
var (
213
+
k8sClient client.Client
214
+
activeNamespacesmap[string]struct{}
215
+
)
216
+
217
+
BeforeEach(func() {
218
+
By("checking if OpenShift is available for tests")
219
+
if!env.Get().IsOpenShift {
220
+
Skip("Requires OpenShift for the tests")
221
+
}
222
+
helpers.RequireOLMv1CapabilityOnOpenshift()
223
+
k8sClient=env.Get().K8sClient
224
+
activeNamespaces=map[string]struct{}{}
225
+
})
226
+
227
+
AfterEach(func(ctxSpecContext) {
228
+
ifCurrentSpecReport().Failed() {
229
+
forns:=rangeactiveNamespaces {
230
+
helpers.DescribeAllClusterExtensions(ctx, ns)
231
+
}
232
+
}
233
+
})
234
+
235
+
It("should install cluster extensions successfully in both singleNamespace and ownNamespace watch modes",
Expect(k8sClient.Delete(ctx, crb, client.PropagationPolicy(deletePolicy))).To(Succeed(), "failed to delete ClusterRoleBinding %q", crbName)
347
+
Expect(k8sClient.Delete(ctx, sa, client.PropagationPolicy(deletePolicy))).To(Succeed(), "failed to delete ServiceAccount %q", saName)
348
+
349
+
ifwatchNSObj!=nil {
350
+
Expect(k8sClient.Delete(ctx, watchNSObj, client.PropagationPolicy(deletePolicy))).To(Succeed(), "failed to delete watch namespace %q", watchNamespace)
351
+
}
352
+
Expect(k8sClient.Delete(ctx, installNS, client.PropagationPolicy(deletePolicy))).To(Succeed(), "failed to delete install namespace %q", installNamespace)
353
+
}
354
+
})
355
+
})
356
+
211
357
var_=Describe("[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:Disconnected][Serial] OLMv1 operator installation support for ownNamespace watch mode with an operator that does not support ownNamespace installation mode", Ordered, Serial, func() {
0 commit comments