Disable flakey tempest tests

And lengthen timeouts for others

Change-Id: If7922fcf014ba4cbe80ec4c61fd398d4f3eb4c3c
This commit is contained in:
Tim Hinrichs 2015-08-18 13:19:16 -07:00
parent f58d6f7f3e
commit c2d6f1b79e
9 changed files with 34 additions and 15 deletions

View File

@ -13,6 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from tempest_lib import decorators
from tempest import clients # noqa
from tempest import config # noqa
@ -42,6 +43,7 @@ class TestCeilometerDriver(manager_congress.ScenarioPolicyBase):
cls.datasource_id = manager_congress.get_datasource_id(
cls.admin_manager.congress_client, 'ceilometer')
@decorators.skip_because(bug='1486246')
@test.attr(type='smoke')
def test_ceilometer_meters_table(self):
meter_schema = (
@ -73,6 +75,6 @@ class TestCeilometerDriver(manager_congress.ScenarioPolicyBase):
return True
if not test.call_until_true(func=_check_data_table_ceilometer_meters,
duration=20, sleep_for=4):
duration=100, sleep_for=5):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")

View File

@ -13,6 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from tempest_lib import decorators
from tempest import clients # noqa
from tempest import config # noqa
@ -44,6 +45,7 @@ class TestCinderDriver(manager_congress.ScenarioPolicyBase):
cls.datasource_id = manager_congress.get_datasource_id(
cls.admin_manager.congress_client, 'cinder')
@decorators.skip_because(bug='1486246')
@test.attr(type='smoke')
def test_cinder_volumes_table(self):
volume_schema = (
@ -75,6 +77,6 @@ class TestCinderDriver(manager_congress.ScenarioPolicyBase):
return True
if not test.call_until_true(func=_check_data_table_cinder_volumes,
duration=20, sleep_for=4):
duration=100, sleep_for=5):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")

View File

@ -89,7 +89,7 @@ class TestGlanceV2Driver(manager_congress.ScenarioPolicyBase):
return True
if not test.call_until_true(func=_check_data_table_glancev2_images,
duration=20, sleep_for=4):
duration=100, sleep_for=4):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")
@ -119,6 +119,6 @@ class TestGlanceV2Driver(manager_congress.ScenarioPolicyBase):
return True
if not test.call_until_true(func=_check_data_table_glance_images,
duration=20, sleep_for=4):
duration=100, sleep_for=5):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")

View File

@ -82,7 +82,7 @@ class TestKeystoneV2Driver(manager_congress.ScenarioPolicyBase):
return True
if not test.call_until_true(func=_check_data_table_keystone_users,
duration=20, sleep_for=4):
duration=100, sleep_for=4):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")
@ -117,7 +117,7 @@ class TestKeystoneV2Driver(manager_congress.ScenarioPolicyBase):
return True
if not test.call_until_true(func=_check_data_table_keystone_roles,
duration=20, sleep_for=4):
duration=100, sleep_for=4):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")
@ -152,6 +152,6 @@ class TestKeystoneV2Driver(manager_congress.ScenarioPolicyBase):
return True
if not test.call_until_true(func=_check_data_table_keystone_tenants,
duration=20, sleep_for=4):
duration=100, sleep_for=5):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")

View File

