From e4efc6c8e51d3dda3beee5056d54232a7c6e0326 Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Tue, 28 Jul 2020 13:11:26 +0200 Subject: [PATCH] SAAS-174 Remove password reset tests --- server/platform_auth_test.go | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/server/platform_auth_test.go b/server/platform_auth_test.go index 46e4e0c2..f599fe9d 100644 --- a/server/platform_auth_test.go +++ b/server/platform_auth_test.go @@ -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.") - }) }