add service
Some checks failed
Deploy Smart Search Backend / deploy (push) Failing after 13m51s

This commit is contained in:
vallyenfail
2026-01-20 22:30:05 +03:00
parent 8b9554720d
commit 9b4b8bd012
16 changed files with 103 additions and 100 deletions

View File

@@ -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,