Skip to content
This repository has been archived by the owner on Aug 19, 2021. It is now read-only.

Commit

Permalink
SAAS-174 Remove password reset tests
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov committed Jul 28, 2020
1 parent e7ec9b9 commit e4efc6c
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions server/platform_auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,35 +142,4 @@ func TestPlatform(t *testing.T) {
pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid field Password: value '' must not be an empty string")
})
})

t.Run("password reset", func(t *testing.T) {
email := gofakeit.Email()
password := gofakeit.Password(true, true, true, false, false, 14)

_, err := client.PlatformSignUp(&server.PlatformSignUpParams{
Body: server.PlatformSignUpBody{
Email: email,
Password: password,
},
Context: pmmapitests.Context,
})
require.NoError(t, err)

_, err = client.PlatformResetPassword(&server.PlatformResetPasswordParams{
Body: server.PlatformResetPasswordBody{
Email: email,
},
Context: pmmapitests.Context,
})
require.NoError(t, err)

_, err = client.PlatformSignIn(&server.PlatformSignInParams{
Body: server.PlatformSignInBody{
Email: email,
Password: password,
},
Context: pmmapitests.Context,
})
pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "Incorrect username or password.")
})
}

0 comments on commit e4efc6c

Please sign in to comment.