-
Notifications
You must be signed in to change notification settings - Fork 1.1k
test: Add HTTP-CEL chainsaw test with test server #12692
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
base: main
Are you sure you want to change the base?
Conversation
@JimBugwadia PTAL. Thanks! |
Hey, how does your PR relate to #10544? If this PR relates to #12690 (which you mentioned in the readme) some clarification:
You can checkout https://github.com/kyverno/kyverno/tree/main/test/conformance/chainsaw/validating-policies/context/api-call as reference. |
@fjogeleit Thank you for the feedback on the HTTP-CEL tests! I've addressed all your concerns:
Tested the implementation by adapting to use httpbin.org pattern endpoints similar to the reference implementation I've manually tested these changes and confirmed the HTTP CEL functionality works correctly with various scenarios (GET/POST, headers handling, response validation). The test passes successfully with the updated ValidatingPolicy format. |
44c1e22
to
b76c66d
Compare
Add chainsaw conformance test for HTTP-CEL in ValidatingPolicy validation with a dedicated test-server deployment. The test covers HTTP GET and POST methods, header validation, and response body handling. Fixes kyverno#12690 Signed-off-by: Yogi Suthari <yrsuthari@gmail.com>
b76c66d
to
be784c9
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #12692 +/- ##
=======================================
Coverage 15.18% 15.18%
=======================================
Files 966 966
Lines 103434 103434
=======================================
Hits 15703 15703
Misses 86000 86000
Partials 1731 1731 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@fjogeleit Looking for an update and review on this PR. I am hoping this can be merged! |
Add chainsaw conformance test for HTTP-CEL in ClusterPolicy validation with a dedicated test-server deployment. The test covers HTTP GET and POST methods, header validation, and response body handling.
Explanation
This PR adds a new chainsaw conformance test for the HTTP-CEL feature in ClusterPolicy validation. The test validates that HTTP-CEL expressions can properly perform GET and POST requests, validate headers, and process response bodies through a dedicated test server deployment.
Related issue
Closes #10544
Milestone of this PR
Documentation (required for features)
My PR contains new or altered behavior to Kyverno.
What type of PR is this
/kind test
Proposed Changes
This PR adds a comprehensive test for HTTP-CEL functionality in ClusterPolicy validations. It includes:
Proof Manifests
Checklist