Fixes Selenium tests for openstack_dashboard

When the javascript autodiscover code was added, it was not added to the
test settings. This caused javascript files to be missed and numerous
errors in the Selenium tests.

This patch fixes the openstack_dashboard part of the Selenium tests
only.

Co-Authored-By: Richard Jones<r1chardj0n3s@gmail.com>

Partial-Bug: #1475387
Change-Id: Ib8d4d6ee8199e3d62aeeda904b2d67a2d029cce8
This commit is contained in:
David Lyle 2015-08-17 23:54:29 -06:00 committed by David Lyle
parent 3369e93497
commit 654b1a61b0

View File

@ -15,6 +15,7 @@ import os
from horizon.test.settings import * # noqa
from horizon.utils import secret_key
from openstack_dashboard import exceptions
from openstack_dashboard.static_settings import find_static_files # noqa
from openstack_dashboard.static_settings import get_staticfiles_dirs # noqa
STATICFILES_DIRS = get_staticfiles_dirs()
@ -22,6 +23,8 @@ STATICFILES_DIRS = get_staticfiles_dirs()
TEST_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_PATH = os.path.abspath(os.path.join(TEST_DIR, ".."))
STATIC_ROOT = os.path.abspath(os.path.join(ROOT_PATH, '..', 'static'))
STATIC_URL = '/static/'
WEBROOT = '/'
SECRET_KEY = secret_key.generate_or_read_from_file(
os.path.join(TEST_DIR, '.secret_key_store'))
@ -84,6 +87,8 @@ settings.update_dashboards(
)
INSTALLED_APPS[0:0] = []
find_static_files(ROOT_PATH, HORIZON_CONFIG)
# Set to True to allow users to upload images to glance via Horizon server.
# When enabled, a file form field will appear on the create image form.
# See documentation for deployment considerations.