tests/e2e: initialize UserAddOptions{} field in testV3CurlAuth()

This commit is contained in:
Hitoshi Mitake
2019-06-06 23:07:41 +09:00
parent 30ca4ae1e2
commit 7bbc536e1c

View File

@@ -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 {