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

Commit 63c2029

Browse files
committed
Automate: test_default_miq_group_is_tenant_group
1 parent 895f5ec commit 63c2029

File tree

2 files changed

+32
-19
lines changed

2 files changed

+32
-19
lines changed

cfme/tests/cloud_infra_common/test_discovery_and_support.py

+32
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from cfme.common.provider import BaseProvider
55
from cfme.infrastructure.provider.scvmm import SCVMMProvider
66
from cfme.markers.env_markers.provider import all_required
7+
from cfme.markers.env_markers.provider import ONE
78
from cfme.utils.appliance.implementations.ui import navigate_to
89
from cfme.utils.blockers import BZ
910
from cfme.utils.log import logger
@@ -94,3 +95,34 @@ def test_provider_type_support(appliance, soft_assert):
9495
'Provider type [{}] not in Add provider form options [{}]'
9596
.format(type_text, options)
9697
)
98+
99+
100+
@test_requirements.configuration
101+
@pytest.mark.meta(automates=[1625788])
102+
@pytest.mark.provider([BaseProvider], scope="module", selector=ONE)
103+
def test_default_miq_group_is_tenant_group(appliance, create_vm):
104+
"""
105+
Test whether the
106+
Tenant.root_tenant.default_miq_group.tenant_group? == true
107+
108+
Bugzilla:
109+
1625788
110+
111+
Polarion:
112+
assignee: jhenner
113+
casecomponent: Configuration
114+
initialEstimate: 1/8h
115+
startsin: 5.10.0.18
116+
caseimportance: high
117+
setup:
118+
1. Provision a VM on the provider portal and wait for the VM to appear in CFME.
119+
testSteps:
120+
1. Navigate to VM's details page and check value of 'Group' under 'Lifecycle' table.
121+
2. Run 'Tenant.root_tenant.default_miq_group.tenant_group? == true' command in
122+
rails console and ensure it's success.
123+
"""
124+
view = navigate_to(create_vm, "Details")
125+
assert view.entities.summary("Lifecycle").get_text_of("Group") == "Tenant My Company access"
126+
assert appliance.ssh_client.run_rails_command(
127+
"Tenant.root_tenant.default_miq_group.tenant_group? == true"
128+
).success

cfme/tests/configure/test_config_manual.py

-19
Original file line numberDiff line numberDiff line change
@@ -236,22 +236,3 @@ def test_subscription_disruption():
236236
appeared in global appliance
237237
"""
238238
pass
239-
240-
241-
@pytest.mark.manual
242-
@pytest.mark.meta(coverage=[1625788])
243-
def test_default_miq_group_is_tenant_group():
244-
"""
245-
Test whether the
246-
Tenant.root_tenant.default_miq_group.tenant_group? == true
247-
248-
Polarion:
249-
assignee: jhenner
250-
casecomponent: Configuration
251-
initialEstimate: 1/8h
252-
startsin: 5.10.0.18
253-
caseimportance: high
254-
Bugzilla:
255-
1625788
256-
"""
257-
pass

0 commit comments

Comments
 (0)