Skip to content

Commit

Permalink
pkg/webhook: test Multi-Cluster Ingress
Browse files Browse the repository at this point in the history
In this commit we introduce unit tests for the `Validation Admission`. These
tests ensure correct behavior for various validation scenarios and improve coverage:

- Tests the behavior when decoding the request object fails, verifying
  that admission is denied with an appropriate error message.
- Validates that the webhook denies admission when encountering invalid values in the
  `MultiClusterIngress` spec, ensuring error messaging.
- Confirms that valid `MultiClusterIngress` objects are admitted without errors.
  • Loading branch information
mohamedawnallah committed Sep 11, 2024
1 parent 32c2ef7 commit 087ff43
Showing 1 changed file with 449 additions and 0 deletions.
Loading

0 comments on commit 087ff43

Please sign in to comment.