fix(email_sending): use the template created and stored in mongodb
This commit is contained in:
parent
d829cbf90d
commit
b8aa0cf2b9
@ -30,7 +30,7 @@ from common.token.token_manager import TokenManager
|
||||
class TenantNotificationRealIntegrationTest:
|
||||
def __init__(self):
|
||||
self.test_tenant_id = "test_tenant_user"
|
||||
self.test_template_id = "welcome_email_tenant_test_tenant_user" # Use assigned tenant template
|
||||
self.test_template_id = "assessment_result_notification_tenant_test_tenant_user" # Use existing tenant template
|
||||
self.test_recipient_emails = ["*", "*"] # TODO: can use the true email address
|
||||
self.test_sender_email = "freeleaps@freeleaps.com"
|
||||
self.base_url = "http://localhost:8014/api/notification"
|
||||
@ -98,33 +98,26 @@ class TenantNotificationRealIntegrationTest:
|
||||
"template_id": self.test_template_id,
|
||||
"recipient_emails": self.test_recipient_emails,
|
||||
"subject_properties": {
|
||||
"company_name": "TestCompany",
|
||||
"new_employee_name": "TestUser"
|
||||
"candidate_name": "TestCandidate"
|
||||
},
|
||||
"body_properties": {
|
||||
"manager_name": "TestManager",
|
||||
"email_address": "test@example.com",
|
||||
"initial_password": "temp123",
|
||||
"it_support_email": "it@testcompany.com",
|
||||
"company_address": "123 Test Street, Test City",
|
||||
"company_policies_url": "https://testcompany.com/policies",
|
||||
"start_date": "2024-01-15",
|
||||
"onboarding_schedule": "Week 1: Orientation, Week 2: Training",
|
||||
"company_phone": "+1-555-0123",
|
||||
"department": "Engineering",
|
||||
"hr_contact_email": "hr@testcompany.com",
|
||||
"new_employee_name": "TestUser",
|
||||
"manager_email": "manager@testcompany.com",
|
||||
"candidate_name": "TestCandidate",
|
||||
"company_name": "TestCompany",
|
||||
"company_logo": "https://testcompany.com/logo.png",
|
||||
"system_login_url": "https://app.testcompany.com",
|
||||
"hr_contact_name": "HR Manager",
|
||||
"employee_handbook_url": "https://testcompany.com/handbook",
|
||||
"position": "Software Engineer",
|
||||
"first_week_schedule": "Monday: Orientation, Tuesday: Training",
|
||||
"employee_id": "EMP001",
|
||||
"training_materials_url": "https://testcompany.com/training"
|
||||
"assessment_date": "2024-01-15",
|
||||
"execution_status": "Completed",
|
||||
"duration_minutes": "45",
|
||||
"execution_time": "2024-01-15 10:30:00",
|
||||
"total_test_cases": "20",
|
||||
"test_cases_passed": "18",
|
||||
"pass_rate": "90%",
|
||||
"detailed_results": "Excellent performance in technical assessment",
|
||||
"execution_errors": "2 minor syntax errors",
|
||||
"assessment_conclusion": "Passed with distinction",
|
||||
"tech_support_email": "tech@testcompany.com",
|
||||
"tech_support_phone": "+1-555-0123"
|
||||
},
|
||||
"region": 1,
|
||||
"region": 0,
|
||||
"sender_email": self.test_sender_email,
|
||||
"priority": "normal",
|
||||
"tracking_enabled": True
|
||||
|
||||
Loading…
Reference in New Issue
Block a user