Change bot domains to string_id.EXTERNAL_HOST.

Change applies to both subdomains and non-subdomains case, though we use
just the EXTERNAL_HOST in the non-subdomains case if there is only 1 realm.

Fixes #3903.
This commit is contained in:
Rishi Gupta
2017-03-04 19:17:12 -08:00
committed by Tim Abbott
parent 4a1f1db9ee
commit 3797fa657e
11 changed files with 93 additions and 56 deletions

View File

@@ -52,7 +52,8 @@ def server_is_up(server, log_file):
return False
@contextmanager
def test_server_running(force=False, external_host='testserver', log_file=None, dots=False, use_db=True):
def test_server_running(force=False, external_host='testserver',
log_file=None, dots=False, use_db=True):
# type: (bool, str, str, bool, bool) -> Iterator[None]
if log_file:
if os.path.exists(log_file) and os.path.getsize(log_file) < 100000: