Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dimityrmirchev committed Sep 4, 2024
1 parent dee2532 commit b3c9fd8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/admission/validator/credentialsbinding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,12 @@ var _ = Describe("CredentialsBinding validator", func() {
err := credentialsBindingValidator.Validate(ctx, credentialsBinding, nil)
Expect(err).NotTo(HaveOccurred())
})

It("should return nil when the CredentialsBinding did not change", func() {
old := credentialsBinding.DeepCopy()

err := credentialsBindingValidator.Validate(ctx, credentialsBinding, old)
Expect(err).NotTo(HaveOccurred())
})
})
})

0 comments on commit b3c9fd8

Please sign in to comment.