You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expect(err.Error()).To(Equal("error determining bundle channel properties for entity 'operatorhub/prometheus/0.14.0': property 'olm.channel' ('badChannelPropertiesStructure') could not be parsed: invalid character 'b' looking for beginning of value"))
241
237
})
@@ -269,6 +265,27 @@ var _ = Describe("BundleEntity", func() {
269
265
})
270
266
})
271
267
268
+
Describe("Replaces", func() {
269
+
It("should return the replaces property if present", func() {
@@ -296,4 +313,46 @@ var _ = Describe("BundleEntity", func() {
296
313
Expect(err.Error()).To(Equal("error determining bundle mediatype for entity 'operatorhub/prometheus/0.14.0': property 'olm.bundle.mediatype' ('badtype') could not be parsed: invalid character 'b' looking for beginning of value"))
297
314
})
298
315
})
316
+
317
+
// Increase test coverage
318
+
Describe("GVKRequired properties", func() {
319
+
It("should return the GVKRequired properties", func() {
320
+
gvk:= olmentity.GVKRequired{
321
+
Group: "foo.io",
322
+
Kind: "Foo",
323
+
Version: "v1",
324
+
}
325
+
Expect(gvk.AsGVK().Version).To(Equal("v1"))
326
+
Expect(gvk.AsGVK().Group).To(Equal("foo.io"))
327
+
Expect(gvk.AsGVK().Kind).To(Equal("Foo"))
328
+
})
329
+
It("should return the GVKRequired properties as a string", func() {
0 commit comments