Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Add uncollect for more than 2 hosts and RHEVM and SCVMM providers
Browse files Browse the repository at this point in the history
  • Loading branch information
prichard77 committed Jan 19, 2020
1 parent 6c8cbe9 commit aeadda4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cfme/tests/infrastructure/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,14 @@ def setup_provider_min_hosts(request, appliance, provider, num_hosts):
setup_or_skip(request, provider)


UNCOLLECT_REASON = "Not enough hosts on provider type."


@test_requirements.infra_hosts
@pytest.mark.parametrize("num_hosts", [1, 2, 4])
@pytest.mark.uncollectif(
lambda provider, num_hosts: provider.one_of(RHEVMProvider, SCVMMProvider) and num_hosts > 2,
reason=UNCOLLECT_REASON)
def test_infrastructure_hosts_refresh_multi(appliance, setup_provider_min_hosts, provider,
num_hosts):
"""
Expand Down

0 comments on commit aeadda4

Please sign in to comment.