Add non-voting integration tests job

Thi patch skip integration tests which fails on gates until specified
bug will be resolved.

@decorators.skip_because doesn't work somewhy so I used unittest.skip
instead of it. I'll fix skip_because decorator in a follow up patch.

Related-Bug: #1792028
Change-Id: Ida79b5064c2457afc15db6e63a45478d711e02b5
This commit is contained in:
Ivan Kolodyazhny 2018-09-11 14:31:34 -06:00
parent 59038e69bd
commit 0c8de3eb4c
9 changed files with 63 additions and 4 deletions

View File

@ -24,6 +24,23 @@
vars:
tox_envlist: selenium-headless
- job:
name: horizon-integration-tests
parent: devstack
pre-run: playbooks/horizon-devstack-integration/pre.yaml
run: playbooks/horizon-devstack-integration/run.yaml
post-run: playbooks/horizon-devstack-integration/post.yaml
roles:
- zuul: openstack-infra/devstack
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- ^releasenotes/.*$
vars:
devstack_services:
horizon: true
tox_envlist: py27integration
- job:
name: horizon-dsvm-tempest-plugin
parent: devstack-tempest
@ -86,6 +103,8 @@
- horizon-openstack-tox-python3-django111
- horizon-selenium-headless:
voting: false
- horizon-integration-tests:
voting: false
- horizon-dsvm-tempest-plugin
- horizon-tox-bandit-baseline:
voting: false

View File

@ -15,6 +15,7 @@ from os.path import join
from os import remove
from horizon.test import firefox_binary
from openstack_dashboard.test.integration_tests import decorators
from openstack_dashboard.test.integration_tests import helpers
@ -40,6 +41,7 @@ class TestDownloadRCFile(helpers.AdminTestCase):
self.addCleanup(cleanup)
@decorators.skip_because(bugs=['1792028'])
def test_download_rc_v2_file(self):
"""This is a basic scenario test:

View File

@ -72,6 +72,7 @@ class TestRouters(helpers.TestCase):
interfaces_page.find_message_and_dismiss(messages.ERROR))
self.assertFalse(interfaces_page.is_interface_present(interface_name))
@decorators.skip_because(bugs=['1792028'])
def test_router_add_delete_interface(self):
"""Tests the router interface creation and deletion functionalities:
@ -103,6 +104,7 @@ class TestRouters(helpers.TestCase):
self._delete_router()
@decorators.skip_because(bugs=['1792028'])
def test_router_delete_interface_by_row(self):
"""Tests the router interface creation and deletion by row action:
@ -133,6 +135,7 @@ class TestRouters(helpers.TestCase):
self._delete_router()
@decorators.skip_because(bugs=['1792028'])
def test_router_overview_data(self):
self._create_router()
@ -159,6 +162,7 @@ class TestRouters(helpers.TestCase):
class TestAdminRouters(helpers.AdminTestCase):
ROUTER_NAME = helpers.gen_random_resource_name("router")
@decorators.skip_because(bugs=['1792028'])
@decorators.services_required("neutron")
def test_router_create_admin(self):
"""tests the router creation and deletion functionalities:

View File

