From 8d7029c0070d0865114127be7ef97c9b7989f672 Mon Sep 17 00:00:00 2001 From: mmidolesov Date: Sat, 15 Feb 2020 05:23:52 -0800 Subject: [PATCH] Skip test_get_hypervisor_uptime check in tempest VMware driver does not support hypervisor uptime check so we are skipping this tempest check. --- tempest/api/compute/admin/test_hypervisor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tempest/api/compute/admin/test_hypervisor.py b/tempest/api/compute/admin/test_hypervisor.py index 9822c2619c..26590126a9 100644 --- a/tempest/api/compute/admin/test_hypervisor.py +++ b/tempest/api/compute/admin/test_hypervisor.py @@ -76,6 +76,7 @@ def test_get_hypervisor_uptime(self): # from the list of hypervisors to test. ironic_only = True hypers_without_ironic = [] + skip_vmware_driver = False for hyper in hypers: details = (self.client.show_hypervisor(hyper['id']) ['hypervisor']) @@ -83,10 +84,16 @@ def test_get_hypervisor_uptime(self): details['state'] == 'up'): hypers_without_ironic.append(hyper) ironic_only = False + if details['hypervisor_type'] == 'VMware vCenter Server': + skip_vmware_driver = True if ironic_only: raise self.skipException( "Ironic does not support hypervisor uptime") + + if skip_vmware_driver: + raise self.skipException( + "VMware vCenter Server does not support hypervisor uptime") has_valid_uptime = False for hyper in hypers_without_ironic: