Skip to content

Commit

Permalink
Merge pull request #10800 from mitake/curl-test-nopassword
Browse files Browse the repository at this point in the history
tests/e2e: initialize UserAddOptions{} field in testV3CurlAuth()
  • Loading branch information
xiang90 authored Jun 7, 2019
2 parents 30ca4ae + 7bbc536 commit 805b918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/v3_curl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func testV3CurlAuth(cx ctlCtx) {
}

// create non root user
nonrootuser, err := json.Marshal(&pb.AuthUserAddRequest{Name: string("example.com"), Password: string("example")})
nonrootuser, err := json.Marshal(&pb.AuthUserAddRequest{Name: string("example.com"), Password: string("example"), Options: &authpb.UserAddOptions{NoPassword: false}})
testutil.AssertNil(cx.t, err)

if err = cURLPost(cx.epc, cURLReq{endpoint: path.Join(p, "/auth/user/add"), value: string(nonrootuser), expected: "revision"}); err != nil {
Expand Down

0 comments on commit 805b918

Please sign in to comment.