@@ -33,7 +33,7 @@ var _ = Describe("BundleEntity", func() {
33
33
bundleEntity := olmentity .NewBundleEntity (entity )
34
34
packageName , err := bundleEntity .PackageName ()
35
35
Expect (packageName ).To (Equal ("" ))
36
- Expect (err .Error ()).To (Equal ("error determining package for entity 'operatorhub/prometheus/0.14.0': property 'olm.package' not found" ))
36
+ Expect (err .Error ()).To (Equal ("error determining package for entity 'operatorhub/prometheus/0.14.0': required property 'olm.package' not found" ))
37
37
})
38
38
It ("should return error if the property is malformed" , func () {
39
39
entity := input .NewEntity ("operatorhub/prometheus/0.14.0" , map [string ]string {
@@ -61,7 +61,7 @@ var _ = Describe("BundleEntity", func() {
61
61
bundleEntity := olmentity .NewBundleEntity (entity )
62
62
version , err := bundleEntity .Version ()
63
63
Expect (version ).To (BeNil ())
64
- Expect (err .Error ()).To (Equal ("error determining package for entity 'operatorhub/prometheus/0.14.0': property 'olm.package' not found" ))
64
+ Expect (err .Error ()).To (Equal ("error determining package for entity 'operatorhub/prometheus/0.14.0': required property 'olm.package' not found" ))
65
65
})
66
66
It ("should return error if the property is malformed" , func () {
67
67
entity := input .NewEntity ("operatorhub/prometheus/0.14.0" , map [string ]string {
@@ -101,7 +101,7 @@ var _ = Describe("BundleEntity", func() {
101
101
bundleEntity := olmentity .NewBundleEntity (entity )
102
102
providedGvks , err := bundleEntity .ProvidedGVKs ()
103
103
Expect (providedGvks ).To (BeNil ())
104
- Expect (err . Error ()) .To (Equal ( "error determining bundle provided gvks for entity 'operatorhub/prometheus/0.14.0': property 'olm.gvk' not found" ))
104
+ Expect (err ) .To (BeNil ( ))
105
105
})
106
106
It ("should return error if the property is malformed" , func () {
107
107
entity := input .NewEntity ("operatorhub/prometheus/0.14.0" , map [string ]string {
@@ -132,7 +132,7 @@ var _ = Describe("BundleEntity", func() {
132
132
bundleEntity := olmentity .NewBundleEntity (entity )
133
133
requiredGvks , err := bundleEntity .RequiredGVKs ()
134
134
Expect (requiredGvks ).To (BeNil ())
135
- Expect (err . Error ()) .To (Equal ( "error determining bundle required gvks for entity 'operatorhub/prometheus/0.14.0': property 'olm.gvk.required' not found" ))
135
+ Expect (err ) .To (BeNil ( ))
136
136
})
137
137
It ("should return error if the property is malformed" , func () {
138
138
entity := input .NewEntity ("operatorhub/prometheus/0.14.0" , map [string ]string {
@@ -163,7 +163,7 @@ var _ = Describe("BundleEntity", func() {
163
163
bundleEntity := olmentity .NewBundleEntity (entity )
164
164
requiredPackages , err := bundleEntity .RequiredPackages ()
165
165
Expect (requiredPackages ).To (BeNil ())
166
- Expect (err . Error ()) .To (Equal ( "error determining bundle required packages for entity 'operatorhub/prometheus/0.14.0': property 'olm.package.required' not found" ))
166
+ Expect (err ) .To (BeNil ( ))
167
167
})
168
168
It ("should return error if the property is malformed" , func () {
169
169
entity := input .NewEntity ("operatorhub/prometheus/0.14.0" , map [string ]string {
@@ -191,7 +191,7 @@ var _ = Describe("BundleEntity", func() {
191
191
bundleEntity := olmentity .NewBundleEntity (entity )
192
192
channelName , err := bundleEntity .ChannelName ()
193
193
Expect (channelName ).To (BeEmpty ())
194
- Expect (err .Error ()).To (Equal ("error determining bundle channel properties for entity 'operatorhub/prometheus/0.14.0': property 'olm.channel' not found" ))
194
+ Expect (err .Error ()).To (Equal ("error determining bundle channel properties for entity 'operatorhub/prometheus/0.14.0': required property 'olm.channel' not found" ))
195
195
})
196
196
It ("should return error if the property is malformed" , func () {
197
197
entity := input .NewEntity ("operatorhub/prometheus/0.14.0" , map [string ]string {
@@ -227,7 +227,7 @@ var _ = Describe("BundleEntity", func() {
227
227
bundleEntity := olmentity .NewBundleEntity (entity )
228
228
channelProperties , err := bundleEntity .ChannelProperties ()
229
229
Expect (channelProperties ).To (BeNil ())
230
- Expect (err .Error ()).To (Equal ("error determining bundle channel properties for entity 'operatorhub/prometheus/0.14.0': property 'olm.channel' not found" ))
230
+ Expect (err .Error ()).To (Equal ("error determining bundle channel properties for entity 'operatorhub/prometheus/0.14.0': required property 'olm.channel' not found" ))
231
231
})
232
232
It ("should return error if the property is malformed" , func () {
233
233
entity := input .NewEntity ("operatorhub/prometheus/0.14.0" , map [string ]string {
@@ -255,7 +255,7 @@ var _ = Describe("BundleEntity", func() {
255
255
bundleEntity := olmentity .NewBundleEntity (entity )
256
256
bundlePath , err := bundleEntity .BundlePath ()
257
257
Expect (bundlePath ).To (BeEmpty ())
258
- Expect (err .Error ()).To (Equal ("error determining bundle path for entity 'operatorhub/prometheus/0.14.0': property 'olm.bundle.path' not found" ))
258
+ Expect (err .Error ()).To (Equal ("error determining bundle path for entity 'operatorhub/prometheus/0.14.0': required property 'olm.bundle.path' not found" ))
259
259
})
260
260
It ("should return error if the property is malformed" , func () {
261
261
entity := input .NewEntity ("operatorhub/prometheus/0.14.0" , map [string ]string {
0 commit comments