Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/webhook: unit test Multi-Cluster Ingress #5518

Merged

Commits on Sep 14, 2024

  1. pkg/webhook: test Multi-Cluster Ingress

    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.
    
    Signed-off-by: Mohamed Awnallah <[email protected]>
    mohamedawnallah committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    d2259d5 View commit details
    Browse the repository at this point in the history