Codebase list neutron-fwaas-dashboard / 03a33e4
Merge "Add neutron-fwaas-dashboard integration tests" Zuul authored 4 years ago Gerrit Code Review committed 4 years ago
12 changed file(s) with 102 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
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
022 - project:
123 templates:
224 - check-requirements
628 - openstack-python3-ussuri-jobs-horizon
729 - publish-openstack-docs-pti
830 - 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]
103103 rfc3986==0.3.1
104104 rjsmin==1.0.12
105105 Routes==2.3.1
106 selenium==2.50.1
106107 semantic-version==2.3.1
107108 simplejson==3.5.1
108109 six==1.10.0
147148 XStatic-Spin==1.2.5.2
148149 XStatic-term.js==0.0.7.0
149150 XStatic-tv4==1.2.7.0
151 xvfbwrapper==0.1.3
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')
77 coverage!=4.4,>=4.0 # Apache-2.0
88 flake8-import-order==0.13 # LGPLv3
99 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
1112 openstackdocstheme>=1.18.1 # Apache-2.0
1213 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
2121 {[unit_tests]commands}
2222
2323 [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
2525
2626 [testenv:pep8]
2727 commands =
3434 [testenv:cover]
3535 commands =
3636 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}
3838 coverage xml --omit '.tox/cover/*' -o 'cover/coverage.xml'
3939 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}
4051
4152 [testenv:docs]
4253 commands = python setup.py build_sphinx