@ -12,6 +12,7 @@
import random
from openstack_dashboard.test.integration_tests import decorators
from openstack_dashboard.test.integration_tests import helpers
from openstack_dashboard.test.integration_tests.regions import messages
@ -62,6 +63,7 @@ class TestSecuritygroup(helpers.TestCase):
self.assertFalse(page.find_message_and_dismiss(messages.ERROR))
self.assertFalse(page.is_port_present(self.RULE_PORT))
@decorators.skip_because(bugs=['1792028'])
def test_securitygroup_create_delete(self):
"""tests the security group creation and deletion functionalities:
@ -74,6 +76,7 @@ class TestSecuritygroup(helpers.TestCase):
self._create_securitygroup()
self._delete_securitygroup()
@decorators.skip_because(bugs=['1792028'])
def test_managerules_create_delete_by_row(self):
"""tests the manage rules creation and deletion functionalities:
@ -92,6 +95,7 @@ class TestSecuritygroup(helpers.TestCase):
self._delete_rule_by_row_action()
self._delete_securitygroup()
@decorators.skip_because(bugs=['1792028'])
def test_managerules_create_delete_by_table(self):
"""tests the manage rules creation and deletion functionalities:

View File

@ -9,6 +9,7 @@
# 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 unittest import skip
from openstack_dashboard.test.integration_tests import helpers
from openstack_dashboard.test.integration_tests.regions import messages
@ -40,6 +41,7 @@ class TestVolumeSnapshotsBasic(helpers.TestCase):
self.addCleanup(cleanup)
@skip('Skipped until bug 1792028 is resolved')
def test_create_edit_delete_volume_snapshot(self):
"""Test checks create/delete volume snapshot action
@ -85,6 +87,7 @@ class TestVolumeSnapshotsBasic(helpers.TestCase):
self.assertTrue(volumes_snapshot_page.is_volume_snapshot_deleted(
new_name))
@skip('Skipped until bug 1792028 is resolved')
def test_volume_snapshots_pagination(self):
"""This test checks volumes snapshots pagination
@ -177,10 +180,12 @@ class TestVolumeSnapshotsAdmin(helpers.AdminTestCase,
def volumes_snapshot_page(self):
return self.home_pg.go_to_project_volumes_snapshotspage()
@skip('Skipped until bug 1792028 is resolved')
def test_create_edit_delete_volume_snapshot(self):
super(TestVolumeSnapshotsAdmin, self).\
test_create_edit_delete_volume_snapshot()
@skip('Skipped until bug 1792028 is resolved')
def test_volume_snapshots_pagination(self):
super(TestVolumeSnapshotsAdmin, self).\
test_volume_snapshots_pagination()
@ -215,6 +220,7 @@ class TestVolumeSnapshotsAdvanced(helpers.TestCase):
self.addCleanup(cleanup)
@skip('Skipped until bug 1792028 is resolved')
def test_create_volume_from_snapshot(self):
"""Test checks possibility to create volume from snapshot

View File

@ -10,8 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import time
from unittest import skip
from openstack_dashboard.test.integration_tests import decorators
from openstack_dashboard.test.integration_tests import helpers
from openstack_dashboard.test.integration_tests.regions import messages
@ -25,6 +25,7 @@ class TestVolumesBasic(helpers.TestCase):
def volumes_page(self):
return self.home_pg.go_to_project_volumes_volumespage()
@skip('Skipped until bug 1792028 is resolved')
def test_volume_create_edit_delete(self):
"""This test case checks create, edit, delete volume functionality:
@ -77,6 +78,7 @@ class TestVolumesBasic(helpers.TestCase):
form = volumes_page.volumes_table.create_volume()
form.cancel()
@skip('Skipped until bug 1792028 is resolved')
def test_volumes_pagination(self):
"""This test checks volumes pagination
@ -166,7 +168,7 @@ class TestVolumesAdvanced(helpers.TestCase):
def volumes_page(self):
return self.home_pg.go_to_project_volumes_volumespage()
@decorators.skip_because(bugs=['1774697'])
@skip('Skipped until bug 1774697 is resolved')
def test_manage_volume_attachments(self):
"""This test case checks attach/detach actions for volume
@ -257,6 +259,7 @@ class TestVolumesActions(helpers.TestCase):
self.addCleanup(cleanup)
@skip('Skipped until bug 1792028 is resolved')
def test_volume_extend(self):
"""This test case checks extend volume functionality:
@ -279,7 +282,7 @@ class TestVolumesActions(helpers.TestCase):
new_size = volumes_page.get_size(self.VOLUME_NAME)
self.assertLess(orig_size, new_size)
@decorators.skip_because(bugs=['1774697'])
@skip('Skipped until bug 1774697 is resolved')
def test_volume_upload_to_image(self):
"""This test case checks upload volume to image functionality:
@ -315,7 +318,7 @@ class TestVolumesActions(helpers.TestCase):
self.volumes_page = \
self.home_pg.go_to_project_volumes_volumespage()
@decorators.skip_because(bugs=['1774697'])
@skip('Skipped until bug 1774697 is resolved')
def test_volume_launch_as_instance(self):
"""This test case checks launch volume as instance functionality:

View File

@ -0,0 +1,5 @@
---
- hosts: all
roles:
- fetch-tox-output
- fetch-subunit-output

View File

@ -0,0 +1,10 @@
---
- hosts: all
roles:
- run-devstack
- test-setup
- ensure-tox
- role: bindep
bindep_profile: selenium
become: true
- setup-selenium-tests

View File

@ -0,0 +1,6 @@
---
- hosts: all
environment:
OS_CLOUD: devstack-admin
roles:
- tox