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

[1LP][RFR]Added test_keypair_ownership_association #9893

Merged
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
1 change: 1 addition & 0 deletions cfme/cloud/keypairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class KeyPairDetailsEntities(View):
title = Text('//div[@id="main-content"]//h1')
properties = SummaryTable(title='Properties')
relationships = SummaryTable(title='Relationships')
lifecycle = SummaryTable(title='Lifecycle')
smart_management = SummaryTable(title='Smart Management')


Expand Down
22 changes: 22 additions & 0 deletions cfme/tests/cloud/test_keypairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,25 @@ def test_keypair_visibility_in_tenants(appliance, child_tenant_admin_user):

with child_tenant_admin_user:
assert key_pair_obj.exists


mmojzis marked this conversation as resolved.
Show resolved Hide resolved
@test_requirements.cloud
@pytest.mark.meta(automates=[1713400])
def test_keypair_ownership_association(appliance, keypair):
"""
Bugzilla: 1713400

Polarion:
assignee: mmojzis
casecomponent: Cloud
caseimportance: medium
initialEstimate: 1/4h
"""
owner_name = 'Administrator'
group_name = 'EvmGroup-administrator'
owner = appliance.collections.users.instantiate(owner_name)
group = appliance.collections.groups.instantiate(group_name)
keypair.set_ownership(group=group, owner=owner)
view = navigate_to(keypair, 'Details')
assert owner_name == view.entities.lifecycle.get_text_of('Owner')
assert group_name == view.entities.lifecycle.get_text_of('Group')