nova/nova/tests
Artom Lifshitz 0668bc1a86 func tests: move _run_periodics() into base class
There are two almost identical implementations of the _run_periodics()
helper - and a third one would have joined them in a subsequent patch,
if not for this patch. This patch moves the _run_periodics() to the
base test class. In addition, _run_periodics() depends on the
self.computes dict used for compute service tracking. The method that
populates that dict, _start_compute(), is therefore also moved to the
base class.

This enables some light refactoring of existing tests that need
either the _run_periodics() helper, or the compute service tracking.

In addition, a needless override of _start_compute() in
test_aggregates that provided no added value is removed. This is done
to avoid any potential confusion around _start_compute()'s role.

Conflicts:
  nova/tests/functional/compute/test_cache_image.py
  nova/tests/functional/integrated_helpers.py
  nova/tests/functional/test_scheduler.py

NOTE(stephenfin): Conflicts are due to the two test files not existing
yet and the large number of helpers missing from the
'integrated_helpers' class.

Changes:
  nova/tests/functional/regressions/test_bug_1889108.py

NOTE(stephenfin): Changes are due to a backport that was modified to
remove use of the functions we're adding here.

Change-Id: I33d8ac0a1cae0b2d275a21287d5e44c008a68122
(cherry picked from commit ee05cd8b9e)
2021-02-04 17:06:53 +00:00
..
functional func tests: move _run_periodics() into base class 2021-02-04 17:06:53 +00:00
unit func tests: move _run_periodics() into base class 2021-02-04 17:06:53 +00:00
__init__.py
fixtures.py Use admin neutron client to see if instance has qos ports 2019-11-13 13:40:59 +01:00
json_ref.py Transform instance.exists notification 2018-06-05 12:51:30 +00:00