Files
tacker-horizon/tacker_horizon/test/settings.py
Manpreet Kaur b952869e6b Add tacker-horizon integration test framework
This patch implements an integration framework and adds basic
test cases to verify whether tacker-horizon is installed and
could be opened.

The integration test suite "tacker-horizon-integration-tests"
is added as a gate job in non-voting mode.

Selenium exception details:
The tacker-horizon consists of panel groups "VNF Management"
and "NFV Orchestration".

The selenium reports an exception ElementNotInteractableException
while opening pages for panel group "NFV Orchestration".
This exception occurs when an element is not clickable or is not
visible yet.

By default, panel group "VNF Management" is expanded hence test
cases for pages under this panel group pass.
As per openstack-dashboard integration test case logic, the panel
group "NFV Orchestration" is never clicked hence requested pages
are not visible.

[1] comprises of modified openstack-dashboard integration test
logic to fix the above selenium exception.

[1] https://review.opendev.org/c/openstack/horizon/+/803465
Implements: blueprint tacker-horizon-integration-test

Change-Id: I6a09b945506450d9947afbd92dbab9a4a6c30de4
2021-08-30 17:29:20 +05:30

41 lines
1.4 KiB
Python

# Copyright (C) 2015 Yahoo! Inc. All Rights Reserved.
#
# 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.
# Default to Horizons test settings to avoid any missing keys
import openstack_dashboard.enabled # noqa: F811
from openstack_dashboard.test.settings import * # noqa: F403,H303
from openstack_dashboard.utils import settings
import tacker_horizon.enabled
# 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 nfv dashboard enabled files
# and current INSTALLED_APPS
settings.update_dashboards(
[
openstack_dashboard.enabled,
tacker_horizon.enabled,
],
HORIZON_CONFIG, # noqa: F405
INSTALLED_APPS # noqa: F405
)
# Remove duplicated apps
INSTALLED_APPS = list(set(INSTALLED_APPS)) # noqa: F405