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

Commit

Permalink
Revert "SAAS-175 Remove password reset permission test"
Browse files Browse the repository at this point in the history
This reverts commit 6a22021.
  • Loading branch information
artemgavrilov committed Jul 28, 2020
1 parent 090f8ad commit fbc819b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ func TestPermissions(t *testing.T) {
{userType: "editor", login: editor, statusCode: 401},
{userType: "admin", login: admin, statusCode: 400}, // We send bad request, but have access to endpoint
}},
{name: "platform-reset-password", url: "/v1/Platform/ResetPassword", method: "POST", userCase: []userCase{
{userType: "default", login: none, statusCode: 401},
{userType: "viewer", login: viewer, statusCode: 401},
{userType: "editor", login: editor, statusCode: 401},
{userType: "admin", login: admin, statusCode: 400}, // We send bad request, but have access to endpoint
}},
}

for _, test := range tests {
Expand Down

0 comments on commit fbc819b

Please sign in to comment.