neutron/neutron/tests/functional/db
Slawek Kaplonski c0fec67672 Add new test decorator skip_if_timeout
In some cases our db migration tests which run on MySQL are
failing with timeout and it happens due to slow VMs on which
job is running.
Sometimes it may also happen that timeout exception is raised
in the middle of some sqlalchemy operations and
sqlalchemy.InterfaceError is raised as last one.
Details about this exception can be found in [1].

To avoid many rechecks because of this reason this patch
introduces new decorator which is very similar to "unstable_test"
but will skip test only if one of exceptions mentioned above will
be raised.
In all other cases it will fail test.

That should be a bit more safe for us because we will not miss
some other failures raised in those tests and will avoid rechecks
because of this "well-known" reason described in related bug.

[1] http://sqlalche.me/e/rvf5

Change-Id: Ie291fda7d23a696aaa1160d126a3cf72b08c522f
Related-Bug: #1687027
2019-02-14 11:08:19 +01:00
..
migrations Use constant IP_VERSION_4/6 in functional tests 2018-08-27 21:45:56 +00:00
__init__.py Freeze models for healing migration 2014-07-14 18:36:05 +02:00
test_ipam.py Fix flake8 H404 errors 2018-10-05 21:48:41 +00:00
test_migrations.py Add new test decorator skip_if_timeout 2019-02-14 11:08:19 +01:00
test_models.py All functional tests logs results now 2018-11-21 19:58:18 +00:00
test_network.py remove the neutron.db._resource_extend module 2019-01-02 13:02:06 -07:00