This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
func (s *IntegrationSuite) TestAuthHandler_LoginWithNonExistentUser() {
|
||||
req := &authpb.LoginRequest{
|
||||
Email: "nonexistent@example.com",
|
||||
Password: "password123",
|
||||
Password: "Password123",
|
||||
Ip: "127.0.0.1",
|
||||
UserAgent: "test-agent",
|
||||
}
|
||||
@@ -84,7 +84,7 @@ func (s *IntegrationSuite) TestAuthHandler_RefreshTokenFlow() {
|
||||
|
||||
loginReq := &authpb.LoginRequest{
|
||||
Email: "test@example.com",
|
||||
Password: "testpassword",
|
||||
Password: "TestPassword123",
|
||||
Ip: "127.0.0.1",
|
||||
UserAgent: "integration-test",
|
||||
}
|
||||
@@ -130,7 +130,7 @@ func (s *IntegrationSuite) TestAuthHandler_LogoutInvalidatesSession() {
|
||||
|
||||
loginReq := &authpb.LoginRequest{
|
||||
Email: "test@example.com",
|
||||
Password: "testpassword",
|
||||
Password: "TestPassword123",
|
||||
Ip: "127.0.0.1",
|
||||
UserAgent: "integration-test",
|
||||
}
|
||||
@@ -164,7 +164,7 @@ func (s *IntegrationSuite) TestAuthHandler_RegisterSuccess() {
|
||||
|
||||
registerReq := &authpb.RegisterRequest{
|
||||
Email: "newuser@example.com",
|
||||
Password: "newpassword123",
|
||||
Password: "NewPassword123",
|
||||
Name: "New User",
|
||||
Phone: "+1234567890",
|
||||
InviteCode: inviteCode,
|
||||
@@ -194,7 +194,7 @@ func (s *IntegrationSuite) TestAuthHandler_RegisterInvalidInviteCode() {
|
||||
|
||||
registerReq := &authpb.RegisterRequest{
|
||||
Email: "newuser2@example.com",
|
||||
Password: "newpassword123",
|
||||
Password: "NewPassword123",
|
||||
Name: "New User 2",
|
||||
Phone: "+1234567891",
|
||||
InviteCode: 999999,
|
||||
@@ -218,7 +218,7 @@ func (s *IntegrationSuite) TestAuthHandler_RegisterExpiredInviteCode() {
|
||||
|
||||
registerReq := &authpb.RegisterRequest{
|
||||
Email: "newuser3@example.com",
|
||||
Password: "newpassword123",
|
||||
Password: "NewPassword123",
|
||||
Name: "New User 3",
|
||||
Phone: "+1234567892",
|
||||
InviteCode: inviteCode,
|
||||
@@ -242,7 +242,7 @@ func (s *IntegrationSuite) TestAuthHandler_RegisterExhaustedInviteCode() {
|
||||
|
||||
registerReq1 := &authpb.RegisterRequest{
|
||||
Email: "newuser4@example.com",
|
||||
Password: "newpassword123",
|
||||
Password: "NewPassword123",
|
||||
Name: "New User 4",
|
||||
Phone: "+1234567893",
|
||||
InviteCode: inviteCode,
|
||||
@@ -256,7 +256,7 @@ func (s *IntegrationSuite) TestAuthHandler_RegisterExhaustedInviteCode() {
|
||||
|
||||
registerReq2 := &authpb.RegisterRequest{
|
||||
Email: "newuser5@example.com",
|
||||
Password: "newpassword123",
|
||||
Password: "NewPassword123",
|
||||
Name: "New User 5",
|
||||
Phone: "+1234567894",
|
||||
InviteCode: inviteCode,
|
||||
@@ -280,7 +280,7 @@ func (s *IntegrationSuite) TestAuthHandler_RegisterDuplicateEmail() {
|
||||
|
||||
registerReq1 := &authpb.RegisterRequest{
|
||||
Email: "duplicate@example.com",
|
||||
Password: "newpassword123",
|
||||
Password: "NewPassword123",
|
||||
Name: "Duplicate User",
|
||||
Phone: "+1234567895",
|
||||
InviteCode: inviteCode,
|
||||
@@ -296,7 +296,7 @@ func (s *IntegrationSuite) TestAuthHandler_RegisterDuplicateEmail() {
|
||||
|
||||
registerReq2 := &authpb.RegisterRequest{
|
||||
Email: "duplicate@example.com",
|
||||
Password: "anotherpassword",
|
||||
Password: "AnotherPassword123",
|
||||
Name: "Another User",
|
||||
Phone: "+1234567896",
|
||||
InviteCode: inviteCode2,
|
||||
|
||||
Reference in New Issue
Block a user