Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
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
32 changes: 32 additions & 0 deletions cfme/tests/cloud_infra_common/test_discovery_and_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from cfme.common.provider import BaseProvider
from cfme.infrastructure.provider.scvmm import SCVMMProvider
from cfme.markers.env_markers.provider import all_required
from cfme.markers.env_markers.provider import ONE
from cfme.utils.appliance.implementations.ui import navigate_to
from cfme.utils.blockers import BZ
from cfme.utils.log import logger
Expand Down Expand Up @@ -94,3 +95,34 @@ def test_provider_type_support(appliance, soft_assert):
'Provider type [{}] not in Add provider form options [{}]'
.format(type_text, options)
)


@test_requirements.configuration
@pytest.mark.meta(automates=[1625788])
@pytest.mark.provider([BaseProvider], scope="module", selector=ONE)
def test_default_miq_group_is_tenant_group(appliance, create_vm):
"""
Test whether the
Tenant.root_tenant.default_miq_group.tenant_group? == true

Bugzilla:
1625788

Polarion:
assignee: jhenner
casecomponent: Configuration
initialEstimate: 1/8h
startsin: 5.10.0.18
caseimportance: high
setup:
1. Provision a VM on the provider portal and wait for the VM to appear in CFME.
testSteps:
1. Navigate to VM's details page and check value of 'Group' under 'Lifecycle' table.
2. Run 'Tenant.root_tenant.default_miq_group.tenant_group? == true' command in
rails console and ensure it's success.
"""
view = navigate_to(create_vm, "Details")
assert view.entities.summary("Lifecycle").get_text_of("Group") == "Tenant My Company access"
assert appliance.ssh_client.run_rails_command(
"Tenant.root_tenant.default_miq_group.tenant_group? == true"
).success
19 changes: 0 additions & 19 deletions cfme/tests/configure/test_config_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,22 +236,3 @@ def test_subscription_disruption():
appeared in global appliance
"""
pass


@pytest.mark.manual
@pytest.mark.meta(coverage=[1625788])
def test_default_miq_group_is_tenant_group():
"""
Test whether the
Tenant.root_tenant.default_miq_group.tenant_group? == true

Polarion:
assignee: jhenner
casecomponent: Configuration
initialEstimate: 1/8h
startsin: 5.10.0.18
caseimportance: high
Bugzilla:
1625788
"""
pass