Skip to content

Conversation

SteNicholas
Copy link
Member

Adds unit tests to validate the webhook rest endpoint and make sure it returns the expected responses, status codes etc.

The brief change log

  • Introduces AdmissionHandlerTest to adds the test cases testHandleIllegalRequest, testHandleValidateRequestWithoutContent and testHandleValidateRequestWithAdmissionReview for the validation of the webhook rest endpoint.

@SteNicholas
Copy link
Member Author

@gyfora @wangyang0918 @tweise , could you please help to review this pull request?

@gyfora
Copy link
Contributor

gyfora commented Mar 8, 2022

Thanks a lot @SteNicholas , I will review this later today :)

@SteNicholas SteNicholas requested a review from gyfora March 8, 2022 11:09
@SteNicholas
Copy link
Member Author

@gyfora, thanks for detailed review. I have addressed the above comments. Please help to take a look.

@gyfora gyfora merged commit 9eec279 into apache:main Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants