From 03d788e1c35aa3adbd39f1c42f104827fb7af702 Mon Sep 17 00:00:00 2001 From: "zia.fazal@arbisoft.com" Date: Mon, 13 Jul 2020 19:21:03 +0500 Subject: [PATCH] Changes to run e2e test on devstack --- cms/envs/devstack.py | 3 ++- lms/envs/devstack.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cms/envs/devstack.py b/cms/envs/devstack.py index 5552a140ba..03e9bc777d 100644 --- a/cms/envs/devstack.py +++ b/cms/envs/devstack.py @@ -108,7 +108,8 @@ DEBUG_TOOLBAR_CONFIG = { def should_show_debug_toolbar(request): # We always want the toolbar on devstack unless running tests from another Docker container - if request.get_host().startswith('edx.devstack.studio:'): + hostname = request.get_host() + if hostname.startswith('edx.devstack.studio:') or hostname.startswith('studio.devstack.edx:'): return False return True diff --git a/lms/envs/devstack.py b/lms/envs/devstack.py index b34699517d..03c7962b2c 100644 --- a/lms/envs/devstack.py +++ b/lms/envs/devstack.py @@ -105,7 +105,8 @@ DEBUG_TOOLBAR_CONFIG = { def should_show_debug_toolbar(request): # We always want the toolbar on devstack unless running tests from another Docker container - if request.get_host().startswith('edx.devstack.lms:'): + hostname = request.get_host() + if hostname.startswith('edx.devstack.lms:') or hostname.startswith('lms.devstack.edx:'): return False return True