Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release-0.2.0' into fix/kevin-1400
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-hashimoto committed Dec 12, 2024
2 parents 44a03ec + bce4b4e commit ced2f61
Showing 1 changed file with 145 additions and 58 deletions.
203 changes: 145 additions & 58 deletions backend/lcfs/db/seeders/test/test_user_profile_seeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,85 +16,172 @@ async def seed_test_user_profiles(session):
# Define the user profiles to seed
user_profiles_to_seed = [
{
"keycloak_email": "[email protected]",
"keycloak_username": "john_doe_01",
"email": "[email protected]",
"title": "Developer",
"phone": "+1-555-123-4567",
"mobile_phone": "+1-555-234-5678",
"first_name": "John",
"last_name": "Doe",
"keycloak_email": "[email protected]",
"keycloak_username": "SGALLOWA",
"email": "[email protected]",
"title": "Sr. UX Practitioner",
"phone": "1234567890",
"mobile_phone": "1234567890",
"first_name": "Stuart",
"last_name": "Galloway",
"organization_id": None,
"is_active": True,
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "DHASELHA",
"email": "[email protected]",
"title": "Dev",
"phone": "1234567890",
"mobile_phone": "1234567890",
"first_name": "Daniel",
"last_name": "Haselhan",
"organization_id": None,
"is_active": True,
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "HISHAQ",
"email": "[email protected]",
"title": "Chief Engineer",
"phone": None,
"mobile_phone": None,
"first_name": "Haris",
"last_name": "Ishaq",
"organization_id": None,
"is_active": True,
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "shpayne",
"email": "[email protected]",
"title": "Chief Engineer",
"phone": None,
"mobile_phone": None,
"first_name": "Shannon",
"last_name": "Payne",
"organization_id": None,
"is_active": True,
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "LCFS1_bat",
"email": "[email protected]",
"title": "CEO",
"phone": None,
"mobile_phone": None,
"first_name": "Donald",
"last_name": "Freeman",
"organization_id": 1,
"is_active": True,
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "jane_smith_02",
"email": "[email protected]",
"keycloak_email": "[email protected]",
"keycloak_username": "ALZORKIN",
"email": "[email protected]",
"title": "Developer",
"phone": "+1-555-345-6789",
"mobile_phone": "+1-555-456-7890",
"first_name": "Jane",
"last_name": "Smith",
"organization_id": 2,
"phone": "1234567890",
"mobile_phone": "1234567890",
"organization_id": None,
"is_active": True,
"first_name": "Alex",
"last_name": "Zorkin",
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "alice_jones_03",
"email": "[email protected]",
"keycloak_email": "[email protected]",
"keycloak_username": "HVALIOLL",
"email": "[email protected]",
"title": "Developer",
"phone": "+1-555-567-8901",
"mobile_phone": "+1-555-678-9012",
"first_name": "Alice",
"last_name": "Jones",
"organization_id": 3,
"phone": "1234567890",
"mobile_phone": "1234567890",
"organization_id": None,
"is_active": True,
"first_name": "Hamed",
"last_name": "Bayeki",
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "IDIRUSER",
"email": "[email protected]",
"keycloak_email": "[email protected]",
"keycloak_username": "KHASHIMO",
"email": "[email protected]",
"title": "Developer",
"phone": "+1-555-789-0123",
"mobile_phone": "+1-555-890-1234",
"first_name": "Bob",
"last_name": "Johnson",
"phone": "1234567890",
"mobile_phone": "1234567890",
"organization_id": None,
"is_active": True,
"first_name": "Kevin",
"last_name": "Hashimoto",
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "BCEIDUSER",
"email": "[email protected]",
"keycloak_email": "[email protected]",
"keycloak_username": "PVENKATE",
"email": "[email protected]",
"title": "Developer",
"phone": "+1-555-901-2345",
"mobile_phone": "+1-555-012-3456",
"first_name": "Charlie",
"last_name": "Brown",
"organization_id": 2,
"phone": "1234567890",
"mobile_phone": "1234567890",
"organization_id": None,
"is_active": True,
"first_name": "Prashanth",
"last_name": "V",
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "ACTIVEUSER",
"email": "[email protected]",
"title": "Developer",
"phone": "+1-555-234-5678",
"mobile_phone": "+1-555-345-6789",
"first_name": "Diana",
"last_name": "Evans",
"organization_id": 3,
"keycloak_email": "[email protected]",
"keycloak_username": "JLEPITZ",
"email": "[email protected]",
"title": "Admin",
"phone": "1234567890",
"mobile_phone": "1234567890",
"organization_id": None,
"is_active": True,
"first_name": "Justin",
"last_name": "Lepitzki",
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "INACTIVEUSER",
"email": "[email protected]",
"keycloak_email": "[email protected]",
"keycloak_username": "LGRUNERT",
"email": "[email protected]",
"title": "Admin",
"phone": "1234567890",
"mobile_phone": "1234567890",
"organization_id": None,
"is_active": True,
"first_name": "Lindsy",
"last_name": "Grunert",
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "ARTREYES",
"email": "[email protected]",
"title": "Developer",
"phone": "+1-555-456-7890",
"mobile_phone": "+1-555-567-8901",
"first_name": "Eve",
"last_name": "Harris",
"organization_id": 3,
"is_active": False,
"phone": "1234567890",
"mobile_phone": "1234567890",
"organization_id": None,
"is_active": True,
"first_name": "Arturo",
"last_name": "Reyes",
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "AIRING",
"email": "[email protected]",
"title": "Product Owner",
"phone": "1234567890",
"mobile_phone": "1234567890",
"organization_id": None,
"is_active": True,
"first_name": "Al",
"last_name": "Ring",
},
{
"keycloak_email": "[email protected]",
"keycloak_username": "RRFORD",
"email": "[email protected]",
"title": "Scrum Master",
"phone": "1234567890",
"mobile_phone": "1234567890",
"organization_id": None,
"is_active": True,
"first_name": "Rebekah",
"last_name": "Ford",
},
]

Expand All @@ -112,7 +199,7 @@ async def seed_test_user_profiles(session):

except Exception as e:
context = {
"function": "seed_test_user_profiles",
"function": "seed_test_user_profiles",
}
logger.error(
"Error occurred while seeding user profiles",
Expand Down

0 comments on commit ced2f61

Please sign in to comment.