dashboard_module_names = [ 'openstack_dashboard.enabled', 'openstack_dashboard.local.enabled', 'neutron_lbaas_dashboard.enabled', ] dashboard_modules = [] # All dashboards must be enabled for the namespace to get registered, which is # needed by the unit tests. for module_name in dashboard_module_names: module = importlib.import_module(module_name) dashboard_modules.append(module) for submodule in six.itervalues(settings.import_submodules(module)): if getattr(submodule, 'DISABLED', None): delattr(submodule, 'DISABLED') INSTALLED_APPS = list(INSTALLED_APPS) # Make sure it's mutable settings.update_dashboards(dashboard_modules, HORIZON_CONFIG, INSTALLED_APPS) # 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. HORIZON_IMAGES_ALLOW_UPLOAD = True AVAILABLE_REGIONS = [ ('http://localhost/identity', 'local'), ('http://remote/identity', 'remote'), ] OPENSTACK_API_VERSIONS = {"identity": 3} OPENSTACK_KEYSTONE_URL = "http://localhost/identity" OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from horizon.test.settings import * # noqa from openstack_dashboard.test.settings import * # noqa # Load the pluggable dashboard settings import manila_ui.local.enabled import openstack_dashboard.enabled from openstack_dashboard.utils import settings MANILA_UI_APPS = list(INSTALLED_APPS) + ['manila_ui.dashboards'] settings.update_dashboards( [ manila_ui.local.enabled, openstack_dashboard.enabled, ], HORIZON_CONFIG, MANILA_UI_APPS, )
# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Default to Horizons test settings to avoid any missing keys from horizon.test.settings import * # noqa from openstack_dashboard.test.settings import * # noqa # pop these keys to avoid log warnings about deprecation # update_dashboards will populate them anyway HORIZON_CONFIG.pop('dashboards', None) HORIZON_CONFIG.pop('default_dashboard', None) # Update the dashboards with zaqar_ui import openstack_dashboard.enabled from openstack_dashboard.utils import settings import zaqar_ui.enabled settings.update_dashboards( [ zaqar_ui.enabled, openstack_dashboard.enabled, ], HORIZON_CONFIG, INSTALLED_APPS ) # Ensure any duplicate apps are removed after the update_dashboards call INSTALLED_APPS = list(set(INSTALLED_APPS))
'not_found': exceptions.NOT_FOUND, 'unauthorized': exceptions.UNAUTHORIZED}, 'angular_modules': [], 'js_files': [], } # Load the pluggable dashboard settings import openstack_dashboard.enabled import openstack_dashboard.local.enabled from openstack_dashboard.utils import settings INSTALLED_APPS = list(INSTALLED_APPS) # Make sure it's mutable settings.update_dashboards( [ openstack_dashboard.enabled, openstack_dashboard.local.enabled, ], HORIZON_CONFIG, INSTALLED_APPS, ) INSTALLED_APPS[0:0] = [] # 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. HORIZON_IMAGES_ALLOW_UPLOAD = True AVAILABLE_REGIONS = [ ('http://localhost:5000/v2.0', 'local'), ('http://remote:5000/v2.0', 'remote'), ]
from openstack_dashboard.utils import settings dashboard_module_names = [ 'openstack_dashboard.enabled', 'openstack_dashboard.local.enabled', ] dashboard_modules = [] # All dashboards must be enabled for the namespace to get registered, which is # needed by the unit tests. for module_name in dashboard_module_names: module = importlib.import_module(module_name) dashboard_modules.append(module) for submodule in six.itervalues(settings.import_submodules(module)): if getattr(submodule, 'DISABLED', None): delattr(submodule, 'DISABLED') INSTALLED_APPS = list(INSTALLED_APPS) # Make sure it's mutable settings.update_dashboards(dashboard_modules, HORIZON_CONFIG, INSTALLED_APPS) # 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. HORIZON_IMAGES_ALLOW_UPLOAD = True AVAILABLE_REGIONS = [ ('http://localhost:5000/v2.0', 'local'), ('http://remote:5000/v2.0', 'remote'), ] OPENSTACK_API_VERSIONS = { "identity": 3 }
# # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # Default to Horizons test settings to avoid any missing keys from horizon.test.settings import * # noqa from openstack_dashboard.test.settings import * # noqa # Update the dashboards with barbican_ui import barbican_ui.enabled import openstack_dashboard.enabled from openstack_dashboard.utils import settings # pop these keys to avoid log warnings about deprecation # update_dashboards will populate them anyway HORIZON_CONFIG.pop('dashboards', None) HORIZON_CONFIG.pop('default_dashboard', None) settings.update_dashboards([ barbican_ui.enabled, openstack_dashboard.enabled, ], HORIZON_CONFIG, INSTALLED_APPS) # Ensure any duplicate apps are removed after the update_dashboards call INSTALLED_APPS = list(set(INSTALLED_APPS))
# # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # Default to Horizons test settings to avoid any missing keys from horizon.test.settings import * # noqa from openstack_dashboard.test.settings import * # noqa # pop these keys to avoid log warnings about deprecation # update_dashboards will populate them anyway HORIZON_CONFIG.pop('dashboards', None) HORIZON_CONFIG.pop('default_dashboard', None) # Update the dashboards with octavia_dashboard import neutron_lbaas_dashboard.enabled import openstack_dashboard.enabled from openstack_dashboard.utils import settings settings.update_dashboards([ neutron_lbaas_dashboard.enabled, openstack_dashboard.enabled, ], HORIZON_CONFIG, INSTALLED_APPS) # Ensure any duplicate apps are removed after the update_dashboards call INSTALLED_APPS = list(set(INSTALLED_APPS))
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # Default to Horizons test settings to avoid any missing keys from horizon.test.settings import * # noqa from openstack_dashboard.test.settings import * # noqa # pop these keys to avoid log warnings about deprecation # update_dashboards will populate them anyway HORIZON_CONFIG.pop('dashboards', None) # noqa: F405 HORIZON_CONFIG.pop('default_dashboard', None) # noqa: F405 # Update the dashboards with ironic_ui import ironic_ui.enabled # noqa: E402 import openstack_dashboard.enabled # noqa: E402 from openstack_dashboard.utils import settings # noqa: E402 settings.update_dashboards( [ ironic_ui.enabled, openstack_dashboard.enabled, ], HORIZON_CONFIG, # noqa: F405 INSTALLED_APPS # noqa: F405 ) # Ensure any duplicate apps are removed after the update_dashboards call INSTALLED_APPS = list(set(INSTALLED_APPS)) # noqa: F405
# # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # Default to Horizons test settings to avoid any missing keys from horizon.test.settings import * # noqa from openstack_dashboard.test.settings import * # noqa # Update the dashboards with octavia_dashboard import octavia_dashboard.enabled import openstack_dashboard.enabled from openstack_dashboard.utils import settings # pop these keys to avoid log warnings about deprecation # update_dashboards will populate them anyway HORIZON_CONFIG.pop('dashboards', None) HORIZON_CONFIG.pop('default_dashboard', None) settings.update_dashboards([ octavia_dashboard.enabled, openstack_dashboard.enabled, ], HORIZON_CONFIG, INSTALLED_APPS) # Ensure any duplicate apps are removed after the update_dashboards call INSTALLED_APPS = list(set(INSTALLED_APPS))