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

Commit

Permalink
Tests for grouping cluster candu graphs by tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nachandr committed Apr 10, 2019
1 parent 96f7726 commit 279db12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cfme/tests/candu/test_graph_groupbytag.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'network',
'cpu_state']

INTERVAL = ['hourly', 'daily']
INTERVAL = ['Hourly', 'Daily']

GROUP_BY = ['VM Location']

Expand All @@ -31,10 +31,10 @@
@pytest.fixture(scope='function')
def entity_object(temp_appliance_extended_db, entity):
vm = temp_appliance_extended_db.rest_api.collections.vms.get(name=CANDU_VM)
if entity == 'Host':
if entity == 'host':
vm_host = vm.host.name
return temp_appliance_extended_db.collections.hosts.instantiate(name=vm_host)
elif entity == 'Cluster':
elif entity == 'cluster':
provider = temp_appliance_extended_db.rest_api.collections.providers.get(id=vm.ems_id)
cluster = temp_appliance_extended_db.rest_api.collections.clusters.get(id=vm.ems_cluster_id)
provider_object = temp_appliance_extended_db.collections.infra_providers.instantiate(
Expand Down

0 comments on commit 279db12

Please sign in to comment.