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.

settings: Simplify testing push bouncer.

Tim Abbott3dc886a1cd48
diff --git a/zproject/dev_settings.py b/zproject/dev_settings.py
index 05f335a747c..57c0268541a 100644
--- a/zproject/dev_settings.py
+++ b/zproject/dev_settings.py
@@ -208,10 +208,5 @@ SCIM_CONFIG: Dict[str, SCIMConfigDict] = {
}
SELF_HOSTING_MANAGEMENT_SUBDOMAIN = "selfhosting"
-
-# You can uncomment these lines to use the development environment
-# server as a dummy push bouncer for itself, to test functionalities
-# such as register_server or update_analytics_counts management commands
-# or others involving new bouncer-side logic.
-# DEVELOPMENT_DISABLE_PUSH_BOUNCER_DOMAIN_CHECK = True
-# PUSH_NOTIFICATION_BOUNCER_URL = "http://localhost:9991"
+DEVELOPMENT_DISABLE_PUSH_BOUNCER_DOMAIN_CHECK = True
+PUSH_NOTIFICATION_BOUNCER_URL = f"http://push.{EXTERNAL_HOST}"
diff --git a/zproject/test_extra_settings.py b/zproject/test_extra_settings.py
index e7846ff1ecd..950308b72a3 100644
--- a/zproject/test_extra_settings.py
+++ b/zproject/test_extra_settings.py
@@ -204,6 +204,7 @@ BIG_BLUE_BUTTON_URL = "https://bbb.example.com/bigbluebutton/"
# Explicitly set this to True within tests that must have this on.
TWO_FACTOR_AUTHENTICATION_ENABLED = False
PUSH_NOTIFICATION_BOUNCER_URL: Optional[str] = None
+DEVELOPMENT_DISABLE_PUSH_BOUNCER_DOMAIN_CHECK = False
# Logging the emails while running the tests adds them
# to /emails page.