Skip to content

Commit

Permalink
fix(test): asserts spect.template label propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszmajsak committed Jan 9, 2025
1 parent fe08b87 commit 5f18be3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/authorino_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ var _ = Describe("Authorino controller", func() {
image := DefaultAuthorinoImage
existContainer := false

Expect(deployment.Spec.Replicas).Should(Equal(&replicas))
Expect(deployment.Labels).Should(Equal(map[string]string{"thisLabel": "willPropagate"}))
Expect(deployment.Spec.Replicas).To(Equal(&replicas))
Expect(deployment.Labels).To(Equal(map[string]string{"thisLabel": "willPropagate"}))
Expect(deployment.Spec.Template.Labels).Should(HaveKeyWithValue("thisLabel", "willPropagate"))
for _, container := range deployment.Spec.Template.Spec.Containers {
if container.Name == authorinoContainerName {
Expect(container.Image).Should(Equal(image))
Expand Down

0 comments on commit 5f18be3

Please sign in to comment.