From 7332716dc835cd72b0beefc38afda2697bd99e02 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sun, 6 Oct 2019 20:43:02 +0200 Subject: Count all hypervisors by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If one hypervisor is down, few tempest test fails. User is free to set SKIP_DOWN_HYPERVISORS if it's down on purpose. Change-Id: I7b6a4d0d8f67755d8c1550fd1bc6fd707634f68b Signed-off-by: Cédric Ollivier --- functest/tests/unit/openstack/rally/test_rally.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functest/tests/unit') diff --git a/functest/tests/unit/openstack/rally/test_rally.py b/functest/tests/unit/openstack/rally/test_rally.py index c430e9794..ae3c3976b 100644 --- a/functest/tests/unit/openstack/rally/test_rally.py +++ b/functest/tests/unit/openstack/rally/test_rally.py @@ -291,7 +291,7 @@ class OSRallyTesting(unittest.TestCase): def test_prepare_run_flavor_alt_creation_failed(self, *args): # pylint: disable=unused-argument self.rally_base.stests = ['test1', 'test2'] - with mock.patch.object(self.rally_base, 'count_active_hypervisors') \ + with mock.patch.object(self.rally_base, 'count_hypervisors') \ as mock_list_hyperv, \ mock.patch.object(self.rally_base, 'create_flavor_alt', side_effect=Exception) \ -- cgit 1.2.3-korg