|
4 | 4 | from cfme.common.provider import BaseProvider
|
5 | 5 | from cfme.infrastructure.provider.scvmm import SCVMMProvider
|
6 | 6 | from cfme.markers.env_markers.provider import all_required
|
| 7 | +from cfme.markers.env_markers.provider import ONE |
7 | 8 | from cfme.utils.appliance.implementations.ui import navigate_to
|
8 | 9 | from cfme.utils.blockers import BZ
|
9 | 10 | from cfme.utils.log import logger
|
@@ -94,3 +95,34 @@ def test_provider_type_support(appliance, soft_assert):
|
94 | 95 | 'Provider type [{}] not in Add provider form options [{}]'
|
95 | 96 | .format(type_text, options)
|
96 | 97 | )
|
| 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 |
0 commit comments