diff --git a/cms/envs/acceptance.py b/cms/envs/acceptance.py index 62a42cb3f6..80a00b0e10 100644 --- a/cms/envs/acceptance.py +++ b/cms/envs/acceptance.py @@ -121,3 +121,7 @@ except ImportError: YOUTUBE['API'] = "127.0.0.1:{0}/get_youtube_api/".format(YOUTUBE_PORT) YOUTUBE['TEST_URL'] = "127.0.0.1:{0}/test_youtube/".format(YOUTUBE_PORT) YOUTUBE['TEXT_API']['url'] = "127.0.0.1:{0}/test_transcripts_youtube/".format(YOUTUBE_PORT) + +# Generate a random UUID so that different runs of acceptance tests don't break each other +import uuid +SECRET_KEY = uuid.uuid4().hex diff --git a/cms/envs/bok_choy.py b/cms/envs/bok_choy.py index 0eaf66155f..eb5e32193b 100644 --- a/cms/envs/bok_choy.py +++ b/cms/envs/bok_choy.py @@ -84,6 +84,10 @@ MOCK_SEARCH_BACKING_FILE = ( TEST_ROOT / "index_file.dat" # pylint: disable=no-value-for-parameter ).abspath() +# Generate a random UUID so that different runs of acceptance tests don't break each other +import uuid +SECRET_KEY = uuid.uuid4().hex + ##################################################################### # Lastly, see if the developer has any local overrides. try: diff --git a/cms/envs/devstack.py b/cms/envs/devstack.py index abb9abfa01..d6dec86160 100644 --- a/cms/envs/devstack.py +++ b/cms/envs/devstack.py @@ -93,3 +93,6 @@ except ImportError: ##################################################################### # Lastly, run any migrations, if needed. MODULESTORE = convert_module_store_setting_if_needed(MODULESTORE) + +# Dummy secret key for dev +SECRET_KEY = '85920908f28904ed733fe576320db18cabd7b6cd' diff --git a/cms/envs/test.py b/cms/envs/test.py index ecc9369277..4ea673698f 100644 --- a/cms/envs/test.py +++ b/cms/envs/test.py @@ -238,7 +238,6 @@ FEATURES['USE_MICROSITES'] = True # the one in lms/envs/test.py FEATURES['ENABLE_DISCUSSION_SERVICE'] = False - # Enable content libraries code for the tests FEATURES['ENABLE_CONTENT_LIBRARIES'] = True @@ -262,3 +261,6 @@ SEARCH_ENGINE = "search.tests.mock_search_engine.MockSearchEngine" MOCK_SEARCH_BACKING_FILE = ( TEST_ROOT / "index_file.dat" # pylint: disable=no-value-for-parameter ).abspath() + +# Dummy secret key for dev/test +SECRET_KEY = '85920908f28904ed733fe576320db18cabd7b6cd' diff --git a/lms/envs/acceptance.py b/lms/envs/acceptance.py index c87aee700a..98eaa48590 100644 --- a/lms/envs/acceptance.py +++ b/lms/envs/acceptance.py @@ -183,3 +183,7 @@ YOUTUBE['TEXT_API']['url'] = "127.0.0.1:{0}/test_transcripts_youtube/".format(YO if FEATURES.get('ENABLE_COURSEWARE_SEARCH'): # Use MockSearchEngine as the search engine for test scenario SEARCH_ENGINE = "search.tests.mock_search_engine.MockSearchEngine" + +# Generate a random UUID so that different runs of acceptance tests don't break each other +import uuid +SECRET_KEY = uuid.uuid4().hex diff --git a/lms/envs/bok_choy.py b/lms/envs/bok_choy.py index 9517e63e5e..8cfd1e48d9 100644 --- a/lms/envs/bok_choy.py +++ b/lms/envs/bok_choy.py @@ -127,6 +127,10 @@ MOCK_SEARCH_BACKING_FILE = ( TEST_ROOT / "index_file.dat" # pylint: disable=no-value-for-parameter ).abspath() +# Generate a random UUID so that different runs of acceptance tests don't break each other +import uuid +SECRET_KEY = uuid.uuid4().hex + ##################################################################### # Lastly, see if the developer has any local overrides. try: diff --git a/lms/envs/devstack.py b/lms/envs/devstack.py index 2b1f2e5730..8f648ff310 100644 --- a/lms/envs/devstack.py +++ b/lms/envs/devstack.py @@ -134,3 +134,5 @@ except ImportError: ##################################################################### # Lastly, run any migrations, if needed. MODULESTORE = convert_module_store_setting_if_needed(MODULESTORE) + +SECRET_KEY = '85920908f28904ed733fe576320db18cabd7b6cd'