neutron/neutron/tests/functional/db
Slawek Kaplonski e6f22ce81c 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

Conflicts:
    neutron/tests/functional/db/test_migrations.py

Change-Id: Ie291fda7d23a696aaa1160d126a3cf72b08c522f
Related-Bug: #1687027
(cherry picked from commit c0fec67672)
2019-02-20 10:54:38 +01:00
..
migrations Add missing index on inserted_primary_key in migration 2016-09-08 19:02:37 -04:00
__init__.py Freeze models for healing migration 2014-07-14 18:36:05 +02:00
test_ipam.py Integration of IPAllocation 2017-06-21 17:33:41 +09:00
test_migrations.py Add new test decorator skip_if_timeout 2019-02-20 10:54:38 +01:00
test_models.py Juno_initial migration 2015-06-16 15:03:14 +03:00