@@ -24,8 +24,8 @@ var _ = Describe("CRD Versions", func() {
24
24
By ("This test proves that OLM is able to handle v1beta1 CRDs successfully. Creating v1 CRDs has more " +
25
25
"restrictions around the schema. v1beta1 validation schemas are not necessarily valid in v1. " +
26
26
"OLM should support both v1beta1 and v1 CRDs" )
27
- c := newKubeClient (GinkgoT () )
28
- crc := newCRClient (GinkgoT () )
27
+ c := newKubeClient ()
28
+ crc := newCRClient ()
29
29
30
30
mainPackageName := genName ("nginx-update2-" )
31
31
mainPackageStable := fmt .Sprintf ("%s-stable" , mainPackageName )
@@ -80,14 +80,14 @@ var _ = Describe("CRD Versions", func() {
80
80
defer cleanupMainCatalogSource ()
81
81
82
82
// Attempt to get the catalog source before creating install plan
83
- _ , err := fetchCatalogSource ( GinkgoT (), crc , mainCatalogName , testNamespace , catalogSourceRegistryPodSynced )
83
+ _ , err := fetchCatalogSourceOnStatus ( crc , mainCatalogName , testNamespace , catalogSourceRegistryPodSynced )
84
84
Expect (err ).ToNot (HaveOccurred ())
85
85
86
86
subscriptionName := genName ("sub-nginx-update2-" )
87
- subscriptionCleanup := createSubscriptionForCatalog (GinkgoT (), crc , testNamespace , subscriptionName , mainCatalogName , mainPackageName , stableChannel , "" , operatorsv1alpha1 .ApprovalAutomatic )
87
+ subscriptionCleanup := createSubscriptionForCatalog (crc , testNamespace , subscriptionName , mainCatalogName , mainPackageName , stableChannel , "" , operatorsv1alpha1 .ApprovalAutomatic )
88
88
defer subscriptionCleanup ()
89
89
90
- subscription , err := fetchSubscription (GinkgoT (), crc , testNamespace , subscriptionName , subscriptionHasInstallPlanChecker )
90
+ subscription , err := fetchSubscription (crc , testNamespace , subscriptionName , subscriptionHasInstallPlanChecker )
91
91
Expect (err ).ToNot (HaveOccurred ())
92
92
Expect (subscription ).ToNot (Equal (nil ))
93
93
Expect (subscription .Status .InstallPlanRef ).ToNot (Equal (nil ))
@@ -103,8 +103,8 @@ var _ = Describe("CRD Versions", func() {
103
103
})
104
104
It ("creates v1 CRDs with a v1 schema successfully" , func () {
105
105
By ("v1 crds with a valid openapiv3 schema should be created successfully by OLM" )
106
- c := newKubeClient (GinkgoT () )
107
- crc := newCRClient (GinkgoT () )
106
+ c := newKubeClient ()
107
+ crc := newCRClient ()
108
108
109
109
mainPackageName := genName ("nginx-update2-" )
110
110
mainPackageStable := fmt .Sprintf ("%s-stable" , mainPackageName )
@@ -152,14 +152,14 @@ var _ = Describe("CRD Versions", func() {
152
152
defer cleanupMainCatalogSource ()
153
153
154
154
// Attempt to get the catalog source before creating install plan
155
- _ , err := fetchCatalogSource ( GinkgoT (), crc , mainCatalogName , testNamespace , catalogSourceRegistryPodSynced )
155
+ _ , err := fetchCatalogSourceOnStatus ( crc , mainCatalogName , testNamespace , catalogSourceRegistryPodSynced )
156
156
Expect (err ).ToNot (HaveOccurred ())
157
157
158
158
subscriptionName := genName ("sub-nginx-update2-" )
159
- subscriptionCleanup := createSubscriptionForCatalog (GinkgoT (), crc , testNamespace , subscriptionName , mainCatalogName , mainPackageName , stableChannel , "" , operatorsv1alpha1 .ApprovalAutomatic )
159
+ subscriptionCleanup := createSubscriptionForCatalog (crc , testNamespace , subscriptionName , mainCatalogName , mainPackageName , stableChannel , "" , operatorsv1alpha1 .ApprovalAutomatic )
160
160
defer subscriptionCleanup ()
161
161
162
- subscription , err := fetchSubscription (GinkgoT (), crc , testNamespace , subscriptionName , subscriptionHasInstallPlanChecker )
162
+ subscription , err := fetchSubscription (crc , testNamespace , subscriptionName , subscriptionHasInstallPlanChecker )
163
163
Expect (err ).ToNot (HaveOccurred ())
164
164
Expect (subscription ).ToNot (Equal (nil ))
165
165
Expect (subscription .Status .InstallPlanRef ).ToNot (Equal (nil ))
@@ -173,7 +173,7 @@ var _ = Describe("CRD Versions", func() {
173
173
GinkgoT ().Logf ("Install plan %s fetched with status %s" , fetchedInstallPlan .GetName (), fetchedInstallPlan .Status .Phase )
174
174
Expect (fetchedInstallPlan .Status .Phase ).To (Equal (operatorsv1alpha1 .InstallPlanPhaseComplete ))
175
175
})
176
- AfterEach (func () { cleaner .NotifyTestComplete (GinkgoT (), true ) }, float64 (10 ))
176
+ AfterEach (func () { cleaner .NotifyTestComplete (true ) }, float64 (10 ))
177
177
})
178
178
179
179
func checkCRD (v1crd * apiextensionsv1.CustomResourceDefinition ) bool {
0 commit comments