etcd icon indicating copy to clipboard operation
etcd copied to clipboard

[test] Add test cases to cover the case that client api version is not valid UTF-8 string

Open ahrtr opened this issue 3 years ago • 2 comments

This is a supplement task for pull/13560

ahrtr avatar Jan 13 '22 02:01 ahrtr

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 13 '22 07:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 13 '22 23:07 stale[bot]

Hey @ahrtr - I can see this help wanted issue has been open for a while, I'm keen to give it a go.

For the unit test for this would you be adding a new etcdserver/api/v3rpc/interceptor_test.go file or would you include this new test in an existing file elsewhere?

Lastly - can you give me some guidance on how you might approach this, just rough outline/overview would be really helpful as this would be first test case contribution, thanks!

jmhbnz avatar Mar 18 '23 21:03 jmhbnz

Lastly - can you give me some guidance on how you might approach this, just rough outline/overview would be really helpful as this would be first test case contribution, thanks!

Probably we can intentionally create an invalid version on client side? We might need an e2e or integration test.

ahrtr avatar Mar 18 '23 23:03 ahrtr

Initial pull request covering one scenario is here #15537. I think we need a second test covering a scenario that potentially sidesteps clientv3 altogether.

/assign @jmhbnz

jmhbnz avatar Mar 20 '23 19:03 jmhbnz

Closing after discussion with maintainers this is not a priority to progress at the moment. We can revisit and reopen in future if that changes.

jmhbnz avatar Apr 11 '23 08:04 jmhbnz