Skip to content

Commit d25a711

Browse files
Merge pull request #1507 from harishsurf/csv-e2e
Replace assertions for csv-e2e to use Gomega's matcher library
2 parents e7dea52 + e981903 commit d25a711

File tree

6 files changed

+421
-472
lines changed

6 files changed

+421
-472
lines changed

test/e2e/catalog_e2e_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ import (
1313
"github.com/blang/semver"
1414
. "github.com/onsi/ginkgo"
1515
. "github.com/onsi/gomega"
16-
"github.com/operator-framework/api/pkg/lib/version"
17-
"github.com/operator-framework/api/pkg/operators/v1alpha1"
1816
appsv1 "k8s.io/api/apps/v1"
1917
corev1 "k8s.io/api/core/v1"
2018
"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"
2119
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2220
"k8s.io/apimachinery/pkg/labels"
2321

22+
"github.com/operator-framework/api/pkg/lib/version"
23+
"github.com/operator-framework/api/pkg/operators/v1alpha1"
2424
"github.com/operator-framework/operator-lifecycle-manager/pkg/api/client/clientset/versioned"
2525
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry"
2626
"github.com/operator-framework/operator-lifecycle-manager/pkg/lib/operatorclient"
@@ -165,7 +165,7 @@ var _ = Describe("Catalog represents a store of bundles which OLM can use to ins
165165
_, err = crc.OperatorsV1alpha1().InstallPlans(testNamespace).Update(context.TODO(), fetchedInstallPlan, metav1.UpdateOptions{})
166166
Expect(err).ShouldNot(HaveOccurred())
167167

168-
_, err = awaitCSV(GinkgoT(), crc, testNamespace, mainCSV.GetName(), csvSucceededChecker)
168+
_, err = awaitCSV(crc, testNamespace, mainCSV.GetName(), csvSucceededChecker)
169169
Expect(err).ShouldNot(HaveOccurred())
170170

171171
// Update manifest
@@ -503,7 +503,7 @@ var _ = Describe("Catalog represents a store of bundles which OLM can use to ins
503503
Expect(err).ShouldNot(HaveOccurred())
504504

505505
// Wait for the replacement CSV to be installed
506-
_, err = awaitCSV(GinkgoT(), crc, testNamespace, replacementCSV.GetName(), csvSucceededChecker)
506+
_, err = awaitCSV(crc, testNamespace, replacementCSV.GetName(), csvSucceededChecker)
507507
Expect(err).ShouldNot(HaveOccurred())
508508
})
509509

0 commit comments

Comments
 (0)