test: add fuzzers for egctl.translateGatewayAPIToIR#5430
Merged
arkodg merged 2 commits intoenvoyproxy:mainfrom Mar 11, 2025
Merged
test: add fuzzers for egctl.translateGatewayAPIToIR#5430arkodg merged 2 commits intoenvoyproxy:mainfrom
egctl.translateGatewayAPIToIR#5430arkodg merged 2 commits intoenvoyproxy:mainfrom
Conversation
egctl. translateGatewayAPIToIR
egctl. translateGatewayAPIToIRegctl.translateGatewayAPIToIR
Contributor
|
@sudiptob2 you'll need to run to default some of the nil values (those defaults live in the CRD/OpenAPI definition), else this fuzzer will easily crash. These defaults are either set by the kube api server or by the file loader/provider |
f8039bb to
d41073d
Compare
d41073d to
6b5949b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5430 +/- ##
==========================================
- Coverage 65.30% 65.25% -0.05%
==========================================
Files 213 213
Lines 33915 33915
==========================================
- Hits 22147 22131 -16
- Misses 10438 10449 +11
- Partials 1330 1335 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
nareddyt
reviewed
Mar 10, 2025
test/fuzz/ir_fuzz_test.go
Outdated
Contributor
There was a problem hiding this comment.
I see LoadResourcesFromYAMLBytes actually adds a default GatewayClass if it doesn't exist, so this check may not be needed.
test/fuzz/ir_fuzz_test.go
Outdated
Contributor
There was a problem hiding this comment.
Can you also have go-fuzz-headers generate the 2nd bool value, instead of hardcoding it to true? Would be good to test this function under both cases.
6b5949b to
9e5a890
Compare
nareddyt
approved these changes
Mar 10, 2025
9e5a890 to
b5135b6
Compare
Signed-off-by: sudipto baral <[email protected]>
Signed-off-by: sudipto baral <[email protected]>
b5135b6 to
a06bd97
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Implement fuzzers to target translateGatewayAPIToIR.
Which issue(s) this PR fixes:
Fixes #5428
Release Notes: No