mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 12:49:06 +00:00
fix: update room ICS API tests to include required webhook fields and correct URL
- Add webhook_url and webhook_secret fields to room creation tests - Fix room URL matching in ICS sync test to use UI_BASE_URL instead of BASE_URL - Aligns test with actual API requirements and ICS sync service implementation
This commit is contained in:
@@ -36,6 +36,8 @@ async def test_create_room_with_ics_fields(authenticated_client):
|
|||||||
"recording_type": "cloud",
|
"recording_type": "cloud",
|
||||||
"recording_trigger": "automatic-2nd-participant",
|
"recording_trigger": "automatic-2nd-participant",
|
||||||
"is_shared": False,
|
"is_shared": False,
|
||||||
|
"webhook_url": "",
|
||||||
|
"webhook_secret": "",
|
||||||
"ics_url": "https://calendar.example.com/test.ics",
|
"ics_url": "https://calendar.example.com/test.ics",
|
||||||
"ics_fetch_interval": 600,
|
"ics_fetch_interval": 600,
|
||||||
"ics_enabled": True,
|
"ics_enabled": True,
|
||||||
@@ -64,6 +66,8 @@ async def test_update_room_ics_configuration(authenticated_client):
|
|||||||
"recording_type": "cloud",
|
"recording_type": "cloud",
|
||||||
"recording_trigger": "automatic-2nd-participant",
|
"recording_trigger": "automatic-2nd-participant",
|
||||||
"is_shared": False,
|
"is_shared": False,
|
||||||
|
"webhook_url": "",
|
||||||
|
"webhook_secret": "",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
@@ -108,7 +112,7 @@ async def test_trigger_ics_sync(authenticated_client):
|
|||||||
event.add("summary", "API Test Meeting")
|
event.add("summary", "API Test Meeting")
|
||||||
from reflector.settings import settings
|
from reflector.settings import settings
|
||||||
|
|
||||||
event.add("location", f"{settings.BASE_URL}/{room.name}")
|
event.add("location", f"{settings.UI_BASE_URL}/{room.name}")
|
||||||
now = datetime.now(timezone.utc)
|
now = datetime.now(timezone.utc)
|
||||||
event.add("dtstart", now + timedelta(hours=1))
|
event.add("dtstart", now + timedelta(hours=1))
|
||||||
event.add("dtend", now + timedelta(hours=2))
|
event.add("dtend", now + timedelta(hours=2))
|
||||||
|
|||||||
Reference in New Issue
Block a user