Merge pull request #1232 from trheyi/main

Update user status in test cases from "enabled" to "active"
This commit is contained in:
Max 2025-10-25 15:00:23 +08:00 committed by GitHub
commit 963a580be7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -477,7 +477,7 @@ func createUserWithEmail(t *testing.T, userID, email string) {
"user_id": userID,
"name": "Test User " + userID,
"email": email,
"status": "enabled",
"status": "active", // Valid enum value: active (not "enabled")
}
provider, err := oauth.OAuth.GetUserProvider()
@ -499,8 +499,8 @@ func createUserWithMobile(t *testing.T, userID, mobile string) {
userData := map[string]interface{}{
"user_id": userID,
"name": "Test User " + userID,
"phone_number": mobile, // Use phone_number instead of mobile
"status": "enabled",
"phone_number": mobile, // Use phone_number instead of mobile
"status": "active", // Valid enum value: active (not "enabled")
}
provider, err := oauth.OAuth.GetUserProvider()

View file

@ -1180,7 +1180,7 @@ func createUserInDB(t *testing.T, userID string) string {
"user_id": userID,
"name": "Test User " + userID,
"email": userID + "@test.com",
"status": "enabled",
"status": "active", // Valid enum value: active (not "enabled")
}
// Create user using userProvider.CreateUser