@ -11,6 +11,8 @@
# 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 tempest_lib import decorators
from tempest import config
from tempest.scenario import manager_congress
from tempest import test
@ -36,12 +38,12 @@ class TestMuranoDriver(manager_congress.ScenarioPolicyBase):
def setUp(self):
super(TestMuranoDriver, self).setUp()
self.congress_client = (
self.admin_manager.congress_client.congress_client)
self.admin_manager.congress_client)
@decorators.skip_because(bug='1486246')
@test.attr(type='smoke')
@test.services('compute')
# TODO(alexsyip): figure out why this fails and fix it.
def xxtest_murano_predeployment(self):
def test_murano_predeployment(self):
def _delete_policy_rules(policy_name):
result = self.congress_client.list_policy_rules(

View File

@ -15,6 +15,7 @@
import time
from oslo_log import log as logging
from tempest_lib import decorators
from tempest import clients # noqa
from tempest import config # noqa
@ -80,6 +81,7 @@ class TestNeutronV2Driver(manager_congress.ScenarioPolicyBase):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")
@decorators.skip_because(bug='1486246')
@test.attr(type='smoke')
@test.services('network')
def test_neutronv2_ports_tables(self):
@ -304,6 +306,7 @@ class TestNeutronV2Driver(manager_congress.ScenarioPolicyBase):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")
@decorators.skip_because(bug='1486246')
@test.attr(type='smoke')
@test.services('network')
def test_neutronv2_security_groups_table(self):

View File

@ -13,6 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from tempest_lib import decorators
from tempest import config # noqa
from tempest import exceptions # noqa
@ -43,6 +44,7 @@ class TestNovaDriver(manager_congress.ScenarioPolicyBase):
self.datasource_id = manager_congress.get_datasource_id(
self.admin_manager.congress_client, 'nova')
@decorators.skip_because(bug='1486246')
@test.attr(type='smoke')
@test.services('compute', 'network')
def test_nova_datasource_driver_servers(self):
@ -85,7 +87,7 @@ class TestNovaDriver(manager_congress.ScenarioPolicyBase):
return False
if not test.call_until_true(func=_check_data_table_nova_servers,
duration=20, sleep_for=4):
duration=100, sleep_for=5):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")
@ -122,6 +124,6 @@ class TestNovaDriver(manager_congress.ScenarioPolicyBase):
return False
if not test.call_until_true(func=_check_data_table_nova_flavors,
duration=20, sleep_for=4):
duration=100, sleep_for=5):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")

View File

@ -19,6 +19,8 @@ import subprocess
import tempfile
from oslo_log import log as logging
from tempest_lib import decorators
from tempest import config
from tempest import exceptions
from tempest import manager as tempestmanager
@ -173,6 +175,7 @@ class TestHA(manager_congress.ScenarioPolicyBase):
LOG.debug('created fake driver: %s', str(ret['id']))
return ret['id']
@decorators.skip_because(bug='1486246')
@test.attr(type='smoke')
def test_datasource_db_sync_add(self):
# Verify that a replica adds a datasource when a datasource
@ -244,6 +247,7 @@ class TestHA(manager_congress.ScenarioPolicyBase):
if need_to_delete_fake:
self.admin_manager.congress_client.delete_datasource(fake_id)
@decorators.skip_because(bug='1486246')
@test.attr(type='smoke')
def test_datasource_db_sync_remove(self):
# Verify that a replica removes a datasource when a datasource

View File

@ -14,6 +14,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from tempest_lib import decorators
from tempest import config # noqa
from tempest import exceptions # noqa
@ -86,6 +87,7 @@ class TestPolicyBasicOps(manager_congress.ScenarioPolicyBase):
create_kwargs=create_kwargs)
return instance
@decorators.skip_because(bug='1486246')
@test.attr(type='smoke')
@test.services('compute', 'network')
def test_execution_action(self):
@ -118,6 +120,7 @@ class TestPolicyBasicOps(manager_congress.ScenarioPolicyBase):
self.assertEqual(metadata, return_meta,
"Failed to execute action via policy API")
@decorators.skip_because(bug='1486246')
@test.attr(type='smoke')
@test.services('compute', 'network')
def test_policy_basic_op(self):
@ -151,10 +154,11 @@ class TestPolicyBasicOps(manager_congress.ScenarioPolicyBase):
else:
return False
if not test.call_until_true(func=check_data, duration=20, sleep_for=4):
if not test.call_until_true(func=check_data, duration=100, sleep_for=5):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")
@decorators.skip_because(bug='1486246')
@test.attr(type='smoke')
@test.services('compute', 'network')
def test_reactive_enforcement(self):
@ -207,7 +211,7 @@ class TestCongressDataSources(manager_congress.ScenarioPolicyBase):
if not test.call_until_true(
func=_check_all_datasources_are_initialized,
duration=20, sleep_for=4):
duration=100, sleep_for=5):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")
@ -226,6 +230,6 @@ class TestCongressDataSources(manager_congress.ScenarioPolicyBase):
return False
return True
if not test.call_until_true(func=check_data, duration=20, sleep_for=4):
if not test.call_until_true(func=check_data, duration=100, sleep_for=5):
raise exceptions.TimeoutException("Data did not converge in time "
"or failure in server")