From eafec8e0c05c46f1d6b782e3123fbeac31c0ea1b Mon Sep 17 00:00:00 2001 From: Timur Sufiev Date: Fri, 20 May 2016 16:45:33 +0300 Subject: [PATCH] Temporarily disable the most problematic integration tests Change-Id: I70ae0120aa838d5a659912a744566556b1fe04ad Related-Bug: #1584057 --- .../test/integration_tests/tests/test_credentials.py | 6 +++++- .../test/integration_tests/tests/test_images.py | 5 +++++ .../test/integration_tests/tests/test_instances.py | 7 +++++++ .../test/integration_tests/tests/test_stacks.py | 1 + .../integration_tests/tests/test_volume_snapshots.py | 11 +++++++++++ .../test/integration_tests/tests/test_volumes.py | 3 +++ 6 files changed, 32 insertions(+), 1 deletion(-) diff --git a/openstack_dashboard/test/integration_tests/tests/test_credentials.py b/openstack_dashboard/test/integration_tests/tests/test_credentials.py index 45c7f9956f..e644cf88bd 100644 --- a/openstack_dashboard/test/integration_tests/tests/test_credentials.py +++ b/openstack_dashboard/test/integration_tests/tests/test_credentials.py @@ -11,6 +11,7 @@ # under the License. from horizon.test import firefox_binary +from openstack_dashboard.test.integration_tests import decorators from openstack_dashboard.test.integration_tests import helpers from os import listdir @@ -51,6 +52,7 @@ class TestDownloadRCFile(helpers.AdminTestCase): 2, self._directory, self._openrc_template) self.assertEqual(cred_dict, self.actual_dict) + @decorators.skip_because(bugs=['1584057']) def test_download_rc_v3_file(self): """This is a basic scenario test: Steps: @@ -71,4 +73,6 @@ class TestDownloadRCFile(helpers.AdminTestCase): def tearDown(self): super(TestDownloadRCFile, self).tearDown() - remove(join(self._directory, listdir(self._directory)[0])) + temporary_files = listdir(self._directory) + if len(temporary_files): + remove(join(self._directory, temporary_files[0])) diff --git a/openstack_dashboard/test/integration_tests/tests/test_images.py b/openstack_dashboard/test/integration_tests/tests/test_images.py index fc728c5efd..085ba7ab4b 100644 --- a/openstack_dashboard/test/integration_tests/tests/test_images.py +++ b/openstack_dashboard/test/integration_tests/tests/test_images.py @@ -10,6 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. +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 @@ -255,6 +256,10 @@ class TestImagesAdmin(helpers.AdminTestCase, TestImagesBasic): def images_page(self): return self.home_pg.go_to_system_imagespage() + @decorators.skip_because(bugs=['1584057']) + def test_image_create_delete(self): + super(TestImagesAdmin, self).test_image_create_delete() + def test_filter_images(self): """This test checks filtering of images Steps: diff --git a/openstack_dashboard/test/integration_tests/tests/test_instances.py b/openstack_dashboard/test/integration_tests/tests/test_instances.py index e6553a1029..0189160b87 100644 --- a/openstack_dashboard/test/integration_tests/tests/test_instances.py +++ b/openstack_dashboard/test/integration_tests/tests/test_instances.py @@ -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 openstack_dashboard.test.integration_tests import decorators from openstack_dashboard.test.integration_tests import helpers from openstack_dashboard.test.integration_tests.regions import messages @@ -45,6 +46,7 @@ class TestInstances(helpers.TestCase): instances_page.find_message_and_dismiss(messages.ERROR)) self.assertTrue(instances_page.is_instance_deleted(self.INSTANCE_NAME)) + @decorators.skip_because(bugs=['1584057']) def test_instances_pagination(self): """This test checks instance pagination Steps: @@ -237,3 +239,8 @@ class TestAdminInstances(helpers.AdminTestCase, TestInstances): @property def instances_page(self): return self.home_pg.go_to_system_instancespage() + + @decorators.skip_because(bugs=['1584057']) + def test_instances_pagination_and_filtration(self): + super(TestAdminInstances, self).\ + test_instances_pagination_and_filtration() diff --git a/openstack_dashboard/test/integration_tests/tests/test_stacks.py b/openstack_dashboard/test/integration_tests/tests/test_stacks.py index b60476b77c..c4f8a62e9e 100644 --- a/openstack_dashboard/test/integration_tests/tests/test_stacks.py +++ b/openstack_dashboard/test/integration_tests/tests/test_stacks.py @@ -31,6 +31,7 @@ class TestStacks(helpers.AdminTestCase): go_to_compute_accessandsecurity_keypairspage() self.assertTrue(keypair_page.is_keypair_present(self.KEYPAIR_NAME)) + @decorators.skip_because(bugs=['1584057']) @decorators.services_required("heat") def test_create_delete_stack(self): """tests the stack creation and deletion functionality diff --git a/openstack_dashboard/test/integration_tests/tests/test_volume_snapshots.py b/openstack_dashboard/test/integration_tests/tests/test_volume_snapshots.py index 9b1eab6ebe..67f31a2ddb 100644 --- a/openstack_dashboard/test/integration_tests/tests/test_volume_snapshots.py +++ b/openstack_dashboard/test/integration_tests/tests/test_volume_snapshots.py @@ -10,6 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. +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 @@ -178,6 +179,16 @@ class TestVolumeSnapshotsAdmin(helpers.AdminTestCase, def volumes_snapshot_page(self): return self.home_pg.go_to_system_volumes_volumesnapshotspage() + @decorators.skip_because(bugs=['1584057']) + def test_create_edit_delete_volume_snapshot(self): + super(TestVolumeSnapshotsAdmin, self).\ + test_create_edit_delete_volume_snapshot() + + @decorators.skip_because(bugs=['1584057']) + def test_volume_snapshots_pagination(self): + super(TestVolumeSnapshotsAdmin, self).\ + test_volume_snapshots_pagination() + class TestVolumeSnapshotsAdvanced(helpers.TestCase): """Login as demo user""" diff --git a/openstack_dashboard/test/integration_tests/tests/test_volumes.py b/openstack_dashboard/test/integration_tests/tests/test_volumes.py index 32f48b0513..fc3ae2bfbb 100644 --- a/openstack_dashboard/test/integration_tests/tests/test_volumes.py +++ b/openstack_dashboard/test/integration_tests/tests/test_volumes.py @@ -11,6 +11,7 @@ # under the License. import time +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 @@ -164,6 +165,7 @@ class TestVolumesAdvanced(helpers.TestCase): def volumes_page(self): return self.home_pg.go_to_compute_volumes_volumespage() + @decorators.skip_because(bugs=['1584057']) def test_manage_volume_attachments(self): """This test case checks attach/detach actions for volume Steps: @@ -255,6 +257,7 @@ class TestVolumesActions(helpers.TestCase): new_size = self.volumes_page.get_size(self.VOLUME_NAME) self.assertFalse(orig_size >= new_size) + @decorators.skip_because(bugs=['1584057']) def test_volume_upload_to_image(self): """This test case checks upload volume to image functionality: Steps: