@@ -109,7 +109,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
109
109
defer cleanupSource ()
110
110
111
111
// ensure the mock catalog exists and has been synced by the catalog operator
112
- catalogSource , err := fetchCatalogSourceOnStatus (crc , catalogSourceName , ns .GetName (), catalogSourceRegistryPodSynced )
112
+ catalogSource , err := fetchCatalogSourceOnStatus (crc , catalogSourceName , ns .GetName (), catalogSourceRegistryPodSynced () )
113
113
Expect (err ).ShouldNot (HaveOccurred ())
114
114
115
115
// get catalog operator deployment
@@ -180,7 +180,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
180
180
defer cleanup ()
181
181
182
182
// Attempt to get the catalog source before creating install plan
183
- _ , err := fetchCatalogSourceOnStatus (crc , cs .GetName (), cs .GetNamespace (), catalogSourceRegistryPodSynced )
183
+ _ , err := fetchCatalogSourceOnStatus (crc , cs .GetName (), cs .GetNamespace (), catalogSourceRegistryPodSynced () )
184
184
Expect (err ).ToNot (HaveOccurred ())
185
185
186
186
subscriptionSpec := & v1alpha1.SubscriptionSpec {
@@ -196,7 +196,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
196
196
subscriptionName := genName ("sub-" )
197
197
createSubscriptionForCatalogWithSpec (GinkgoT (), crc , ns .GetName (), subscriptionName , subscriptionSpec )
198
198
199
- subscription , err := fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionHasInstallPlanChecker )
199
+ subscription , err := fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionHasInstallPlanChecker () )
200
200
Expect (err ).ShouldNot (HaveOccurred ())
201
201
Expect (subscription ).ToNot (BeNil ())
202
202
@@ -232,10 +232,10 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
232
232
updateInternalCatalog (GinkgoT (), c , crc , cs .GetName (), cs .GetNamespace (), []apiextensions.CustomResourceDefinition {mainCRD }, []v1alpha1.ClusterServiceVersion {mainCSV , replacementCSV }, mainManifests )
233
233
234
234
// Get updated catalogsource
235
- fetchedUpdatedCatalog , err := fetchCatalogSourceOnStatus (crc , cs .GetName (), cs .GetNamespace (), catalogSourceRegistryPodSynced )
235
+ fetchedUpdatedCatalog , err := fetchCatalogSourceOnStatus (crc , cs .GetName (), cs .GetNamespace (), catalogSourceRegistryPodSynced () )
236
236
Expect (err ).ShouldNot (HaveOccurred ())
237
237
238
- subscription , err = fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionStateUpgradePendingChecker )
238
+ subscription , err = fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionStateUpgradePendingChecker () )
239
239
Expect (err ).ShouldNot (HaveOccurred ())
240
240
Expect (subscription ).ShouldNot (BeNil ())
241
241
@@ -298,7 +298,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
298
298
createInternalCatalogSource (c , crc , mainCatalogName , ns .GetName (), mainManifests , nil , []v1alpha1.ClusterServiceVersion {mainCSV })
299
299
300
300
// Attempt to get the catalog source before creating install plan
301
- fetchedInitialCatalog , err := fetchCatalogSourceOnStatus (crc , mainCatalogName , ns .GetName (), catalogSourceRegistryPodSynced )
301
+ fetchedInitialCatalog , err := fetchCatalogSourceOnStatus (crc , mainCatalogName , ns .GetName (), catalogSourceRegistryPodSynced () )
302
302
Expect (err ).ShouldNot (HaveOccurred ())
303
303
304
304
// Get initial configmap
@@ -361,7 +361,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
361
361
subscriptionName := genName ("sub-" )
362
362
createSubscriptionForCatalog (crc , ns .GetName (), subscriptionName , fetchedUpdatedCatalog .GetName (), mainPackageName , stableChannel , "" , v1alpha1 .ApprovalAutomatic )
363
363
364
- subscription , err := fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionStateAtLatestChecker )
364
+ subscription , err := fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionStateAtLatestChecker () )
365
365
Expect (err ).ShouldNot (HaveOccurred ())
366
366
Expect (subscription ).ShouldNot (BeNil ())
367
367
_ , err = fetchCSV (crc , subscription .Status .CurrentCSV , ns .GetName (), buildCSVConditionChecker (v1alpha1 .CSVPhaseSucceeded ))
@@ -431,7 +431,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
431
431
_ , cleanupSource := createInternalCatalogSource (c , crc , mainCatalogName , ns .GetName (), mainManifests , nil , []v1alpha1.ClusterServiceVersion {mainCSV })
432
432
433
433
// Attempt to get the catalog source before creating install plan
434
- fetchedInitialCatalog , err := fetchCatalogSourceOnStatus (crc , mainCatalogName , ns .GetName (), catalogSourceRegistryPodSynced )
434
+ fetchedInitialCatalog , err := fetchCatalogSourceOnStatus (crc , mainCatalogName , ns .GetName (), catalogSourceRegistryPodSynced () )
435
435
Expect (err ).ShouldNot (HaveOccurred ())
436
436
// Get initial configmap
437
437
configMap , err := c .KubernetesInterface ().CoreV1 ().ConfigMaps (ns .GetName ()).Get (context .Background (), fetchedInitialCatalog .Spec .ConfigMap , metav1.GetOptions {})
@@ -452,7 +452,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
452
452
subscriptionName := genName ("sub-" )
453
453
createSubscriptionForCatalog (crc , ns .GetName (), subscriptionName , mainCatalogName , mainPackageName , stableChannel , "" , v1alpha1 .ApprovalAutomatic )
454
454
455
- subscription , err := fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionStateAtLatestChecker )
455
+ subscription , err := fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionStateAtLatestChecker () )
456
456
Expect (err ).ShouldNot (HaveOccurred ())
457
457
Expect (subscription ).ToNot (BeNil ())
458
458
_ , err = fetchCSV (crc , subscription .Status .CurrentCSV , ns .GetName (), buildCSVConditionChecker (v1alpha1 .CSVPhaseSucceeded ))
@@ -540,9 +540,9 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
540
540
createInternalCatalogSource (c , crc , replacementSourceName , ns .GetName (), append (replacementManifests , dependentManifests ... ), []apiextensions.CustomResourceDefinition {dependentCRD }, []v1alpha1.ClusterServiceVersion {replacementCSV , mainCSV , dependentCSV })
541
541
542
542
// Wait for ConfigMap CatalogSources to be ready
543
- mainSource , err := fetchCatalogSourceOnStatus (crc , mainSourceName , ns .GetName (), catalogSourceRegistryPodSynced )
543
+ mainSource , err := fetchCatalogSourceOnStatus (crc , mainSourceName , ns .GetName (), catalogSourceRegistryPodSynced () )
544
544
Expect (err ).ShouldNot (HaveOccurred ())
545
- replacementSource , err := fetchCatalogSourceOnStatus (crc , replacementSourceName , ns .GetName (), catalogSourceRegistryPodSynced )
545
+ replacementSource , err := fetchCatalogSourceOnStatus (crc , replacementSourceName , ns .GetName (), catalogSourceRegistryPodSynced () )
546
546
Expect (err ).ShouldNot (HaveOccurred ())
547
547
548
548
// Replicate catalog pods with no OwnerReferences
@@ -580,7 +580,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
580
580
}()
581
581
582
582
// Wait for the CatalogSource to be ready
583
- _ , err = fetchCatalogSourceOnStatus (crc , addressSource .GetName (), addressSource .GetNamespace (), catalogSourceRegistryPodSynced )
583
+ _ , err = fetchCatalogSourceOnStatus (crc , addressSource .GetName (), addressSource .GetNamespace (), catalogSourceRegistryPodSynced () )
584
584
Expect (err ).ToNot (HaveOccurred (), "catalog source did not become ready" )
585
585
586
586
// Delete CatalogSources
@@ -594,7 +594,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
594
594
cleanupSubscription := createSubscriptionForCatalog (crc , ns .GetName (), subscriptionName , addressSourceName , mainPackageName , stableChannel , "" , v1alpha1 .ApprovalAutomatic )
595
595
defer cleanupSubscription ()
596
596
597
- subscription , err := fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionStateAtLatestChecker )
597
+ subscription , err := fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionStateAtLatestChecker () )
598
598
Expect (err ).ShouldNot (HaveOccurred ())
599
599
Expect (subscription ).ShouldNot (BeNil ())
600
600
_ , err = fetchCSV (crc , subscription .Status .CurrentCSV , ns .GetName (), csvSucceededChecker )
@@ -783,7 +783,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
783
783
Expect (err ).ShouldNot (HaveOccurred ())
784
784
785
785
By ("Wait for the CatalogSource to be ready" )
786
- source , err = fetchCatalogSourceOnStatus (crc , source .GetName (), source .GetNamespace (), catalogSourceRegistryPodSynced )
786
+ source , err = fetchCatalogSourceOnStatus (crc , source .GetName (), source .GetNamespace (), catalogSourceRegistryPodSynced () )
787
787
Expect (err ).ToNot (HaveOccurred (), "catalog source did not become ready" )
788
788
789
789
// the gRPC endpoints are not exposed from the pod, and there's no simple way to get at them -
@@ -923,7 +923,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
923
923
defer cleanupSubscription ()
924
924
925
925
// Wait for the Subscription to succeed
926
- subscription , err := fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionStateAtLatestChecker )
926
+ subscription , err := fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionStateAtLatestChecker () )
927
927
Expect (err ).ShouldNot (HaveOccurred ())
928
928
Expect (subscription ).ShouldNot (BeNil ())
929
929
@@ -1088,7 +1088,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
1088
1088
}()
1089
1089
1090
1090
By ("waiting for the CatalogSource to be ready" )
1091
- _ , err = fetchCatalogSourceOnStatus (crc , source .GetName (), source .GetNamespace (), catalogSourceRegistryPodSynced )
1091
+ _ , err = fetchCatalogSourceOnStatus (crc , source .GetName (), source .GetNamespace (), catalogSourceRegistryPodSynced () )
1092
1092
Expect (err ).ToNot (HaveOccurred (), "catalog source did not become ready" )
1093
1093
1094
1094
By ("creating a Subscription for busybox" )
@@ -1097,7 +1097,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
1097
1097
defer cleanupSubscription ()
1098
1098
1099
1099
By ("waiting for the Subscription to succeed" )
1100
- subscription , err := fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionStateAtLatestChecker )
1100
+ subscription , err := fetchSubscription (crc , ns .GetName (), subscriptionName , subscriptionStateAtLatestChecker () )
1101
1101
Expect (err ).ShouldNot (HaveOccurred ())
1102
1102
Expect (subscription ).ShouldNot (BeNil ())
1103
1103
Expect (subscription .Status .InstalledCSV ).To (Equal ("busybox.v1.0.0" ))
@@ -1114,7 +1114,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
1114
1114
Expect (dependencySubscriptionName ).ToNot (BeEmpty ())
1115
1115
1116
1116
By ("waiting for the Subscription to succeed" )
1117
- subscription , err = fetchSubscription (crc , ns .GetName (), dependencySubscriptionName , subscriptionStateAtLatestChecker )
1117
+ subscription , err = fetchSubscription (crc , ns .GetName (), dependencySubscriptionName , subscriptionStateAtLatestChecker () )
1118
1118
Expect (err ).ShouldNot (HaveOccurred ())
1119
1119
Expect (subscription ).ShouldNot (BeNil ())
1120
1120
Expect (subscription .Status .InstalledCSV ).To (Equal ("busybox-dependency.v1.0.0" ))
@@ -1132,7 +1132,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
1132
1132
}).Should (Succeed ())
1133
1133
1134
1134
By ("waiting for the CatalogSource to be ready" )
1135
- _ , err = fetchCatalogSourceOnStatus (crc , source .GetName (), source .GetNamespace (), catalogSourceRegistryPodSynced )
1135
+ _ , err = fetchCatalogSourceOnStatus (crc , source .GetName (), source .GetNamespace (), catalogSourceRegistryPodSynced () )
1136
1136
Expect (err ).ToNot (HaveOccurred (), "catalog source did not become ready" )
1137
1137
1138
1138
By ("waiting for the busybox v2 Subscription to succeed" )
0 commit comments