Skip to content

Commit 7603eaa

Browse files
authored
Add label creation checking in the e2e (#374)
Signed-off-by: Todd Short <[email protected]>
1 parent aa4c239 commit 7603eaa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/e2e/unpack_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ var _ = Describe("ClusterCatalog Unpacking", func() {
7676
g.Expect(cond.Reason).To(Equal(catalogd.ReasonUnpackSuccessful))
7777
}).Should(Succeed())
7878

79+
By("Checking that it has an appropriate name label")
80+
Expect(catalog.ObjectMeta.Labels).To(Not(BeNil()))
81+
Expect(catalog.ObjectMeta.Labels).To(Not(BeEmpty()))
82+
Expect(catalog.ObjectMeta.Labels).To(HaveKeyWithValue("olm.operatorframework.io/metadata.name", catalogName))
83+
7984
By("Making sure the catalog content is available via the http server")
8085
actualFBC, err := ReadTestCatalogServerContents(ctx, catalog, c, kubeClient)
8186
Expect(err).To(Not(HaveOccurred()))

0 commit comments

Comments
 (0)