-
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
auth: fix NoPassWord check when add user #11418
Conversation
Could we add an e2e test to mimic the work flow reported in the original issue? I am surprised that the bug was not caught by test. |
The fix looks good to me. |
Codecov Report
@@ Coverage Diff @@
## master #11418 +/- ##
==========================================
- Coverage 64.28% 63.79% -0.49%
==========================================
Files 403 403
Lines 38070 38071 +1
==========================================
- Hits 24472 24289 -183
- Misses 11965 12140 +175
- Partials 1633 1642 +9
Continue to review full report at Codecov.
|
SGTM. I will add more tests for |
08dc7dd
to
e4376b0
Compare
tests/e2e/v3_curl_test.go
Outdated
@@ -274,6 +279,63 @@ func testV3CurlAuth(cx ctlCtx) { | |||
} | |||
} | |||
|
|||
func testV3CurlAuthWithoutOption(cx ctlCtx) { |
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.
Can we explore the option of modifying the existing testV3CurlAuth
e2e test to include both w/ and w/o user option cases?
cc @mitake |
LGTM, thanks @YoyinZyc ! If @jingyih is ok with It is not limited to this bug but I feel we should have a testing framework which can detect issues related to protobuf update (it might be useful for validating upgrading and downgrading an etcd cluster with different versions). |
Today there are some upgrade e2e tests. I believe in #11362 we are adding some downgrade e2e tests. But in these tests we do not exercise all possible APIs. So I agree, having a framework that supports version skew sounds good to me. |
e4376b0
to
d60ae1f
Compare
d60ae1f
to
5127cfb
Compare
Thanks for adding a new test case. I think this is fine. Let's also backport to 3.4. |
…18-upstream-release-3.4 Automated cherry pick of #11418 to release 3.4
CHANGELOG: Add #11418 to changelog-3.4, changelog-3.5
fix #11414
There is one more concern about the usage of
NoPassword
. If the user is created likeetcdctl user add user:
, should it be inferred as no password?@jingyih PHAL