Fix tests failing due to missing SECRET_KEY

Change-Id: I9868016a2fcdb811938fccf9e6813153a8fd5d65
Closes-Bug: 1555735
This commit is contained in:
Rob Cresswell 2016-03-10 17:35:33 +00:00
parent bc6a6713a0
commit e9e93f98a4
2 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
.venv
.tox
*.secret_key_store
*.secret_key_store.lock
*.test_secret_key_store.lock
node_modules
npm-debug.log

View File

@ -16,4 +16,13 @@
# License for the specific language governing permissions and limitations
# under the License.
# Small hack to ensure that the tests don't fail, due to the developer
# dashboard hitting settings
from horizon.utils import secret_key
import os
LOCAL_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'local')
SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH,
'.secret_key_store'))
# Fall back to default o_d settings so we don't need to maintain our own
from openstack_dashboard.test.settings import * # noqa