-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] - check Key Pair list using aws provider #10188
Conversation
a7e811e
to
d264757
Compare
d264757
to
56e658b
Compare
@@ -157,6 +158,57 @@ def catalog_obj(appliance): | |||
cat.delete() | |||
|
|||
|
|||
@pytest.fixture() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parentheses aren't needed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
else: | ||
tenant_role.product_features = [ | ||
(['Everything', 'Compute', 'Clouds', 'Auth Key Pairs'], True) | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any difference between these two values. Also, since 5.10 and earlier versions are no longer being run against master, there's no need for version checking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@pytest.mark.customer_scenario | ||
@test_requirements.rbac | ||
@pytest.mark.tier(2) | ||
@pytest.mark.meta(coverage=[1730066]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the automates
keyword instead of coverage
for automated tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
c824d1b
to
f8ea0f3
Compare
provider=provider | ||
) | ||
assert keypair.exists | ||
request.addfinalizer(keypair.delete) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: Always better to add finalizer for create
operation. I think here you can use delete_if_exists
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
assert keypair.exists | ||
request.addfinalizer(keypair.delete) | ||
|
||
view = navigate_to(appliance.collections.cloud_keypairs, 'All') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: When we have BaseEnity
object you wan access CollectionEnity
with parent.
navigate_to(keypair.parent, 'All')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
f8ea0f3
to
366d5d0
Compare
366d5d0
to
60ec7f8
Compare
I detected some fixture changes in commit 60ec7f8 The local fixture
Please, consider creating a PRT run to make sure your fixture changes do not break existing usage 😃 |
adding_test test to check key pair able to see or not for custom user when tenant as Parent tenant and Child - tenant
Purpose or Intent
PRT Run
{{pytest: cfme/tests/configure/test_access_control.py -k test_aws_keypair_list --long-running -v}}