Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

video_calls: Drop VIDEO_ZOOM_TESTING_ configurations.

Alex Vandivere43373cc1fea
diff --git a/zerver/views/video_calls.py b/zerver/views/video_calls.py
index 91c762ad0af..493bc6fa092 100644
--- a/zerver/views/video_calls.py
+++ b/zerver/views/video_calls.py
@@ -52,9 +52,6 @@ def get_zoom_session(user: UserProfile) -> OAuth2Session:
client_id = settings.VIDEO_ZOOM_CLIENT_ID
client_secret = settings.VIDEO_ZOOM_CLIENT_SECRET
- if user.realm.string_id in settings.VIDEO_ZOOM_TESTING_REALMS: # nocoverage
- client_id = settings.VIDEO_ZOOM_TESTING_CLIENT_ID
- client_secret = settings.VIDEO_ZOOM_TESTING_CLIENT_SECRET
return OAuth2Session(
client_id,
@@ -129,8 +126,6 @@ def complete_zoom_user_in_realm(
raise JsonableError(_("Invalid Zoom session identifier"))
client_secret = settings.VIDEO_ZOOM_CLIENT_SECRET
- if request.user.realm.string_id in settings.VIDEO_ZOOM_TESTING_REALMS: # nocoverage
- client_secret = settings.VIDEO_ZOOM_TESTING_CLIENT_SECRET
oauth = get_zoom_session(request.user)
try:
diff --git a/zproject/default_settings.py b/zproject/default_settings.py
index 3e511e420fa..c9d3dbd1b28 100644
--- a/zproject/default_settings.py
+++ b/zproject/default_settings.py
@@ -1,5 +1,5 @@
import os
-from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set
+from typing import TYPE_CHECKING, Any, Dict, List, Optional
from scripts.lib.zulip_tools import deport
@@ -110,9 +110,6 @@ SSO_APPEND_DOMAIN: Optional[str] = None
VIDEO_ZOOM_CLIENT_ID = get_secret("video_zoom_client_id", development_only=True)
VIDEO_ZOOM_CLIENT_SECRET = get_secret("video_zoom_client_secret")
-VIDEO_ZOOM_TESTING_REALMS: Set[str] = set()
-VIDEO_ZOOM_TESTING_CLIENT_ID = get_secret("video_zoom_testing_client_id", development_only=True)
-VIDEO_ZOOM_TESTING_CLIENT_SECRET = get_secret("video_zoom_testing_client_secret")
# Email gateway
EMAIL_GATEWAY_PATTERN = ""