Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tempest/api/compute/admin/test_hypervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,24 @@ 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'])
if (details['hypervisor_type'] != 'ironic' and
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:
Expand Down