Skip to content
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

common test: update auth test interface #14626

Merged
merged 1 commit into from
Oct 26, 2022
Merged

Conversation

chaochn47
Copy link
Member

  1. set up a default withAuth option in common test entry point
  2. NewEtcdctl accepts a client option that could have invalid user name and password, it should fail client creation. I am happy to add more comments to reduce the confusion.
  3. AuthEnable and AuthDisable does not need response in the function signature.

@ahrtr @serathius

tests/framework/integration/cluster.go Outdated Show resolved Hide resolved
tests/common/e2e_test.go Outdated Show resolved Hide resolved
tests/common/integration_test.go Outdated Show resolved Hide resolved
tests/common/main_test.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2022

Codecov Report

Merging #14626 (f3c47d7) into main (5550041) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main   #14626      +/-   ##
==========================================
- Coverage   75.39%   75.37%   -0.03%     
==========================================
  Files         457      457              
  Lines       37271    37271              
==========================================
- Hits        28101    28093       -8     
- Misses       7396     7406      +10     
+ Partials     1774     1772       -2     
Flag Coverage Δ
all 75.37% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
client/pkg/v3/tlsutil/tlsutil.go 83.33% <0.00%> (-8.34%) ⬇️
raft/rafttest/node.go 95.00% <0.00%> (-5.00%) ⬇️
client/v3/concurrency/session.go 88.63% <0.00%> (-4.55%) ⬇️
server/etcdserver/api/v3rpc/interceptor.go 73.43% <0.00%> (-4.17%) ⬇️
client/v3/concurrency/election.go 79.68% <0.00%> (-2.35%) ⬇️
server/etcdserver/api/v3rpc/key.go 82.19% <0.00%> (-1.37%) ⬇️
client/v3/op.go 74.71% <0.00%> (-1.15%) ⬇️
client/v3/retry_interceptor.go 66.36% <0.00%> (-0.91%) ⬇️
client/v3/watch.go 92.66% <0.00%> (-0.78%) ⬇️
server/etcdserver/server.go 84.58% <0.00%> (-0.46%) ⬇️
... and 12 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@chaochn47 chaochn47 force-pushed the auth_test_fix branch 3 times, most recently from 9818ffe to 206414a Compare October 26, 2022 13:51
Signed-off-by: Chao Chen <chaochn@amazon.com>
@chaochn47
Copy link
Member Author

chaochn47 commented Oct 26, 2022

Do you mind take a second look? Thanks!! @ahrtr

#14041 is built on top of this change. Once this PR is merged, I will rebase that one.

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thank you @chaochn47

@ahrtr
Copy link
Member

ahrtr commented Oct 26, 2022

This should be a safe change, let me merge it right now

@ahrtr ahrtr merged commit 9bc4a63 into etcd-io:main Oct 26, 2022
@chaochn47 chaochn47 deleted the auth_test_fix branch October 27, 2022 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants