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

Commit e4efc6c

Browse files
committed
SAAS-174 Remove password reset tests
1 parent e7ec9b9 commit e4efc6c

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

server/platform_auth_test.go

-31
Original file line numberDiff line numberDiff line change
@@ -142,35 +142,4 @@ func TestPlatform(t *testing.T) {
142142
pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid field Password: value '' must not be an empty string")
143143
})
144144
})
145-
146-
t.Run("password reset", func(t *testing.T) {
147-
email := gofakeit.Email()
148-
password := gofakeit.Password(true, true, true, false, false, 14)
149-
150-
_, err := client.PlatformSignUp(&server.PlatformSignUpParams{
151-
Body: server.PlatformSignUpBody{
152-
Email: email,
153-
Password: password,
154-
},
155-
Context: pmmapitests.Context,
156-
})
157-
require.NoError(t, err)
158-
159-
_, err = client.PlatformResetPassword(&server.PlatformResetPasswordParams{
160-
Body: server.PlatformResetPasswordBody{
161-
Email: email,
162-
},
163-
Context: pmmapitests.Context,
164-
})
165-
require.NoError(t, err)
166-
167-
_, err = client.PlatformSignIn(&server.PlatformSignInParams{
168-
Body: server.PlatformSignInBody{
169-
Email: email,
170-
Password: password,
171-
},
172-
Context: pmmapitests.Context,
173-
})
174-
pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "Incorrect username or password.")
175-
})
176145
}

0 commit comments

Comments
 (0)