nova/nova/tests/functional/regressions
Balazs Gibizer 1dfb72e048 Fix intermittently failing regression case
The test_unshelve_offloaded_fails_due_to_neutron could fail due to race
condition. The test case only waits for the first instance.save() call
at [1] but the allocation delete happens after it. This causes that the
test case can still see the allocation of the offloaded server in
placement.

The fix makes sure that the test waits for the second instance.save() by
checking for the host of the instance.

[1] https://github.com/openstack/nova/blob/stable/rocky/nova/compute/manager.py#L5274-L5288

Related-Bug #1862633

Change-Id: Ic1c3d35749fbdc7f5b6f6ec1e16b8fcf37c10de8
2020-03-16 15:30:32 +01:00
..
README.rst add a place for functional test to block specific regressions 2016-02-24 18:14:27 +00:00
__init__.py add a place for functional test to block specific regressions 2016-02-24 18:14:27 +00:00
test_bug_1404867.py functional: Make '_IntegratedTestBase' subclass 'InstanceHelperMixin' 2019-12-06 15:36:23 +00:00
test_bug_1522536.py replace chance with filter scheduler in func tests 2017-08-16 14:42:51 +00:00
test_bug_1541691.py Remove unused conf 2016-09-02 09:02:23 +08:00
test_bug_1548980.py tests: Stop starting consoleauth in functional tests 2019-06-17 15:18:31 +01:00
test_bug_1552888.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
test_bug_1554631.py Catching OverQuota Exception 2017-05-03 19:00:34 +00:00
test_bug_1558866.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
test_bug_1568208.py Fix generation of Guru Meditation Report 2016-04-13 17:00:32 +03:00
test_bug_1595962.py Switch some GitHub URLs to point to opendev.org 2019-08-19 21:08:27 +01:00
test_bug_1620248.py Stop using mox stubs in cast_as_call.py 2017-07-25 00:40:41 +00:00
test_bug_1669054.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1670627.py functional: Rework '_delete_server' 2019-11-15 16:06:57 +00:00
test_bug_1671648.py Switch some GitHub URLs to point to opendev.org 2019-08-19 21:08:27 +01:00
test_bug_1675570.py functional: Rework '_delete_server' 2019-11-15 16:06:57 +00:00
test_bug_1678326.py functional: Rework '_delete_server' 2019-11-15 16:06:57 +00:00
test_bug_1679750.py functional: Add '_delete_server' to 'InstanceHelperMixin' 2020-01-15 10:31:24 +00:00
test_bug_1682693.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1689692.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1702454.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1713783.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1718455.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1718512.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1719730.py functional: Remove 'api' parameter 2019-12-06 15:35:33 +00:00
test_bug_1732947.py functional: Make '_IntegratedTestBase' subclass 'InstanceHelperMixin' 2019-12-06 15:36:23 +00:00
test_bug_1735407.py functional: Remove 'api' parameter 2019-12-06 15:35:33 +00:00
test_bug_1741125.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1741307.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1746483.py functional: Remove 'api' parameter 2019-12-06 15:35:33 +00:00
test_bug_1764556.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1764883.py functional: Remove 'api' parameter 2019-12-06 15:35:33 +00:00
test_bug_1778305.py Don't generate service UUID for deleted services 2019-07-30 18:48:51 +00:00
test_bug_1780373.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1781286.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1781710.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1784353.py functional: Remove 'api' parameter 2019-12-06 15:35:33 +00:00
test_bug_1790204.py Make API always RPC cast to conductor for resize/migrate 2019-11-13 10:19:53 -05:00
test_bug_1794996.py functional: Remove 'api' parameter 2019-12-06 15:35:33 +00:00
test_bug_1797580.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1806064.py functional: Add '_delete_server' to 'InstanceHelperMixin' 2020-01-15 10:31:24 +00:00
test_bug_1806515.py functional: Remove 'api' parameter 2019-12-06 15:35:33 +00:00
test_bug_1815153.py functional: Add '_create_server' helper 2020-01-20 14:32:43 +00:00
test_bug_1823370.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1825020.py functional: Remove 'api' parameter 2019-12-06 15:35:33 +00:00
test_bug_1825034.py functional: Add '_create_server' helper 2020-01-20 14:32:43 +00:00
test_bug_1825537.py functional: Remove 'api' parameter 2019-12-06 15:35:33 +00:00
test_bug_1830747.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1831771.py functional: Avoid race and fix use of self.api within test_bug_1831771 2020-03-04 13:39:45 +00:00
test_bug_1835822.py functional: Remove 'api' parameter 2019-12-06 15:35:33 +00:00
test_bug_1837955.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1839560.py nova-manage db archive_deleted_rows is not multi-cell aware 2019-08-27 06:01:58 +00:00
test_bug_1843090.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1845291.py functional: Remove 'api' parameter 2019-12-06 15:35:33 +00:00
test_bug_1848343.py functional: Add '_create_server' helper 2020-01-20 14:32:43 +00:00
test_bug_1849165.py functional: Remove 'api' parameter 2019-12-06 15:35:33 +00:00
test_bug_1849409.py functional: Add '_delete_server' to 'InstanceHelperMixin' 2020-01-15 10:31:24 +00:00
test_bug_1852458.py functional: Add unified '_build_server' helper function 2020-01-15 10:31:24 +00:00
test_bug_1862633.py Fix intermittently failing regression case 2020-03-16 15:30:32 +01:00

README.rst

Tests for Specific Regressions

When we have a bug reported by end users that we can write a full stack reproduce on, we should. And we should keep a regression test for that bug in our tree. It can be deleted at some future date if needed, but largely should not be changed.

Writing Regression Tests

  • These should be full stack tests which inherit from nova.test.TestCase directly. (This is to prevent coupling with other tests).
  • They should setup a full stack cloud in their setUp via fixtures
  • They should each live in a file which is named test_bug######.py

Writing Tests Before the Bug is Fixed

TODO describe writing and landing tests before the bug is fixed as a reproduce.