cuisongliu / automq-operator

8 stars 1 forks source link

feat(main): add test webhooks #56

Closed cuisongliu closed 2 days ago

cuisongliu commented 3 days ago

This pull request introduces a new test case to the api/v1beta1/webhook_suite_test.go file. The test case verifies that the Controller.Replicas field is immutable by attempting to update it and checking for the appropriate error message.

Testing enhancements:

codecov[bot] commented 3 days ago

Codecov Report

Attention: Patch coverage is 76.66667% with 7 lines in your changes missing coverage. Please review.

Project coverage is 30.48%. Comparing base (b65beac) to head (d582a29). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
e2e/utils.go 76.66% 5 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #56 +/- ## ========================================== + Coverage 27.74% 30.48% +2.74% ========================================== Files 4 4 Lines 310 351 +41 ========================================== + Hits 86 107 +21 - Misses 203 224 +21 + Partials 21 20 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.