-
Notifications
You must be signed in to change notification settings - Fork 40.5k
KEP-4222: Add tests for CBOR encoder handling of duplicate field names/tags. #123626
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
KEP-4222: Add tests for CBOR encoder handling of duplicate field names/tags. #123626
Conversation
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/encode_test.go
Show resolved
Hide resolved
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/encode_test.go
Show resolved
Hide resolved
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/encode_test.go
Show resolved
Hide resolved
b958283
to
f7567fc
Compare
Added parallel test cases for the JSON serializer as the CBOR behavior is also based on the behavior of
|
🤯 |
/retest-required |
/assign @deads2k |
/lgtm |
LGTM label has been added. Git tree hash: 9229a4db4496fae369c46604eecfda4734204c80
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benluddy, deads2k The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
f7567fc
to
592043c
Compare
592043c
to
e8c0c24
Compare
e8c0c24
to
8df914a
Compare
/lgtm |
LGTM label has been added. Git tree hash: 20a30ecf6866c2d2126fcbc81f8ba1f11a185c8c
|
What type of PR is this?
/kind cleanup
/sig api-machinery
What this PR does / why we need it:
Add tests for CBOR encoder handling of duplicate field names/tags.
Specifically, these cases provide coverage for unusual struct types that could conceivably be encoded to CBOR maps containing duplicate keys (which would be invalid).
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: