Merge "Add neutron-fwaas-dashboard integration tests"
Zuul authored 4 years ago
Gerrit Code Review committed 4 years ago
|
0 |
- job:
|
|
1 |
name: neutron-fwaas-dashboard-integration-tests
|
|
2 |
parent: horizon-integration-tests
|
|
3 |
required-projects:
|
|
4 |
- name: openstack/horizon
|
|
5 |
- name: openstack/neutron-fwaas
|
|
6 |
- name: openstack/neutron-fwaas-dashboard
|
|
7 |
roles:
|
|
8 |
- zuul: openstack-infra/devstack
|
|
9 |
- zuul: openstack/horizon
|
|
10 |
irrelevant-files:
|
|
11 |
- ^.*\.rst$
|
|
12 |
- ^doc/.*$
|
|
13 |
- ^releasenotes/.*$
|
|
14 |
vars:
|
|
15 |
devstack_plugins:
|
|
16 |
neutron-fwaas: https://git.openstack.org/openstack/neutron-fwaas
|
|
17 |
neutron-fwaas-dashboard: https://git.openstack.org/openstack/neutron-fwaas-dashboard
|
|
18 |
devstack_services:
|
|
19 |
horizon: true
|
|
20 |
tox_envlist: integration
|
|
21 |
|
0 | 22 |
- project:
|
1 | 23 |
templates:
|
2 | 24 |
- check-requirements
|
|
6 | 28 |
- openstack-python3-ussuri-jobs-horizon
|
7 | 29 |
- publish-openstack-docs-pti
|
8 | 30 |
- release-notes-jobs-python3
|
|
31 |
check:
|
|
32 |
jobs:
|
|
33 |
- neutron-fwaas-dashboard-integration-tests:
|
|
34 |
voting: false
|
|
0 |
# selenium tests
|
|
1 |
firefox [selenium]
|
|
2 |
xvfb [selenium platform:dpkg]
|
|
3 |
# already part of xorg-x11-server on openSUSE
|
|
4 |
xorg-x11-server-Xvfb [selenium platform:redhat]
|
|
0 |
[plugin]
|
|
1 |
is_plugin=True
|
|
2 |
plugin_page_path=neutron_fwaas_dashboard.test.integration.pages
|
|
3 |
plugin_page_structure='{"Project": {"Network": {"_": ["Firewall Groups"]}}}'
|
|
0 |
#
|
|
1 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
2 |
# not use this file except in compliance with the License. You may obtain
|
|
3 |
# a copy of the License at
|
|
4 |
#
|
|
5 |
# http://www.apache.org/licenses/LICENSE-2.0
|
|
6 |
#
|
|
7 |
# Unless required by applicable law or agreed to in writing, software
|
|
8 |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
9 |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
10 |
# License for the specific language governing permissions and limitations
|
|
11 |
# under the License.
|
|
12 |
|
|
13 |
|
|
14 |
from openstack_dashboard.test.integration_tests.pages import basepage
|
|
15 |
|
|
16 |
|
|
17 |
class FirewallgroupsPage(basepage.BaseNavigationPage):
|
|
18 |
def __init__(self, driver, conf):
|
|
19 |
super(FirewallgroupsPage, self).__init__(driver, conf)
|
|
20 |
self._page_title = "Firewall Groups"
|
|
0 |
#
|
|
1 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
2 |
# not use this file except in compliance with the License. You may obtain
|
|
3 |
# a copy of the License at
|
|
4 |
#
|
|
5 |
# http://www.apache.org/licenses/LICENSE-2.0
|
|
6 |
#
|
|
7 |
# Unless required by applicable law or agreed to in writing, software
|
|
8 |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
9 |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
10 |
# License for the specific language governing permissions and limitations
|
|
11 |
# under the License.
|
|
12 |
|
|
13 |
|
|
14 |
from openstack_dashboard.test.integration_tests import helpers
|
|
15 |
|
|
16 |
|
|
17 |
class TestNeutronFWaaSDashboardInstalled(helpers.TestCase):
|
|
18 |
|
|
19 |
def test_alarms_page_opened(self):
|
|
20 |
firewall_groups_page = \
|
|
21 |
self.home_pg.go_to_project_network_firewallgroupspage()
|
|
22 |
self.assertEqual(firewall_groups_page.page_title,
|
|
23 |
'Firewall Groups - OpenStack Dashboard')
|
7 | 7 |
coverage!=4.4,>=4.0 # Apache-2.0
|
8 | 8 |
flake8-import-order==0.13 # LGPLv3
|
9 | 9 |
mock>=2.0.0 # BSD
|
10 | |
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
|
|
10 |
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
|
|
11 |
sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD
|
11 | 12 |
openstackdocstheme>=1.18.1 # Apache-2.0
|
12 | 13 |
reno>=2.5.0 # Apache-2.0
|
|
14 |
|
|
15 |
# integration tests requirements
|
|
16 |
selenium>=2.50.1 # Apache-2.0
|
|
17 |
xvfbwrapper>=0.1.3 #license: MIT
|
|
18 |
testtools>=2.2.0 # MIT
|
21 | 21 |
{[unit_tests]commands}
|
22 | 22 |
|
23 | 23 |
[unit_tests]
|
24 | |
commands = python manage.py test {posargs} --settings=neutron_fwaas_dashboard.test.settings
|
|
24 |
commands = python manage.py test {posargs} --settings=neutron_fwaas_dashboard.test.settings --exclude-tag integration
|
25 | 25 |
|
26 | 26 |
[testenv:pep8]
|
27 | 27 |
commands =
|
|
34 | 34 |
[testenv:cover]
|
35 | 35 |
commands =
|
36 | 36 |
coverage erase
|
37 | |
coverage run {toxinidir}/manage.py test neutron_fwaas_dashboard --settings=neutron_fwaas_dashboard.test.settings {posargs}
|
|
37 |
coverage run {toxinidir}/manage.py test neutron_fwaas_dashboard --settings=neutron_fwaas_dashboard.test.settings --exclude-tag integration {posargs}
|
38 | 38 |
coverage xml --omit '.tox/cover/*' -o 'cover/coverage.xml'
|
39 | 39 |
coverage html --omit '.tox/cover/*' -d 'cover/htmlcov'
|
|
40 |
|
|
41 |
[testenv:integration]
|
|
42 |
# Run integration tests only
|
|
43 |
passenv = AVCONV_INSTALLED
|
|
44 |
setenv =
|
|
45 |
PYTHONHASHSEED=0
|
|
46 |
INTEGRATION_TESTS=1
|
|
47 |
SELENIUM_HEADLESS=1
|
|
48 |
HORIZON_INTEGRATION_TESTS_CONFIG_FILE=neutron_fwaas_dashboard/test/integration/horizon.conf
|
|
49 |
basepython = python3
|
|
50 |
commands = {envpython} {toxinidir}/manage.py test neutron_fwaas_dashboard --tag integration {posargs}
|
40 | 51 |
|
41 | 52 |
[testenv:docs]
|
42 | 53 |
commands = python setup.py build_sphinx
|