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
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -430,10 +430,17 @@
430
430
},
431
431
{
432
432
"name": "[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:Disconnected][Serial] OLMv1 operator installation support for ownNamespace watch mode with quay-operator should install a cluster extension successfully",
433
-
"originalName": "[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:Disconnected] OLMv1 operator installation support for ownNamespace watch mode with quay-operator should install a cluster extension successfully",
434
-
"labels": {
435
-
"original-name:[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:Disconnected] OLMv1 operator installation support for ownNamespace watch mode with quay-operator should install a cluster extension successfully": {}
433
+
"labels": {},
434
+
"resources": {
435
+
"isolation": {}
436
436
},
437
+
"source": "openshift:payload:olmv1",
438
+
"lifecycle": "blocking",
439
+
"environmentSelector": {}
440
+
},
441
+
{
442
+
"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",
Copy file name to clipboardExpand all lines: openshift/tests-extension/test/olmv1-singleownnamespace.go
+146-1Lines changed: 146 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,6 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:D
161
161
})
162
162
163
163
It("should install a cluster extension successfully",
164
-
Label("original-name:[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:Disconnected] OLMv1 operator installation support for ownNamespace watch mode with quay-operator should install a cluster extension successfully"),
165
164
func(ctxSpecContext) {
166
165
By("creating ServiceAccount")
167
166
sa:=helpers.NewServiceAccount(saName, namespace)
@@ -208,6 +207,152 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:D
208
207
})
209
208
})
210
209
210
+
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() {
211
+
var (
212
+
k8sClient client.Client
213
+
activeNamespacesmap[string]struct{}
214
+
)
215
+
216
+
BeforeEach(func() {
217
+
By("checking if OpenShift is available for tests")
218
+
if!env.Get().IsOpenShift {
219
+
Skip("Requires OpenShift for the tests")
220
+
}
221
+
helpers.RequireOLMv1CapabilityOnOpenshift()
222
+
k8sClient=env.Get().K8sClient
223
+
activeNamespaces=map[string]struct{}{}
224
+
})
225
+
226
+
AfterEach(func(ctxSpecContext) {
227
+
ifCurrentSpecReport().Failed() {
228
+
forns:=rangeactiveNamespaces {
229
+
helpers.DescribeAllClusterExtensions(ctx, ns)
230
+
}
231
+
}
232
+
})
233
+
234
+
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)
346
+
Expect(k8sClient.Delete(ctx, sa, client.PropagationPolicy(deletePolicy))).To(Succeed(), "failed to delete ServiceAccount %q", saName)
347
+
348
+
ifwatchNSObj!=nil {
349
+
Expect(k8sClient.Delete(ctx, watchNSObj, client.PropagationPolicy(deletePolicy))).To(Succeed(), "failed to delete watch namespace %q", watchNamespace)
350
+
}
351
+
Expect(k8sClient.Delete(ctx, installNS, client.PropagationPolicy(deletePolicy))).To(Succeed(), "failed to delete install namespace %q", installNamespace)
352
+
}
353
+
})
354
+
})
355
+
211
356
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