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

tests/e2e: address golangci var-naming issues #17636

Merged
merged 1 commit into from
Mar 24, 2024

Conversation

ivanvc
Copy link
Member

@ivanvc ivanvc commented Mar 22, 2024

Addresses the var-naming issues in tests/e2e.

Part of #17578

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

@ivanvc ivanvc mentioned this pull request Mar 22, 2024
20 tasks
Comment on lines +160 to 162
//revive:disable:var-naming
ClusterId uint64 `json:"cluster_id,string,omitempty"`
MemberId uint64 `json:"member_id,string,omitempty"`
Copy link
Member Author

Choose a reason for hiding this comment

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

Ignored these as they come from protobufs and this is unmarshalling the response.

}

func authTest_CVE_2021_28235(cx ctlCtx) {
func authTestCVE2021_28235(cx ctlCtx) {
Copy link
Member Author

Choose a reason for hiding this comment

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

I was hesitant about this rename. However, the original test case name retains the underscores to split the CVE name properly (TestAuth_CVE_2021_28235).

@@ -39,11 +39,11 @@ const (
)

type testCase struct {
name string
client e2e.ClientConfig
clientHttpSerparate bool
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed a typo in the variable name too (Serparate -> Separate)

Copy link
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

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

Looks good to me - Thanks @ivanvc 👍🏻

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

Thanks

@ahrtr ahrtr merged commit e5d633f into etcd-io:main Mar 24, 2024
38 checks passed
@ivanvc ivanvc deleted the address-tests-e2e-var-naming-lint-rule branch March 25, 2024 02:32
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.

4 participants