internal/servers/controller/handlers/accounts: fix dropped test errors (#733)

pull/734/head
Lars Lehtonen 6 years ago committed by GitHub
parent bf09616ad1
commit 0c959cbb71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -833,6 +833,7 @@ func TestSetPassword(t *testing.T) {
pwAttrs.Password = wrapperspb.String(pw)
}
attrs, err := handlers.ProtoToStruct(pwAttrs)
require.NoError(t, err)
createResp, err := tested.CreateAccount(auth.DisabledAuthTestContext(auth.WithScopeId(o.GetPublicId())), &pbs.CreateAccountRequest{
Item: &pb.Account{
AuthMethodId: am.GetPublicId(),
@ -946,6 +947,7 @@ func TestChangePassword(t *testing.T) {
pwAttrs.Password = wrapperspb.String(pw)
}
attrs, err := handlers.ProtoToStruct(pwAttrs)
require.NoError(t, err)
createResp, err := tested.CreateAccount(auth.DisabledAuthTestContext(auth.WithScopeId(o.GetPublicId())), &pbs.CreateAccountRequest{
Item: &pb.Account{
AuthMethodId: am.GetPublicId(),

Loading…
Cancel
Save