MSP-1070 rename auth struct to login struct
This commit is contained in:
1 parent
bb4c8cd8ad
commit
ece61a0e87
4 files changed
+28
-28
No files matched your search
+6
-6
@@ -80,9 +80,9 @@ func (s *AuthTestSuite) TestLoginHappyPath() {
|
||||
Password: "password",
|
||||
})
|
||||
|
||||
response := domain.Auth{}
|
||||
response := domain.LoginResponse{}
|
||||
err := s.grpcCli.Invoke("admin/auth/login").
|
||||
JsonRequestBody(domain.AuthRequest{
|
||||
JsonRequestBody(domain.LoginRequest{
|
||||
Email: "a@a.ru",
|
||||
Password: "password",
|
||||
}).
|
||||
@@ -97,7 +97,7 @@ func (s *AuthTestSuite) TestLoginHappyPath() {
|
||||
|
||||
func (s *AuthTestSuite) TestLoginNotFound() {
|
||||
err := s.grpcCli.Invoke("admin/auth/login").
|
||||
JsonRequestBody(domain.AuthRequest{
|
||||
JsonRequestBody(domain.LoginRequest{
|
||||
Email: "a1@a.ru",
|
||||
Password: "password",
|
||||
}).
|
||||
@@ -118,7 +118,7 @@ func (s *AuthTestSuite) TestLoginWrongPassword() {
|
||||
})
|
||||
|
||||
err := s.grpcCli.Invoke("admin/auth/login").
|
||||
JsonRequestBody(domain.AuthRequest{
|
||||
JsonRequestBody(domain.LoginRequest{
|
||||
Email: "a@a.ru",
|
||||
Password: "WrongPassword",
|
||||
}).
|
||||
@@ -130,10 +130,10 @@ func (s *AuthTestSuite) TestLoginWrongPassword() {
|
||||
}
|
||||
|
||||
func (s *AuthTestSuite) TestSudirLoginHappyPath() {
|
||||
response := domain.Auth{}
|
||||
response := domain.LoginResponse{}
|
||||
|
||||
err := s.grpcCli.Invoke("admin/auth/login_with_sudir").
|
||||
JsonRequestBody(domain.SudirAuthRequest{
|
||||
JsonRequestBody(domain.LoginSudirRequest{
|
||||
AuthCode: "code",
|
||||
}).
|
||||
ReadJsonResponse(&response).
|
||||
|
||||
Reference in new issue
Block a user