-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
tests: Migrate Txn tests to common framework #14000
Conversation
The added dependency results in a test case failure
Need suggestion on how to avoid this extra dependency. There is a lot of code/test-code which can be reused across many packages. E..g code to parse |
how to restart tests? |
/retest |
tests/common/txn_test.go
Outdated
{ | ||
Name: "NoTLS", | ||
Config: config.ClusterConfig{ClusterSize: 1}, | ||
}, | ||
{ | ||
Name: "PeerTLS", | ||
Config: config.ClusterConfig{ClusterSize: 3, PeerTLS: config.ManualTLS}, | ||
}, | ||
{ | ||
Name: "PeerAutoTLS", | ||
Config: config.ClusterConfig{ClusterSize: 3, PeerTLS: config.AutoTLS}, | ||
}, | ||
{ | ||
Name: "ClientTLS", | ||
Config: config.ClusterConfig{ClusterSize: 1, ClientTLS: config.ManualTLS}, | ||
}, | ||
{ | ||
Name: "ClientAutoTLS", | ||
Config: config.ClusterConfig{ClusterSize: 1, ClientTLS: config.AutoTLS}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@serathius this test config seems common in all test cases in tests/common
, can we extract it out in a separate variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea I think this is a good idea. I think can think about doing it in separate PR.
Overall great job! Apart of some nits this is exactly what we wanted. |
Codecov Report
@@ Coverage Diff @@
## main #14000 +/- ##
==========================================
- Coverage 74.87% 74.77% -0.11%
==========================================
Files 450 450
Lines 37173 37173
==========================================
- Hits 27834 27795 -39
- Misses 7560 7589 +29
- Partials 1779 1789 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Please fix conflics |
@serathius caution this PR has "partially fixes" in the top comment. shall i remove it? |
No need, removed it myself. |
This PR migrates Txn tests to common framework
This PR reuses functions from etcdctl package , and so adds dependency of etcdctl on tests.
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.