Skip to content

Skip test_get_hypervisor_uptime check in tempest #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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