From 0abb8c7d3bb5acb6184248b5064e8f0d593005f4 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 25 Oct 2025 14:59:57 +0800 Subject: [PATCH] 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. --- openapi/tests/user/entry_test.go | 6 +++--- openapi/tests/user/invitation_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openapi/tests/user/entry_test.go b/openapi/tests/user/entry_test.go index 433bfeaa..671f2a3b 100644 --- a/openapi/tests/user/entry_test.go +++ b/openapi/tests/user/entry_test.go @@ -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() diff --git a/openapi/tests/user/invitation_test.go b/openapi/tests/user/invitation_test.go index bcc102a6..590302b0 100644 --- a/openapi/tests/user/invitation_test.go +++ b/openapi/tests/user/invitation_test.go @@ -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