-
Notifications
You must be signed in to change notification settings - Fork 298
rgw/iam: customer managed policy #646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Raja Sharma <[email protected]>
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.
great start 👍
# Cleanup | ||
iam_root.delete_policy(PolicyArn=policy['Policy']['Arn']) |
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.
once we support iam:ListPolicies
, we can add a nuke_policies()
to the iam_root
/iam_alt_root
fixtures in iam.py
so that test cases don't have to handle cleanup on their own
@@ -53,3 +53,4 @@ markers = | |||
user_policy | |||
versioning | |||
webidentity_test | |||
policy |
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.
can we call this managed_policy
?
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.
@cbodley overall related to this SPIKE can we call managed_policy
instead of policy
or customer_managed_policy
?
but there is other existing features related managed_policy
in will that create any confusion?
rgw_rest_user_policy.cc
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.
but AWS presents it as policy
while create, delete, get etc
|
||
@pytest.mark.policy | ||
@pytest.mark.iam_account | ||
def test_get_policy(iam_root): |
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.
you can add a get test for a non existent policy.
Uh oh!
There was an error while loading. Please reload this page.