From c962e7914cdcad2e6661ec6782b9d99ed0506045 Mon Sep 17 00:00:00 2001 From: Jeremy Bowman Date: Thu, 5 Jul 2018 11:55:24 -0400 Subject: [PATCH] TE-2631 Fix notes bok-choy tests in devstack --- cms/envs/bok_choy_docker.py | 1 + common/test/acceptance/fixtures/__init__.py | 2 +- lms/envs/bok_choy_docker.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cms/envs/bok_choy_docker.py b/cms/envs/bok_choy_docker.py index 48e8e2d6ab..44b1d62e01 100644 --- a/cms/envs/bok_choy_docker.py +++ b/cms/envs/bok_choy_docker.py @@ -11,6 +11,7 @@ LMS_BASE = '{}:{}'.format(os.environ['BOK_CHOY_HOSTNAME'], os.environ['BOK_CHOY_ LMS_ROOT_URL = 'http://{}'.format(LMS_BASE) COMMENTS_SERVICE_URL = 'http://{}:4567'.format(os.environ['BOK_CHOY_HOSTNAME']) +EDXNOTES_PUBLIC_API = 'http://{}:8042/api/v1'.format(os.environ['BOK_CHOY_HOSTNAME']) # Docker does not support the syslog socket at /dev/log. Rely on the console. LOGGING['handlers']['local'] = LOGGING['handlers']['tracking'] = { diff --git a/common/test/acceptance/fixtures/__init__.py b/common/test/acceptance/fixtures/__init__.py index c3135db021..5f35a0cc67 100644 --- a/common/test/acceptance/fixtures/__init__.py +++ b/common/test/acceptance/fixtures/__init__.py @@ -21,7 +21,7 @@ ORA_STUB_URL = os.environ.get('ora_url', 'http://localhost:8041') COMMENTS_STUB_URL = os.environ.get('comments_url', 'http://{}:4567'.format(HOSTNAME)) # Get the URL of the EdxNotes service stub used in the test -EDXNOTES_STUB_URL = os.environ.get('edxnotes_url', 'http://localhost:8042') +EDXNOTES_STUB_URL = os.environ.get('edxnotes_url', 'http://{}:8042'.format(HOSTNAME)) # Get the URL of the Catalog service stub used in the test CATALOG_STUB_URL = os.environ.get('catalog_url', 'http://localhost:8091') diff --git a/lms/envs/bok_choy_docker.py b/lms/envs/bok_choy_docker.py index 48e8e2d6ab..44b1d62e01 100644 --- a/lms/envs/bok_choy_docker.py +++ b/lms/envs/bok_choy_docker.py @@ -11,6 +11,7 @@ LMS_BASE = '{}:{}'.format(os.environ['BOK_CHOY_HOSTNAME'], os.environ['BOK_CHOY_ LMS_ROOT_URL = 'http://{}'.format(LMS_BASE) COMMENTS_SERVICE_URL = 'http://{}:4567'.format(os.environ['BOK_CHOY_HOSTNAME']) +EDXNOTES_PUBLIC_API = 'http://{}:8042/api/v1'.format(os.environ['BOK_CHOY_HOSTNAME']) # Docker does not support the syslog socket at /dev/log. Rely on the console. LOGGING['handlers']['local'] = LOGGING['handlers']['tracking'] = {