Skip to content

Commit

Permalink
Add label creation checking in the e2e (#374)
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Short <[email protected]>
  • Loading branch information
tmshort authored Sep 5, 2024
1 parent aa4c239 commit 7603eaa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e/unpack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ var _ = Describe("ClusterCatalog Unpacking", func() {
g.Expect(cond.Reason).To(Equal(catalogd.ReasonUnpackSuccessful))
}).Should(Succeed())

By("Checking that it has an appropriate name label")
Expect(catalog.ObjectMeta.Labels).To(Not(BeNil()))
Expect(catalog.ObjectMeta.Labels).To(Not(BeEmpty()))
Expect(catalog.ObjectMeta.Labels).To(HaveKeyWithValue("olm.operatorframework.io/metadata.name", catalogName))

By("Making sure the catalog content is available via the http server")
actualFBC, err := ReadTestCatalogServerContents(ctx, catalog, c, kubeClient)
Expect(err).To(Not(HaveOccurred()))
Expand Down

0 comments on commit 7603eaa

Please sign in to comment.