Skip to content

Commit 234e02f

Browse files
committed
UPSTREAM: <carry>: support disconnected
1 parent 25e39ce commit 234e02f

File tree

2 files changed

+27
-15
lines changed

2 files changed

+27
-15
lines changed

openshift/tests-extension/.openshift-tests-extension/openshift_payload_olmv1.json

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,11 @@
495495
"environmentSelector": {}
496496
},
497497
{
498-
"name": "[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should have a working validating webhook",
499-
"labels": {},
498+
"name": "[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Serial] OLMv1 operator with webhooks should have a working validating webhook",
499+
"originalName": "[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should have a working validating webhook",
500+
"labels": {
501+
"original-name:[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should have a working validating webhook": {}
502+
},
500503
"resources": {
501504
"isolation": {}
502505
},
@@ -505,8 +508,11 @@
505508
"environmentSelector": {}
506509
},
507510
{
508-
"name": "[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should have a working mutating webhook",
509-
"labels": {},
511+
"name": "[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Serial] OLMv1 operator with webhooks should have a working mutating webhook",
512+
"originalName": "[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should have a working mutating webhook",
513+
"labels": {
514+
"original-name:[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should have a working mutating webhook": {}
515+
},
510516
"resources": {
511517
"isolation": {}
512518
},
@@ -515,8 +521,11 @@
515521
"environmentSelector": {}
516522
},
517523
{
518-
"name": "[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should have a working conversion webhook",
519-
"labels": {},
524+
"name": "[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Serial] OLMv1 operator with webhooks should have a working conversion webhook",
525+
"originalName": "[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should have a working conversion webhook",
526+
"labels": {
527+
"original-name:[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should have a working conversion webhook": {}
528+
},
520529
"resources": {
521530
"isolation": {}
522531
},
@@ -525,8 +534,11 @@
525534
"environmentSelector": {}
526535
},
527536
{
528-
"name": "[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should be tolerant to tls secret deletion",
529-
"labels": {},
537+
"name": "[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Serial] OLMv1 operator with webhooks should be tolerant to tls secret deletion",
538+
"originalName": "[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should be tolerant to tls secret deletion",
539+
"labels": {
540+
"original-name:[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should be tolerant to tls secret deletion": {}
541+
},
530542
"resources": {
531543
"isolation": {}
532544
},

openshift/tests-extension/test/webhooks.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const (
3535
webhookServiceCert = "webhook-operator-controller-manager-service-cert"
3636
)
3737

38-
var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks",
38+
var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Serial] OLMv1 operator with webhooks",
3939
Ordered, Serial, func() {
4040
var (
4141
k8sClient client.Client
@@ -63,7 +63,7 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServi
6363
err = k8sClient.Get(ctx, client.ObjectKey{Name: webhookCatalogName}, catalog)
6464
if apierrors.IsNotFound(err) {
6565
By(fmt.Sprintf("creating the webhook-operator catalog with name %s", webhookCatalogName))
66-
catalog = helpers.NewClusterCatalog(webhookCatalogName, "quay.io/operator-framework/webhook-operator-index:0.0.4")
66+
catalog = helpers.NewClusterCatalog(webhookCatalogName, "quay.io/olmtest/webhook-operator-index:v0.0.5")
6767
err = k8sClient.Create(ctx, catalog)
6868
Expect(err).ToNot(HaveOccurred())
6969

@@ -95,7 +95,7 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServi
9595
}
9696
})
9797

98-
It("should have a working validating webhook", func(ctx SpecContext) {
98+
It("should have a working validating webhook", Label("original-name:[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should have a working validating webhook"), func(ctx SpecContext) {
9999
By("creating a webhook test resource that will be rejected by the validating webhook")
100100
Eventually(func() error {
101101
name := fmt.Sprintf("validating-webhook-test-%s", rand.String(5))
@@ -121,7 +121,7 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServi
121121
}).WithTimeout(2 * time.Minute).WithPolling(5 * time.Second).Should(Succeed())
122122
})
123123

124-
It("should have a working mutating webhook", func(ctx SpecContext) {
124+
It("should have a working mutating webhook", Label("original-name:[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should have a working mutating webhook"), func(ctx SpecContext) {
125125
By("creating a valid webhook")
126126
mutatingWebhookResourceName := "mutating-webhook-test"
127127
resource := newWebhookTest(mutatingWebhookResourceName, webhookOperatorInstallNamespace, true)
@@ -143,7 +143,7 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServi
143143
}))
144144
})
145145

146-
It("should have a working conversion webhook", func(ctx SpecContext) {
146+
It("should have a working conversion webhook", Label("original-name:[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should have a working conversion webhook"), func(ctx SpecContext) {
147147
By("creating a conversion webhook test resource")
148148
conversionWebhookResourceName := "conversion-webhook-test"
149149
resourceV1 := newWebhookTest(conversionWebhookResourceName, webhookOperatorInstallNamespace, true)
@@ -167,7 +167,7 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServi
167167
}))
168168
})
169169

170-
It("should be tolerant to tls secret deletion", func(ctx SpecContext) {
170+
It("should be tolerant to tls secret deletion", Label("original-name:[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks should be tolerant to tls secret deletion"), func(ctx SpecContext) {
171171
certificateSecretName := webhookServiceCert
172172
By("ensuring secret exists before deletion attempt")
173173
Eventually(func(g Gomega) {
@@ -286,7 +286,7 @@ func setupWebhookOperator(ctx SpecContext, k8sClient client.Client, webhookOpera
286286
helpers.ExpectClusterRoleBindingExists(ctx, operatorClusterRoleBindingName)
287287

288288
ceName := webhookOperatorInstallNamespace
289-
ce := helpers.NewClusterExtensionObject("webhook-operator", "0.0.4", ceName, saName, webhookOperatorInstallNamespace)
289+
ce := helpers.NewClusterExtensionObject("webhook-operator", "0.0.5", ceName, saName, webhookOperatorInstallNamespace)
290290
ce.Spec.Source.Catalog.Selector = &metav1.LabelSelector{
291291
MatchLabels: map[string]string{
292292
"olm.operatorframework.io/metadata.name": webhookCatalogName,

0 commit comments

Comments
 (0)