Update user status in test cases from "enabled" to "active"
- Modified the user creation functions in entry_test.go and invitation_test.go to use "active" as the status value instead of "enabled", aligning with the valid enum values for user status. - This change ensures consistency across user-related tests and improves clarity regarding user status representation.
This commit is contained in:
parent
741847224d
commit
0abb8c7d3b
2 changed files with 4 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue