-
Notifications
You must be signed in to change notification settings - Fork 669
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
IAM Identity: account settings #4221
IAM Identity: account settings #4221
Conversation
96b3c34
to
96f078d
Compare
@hkantare if an older version is being used then the resourcecontroller is failing. this needs to be fixed by the respective contributor. I have all the changes added for iamidentity resources and datasources. |
96f078d
to
485f6eb
Compare
@hkantare rebased and updated, can be reviewed and merged |
@@ -306,7 +357,10 @@ func resourceIbmIamAccountSettingsUpdate(context context.Context, d *schema.Reso | |||
updateAccountSettingsOptions.SetMfa(mfa_str) | |||
hasChange = true | |||
} | |||
|
|||
if d.HasChange("user_mfa") { | |||
// TODO: handle UserMfa of type TypeList -- not primitive, not model |
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.
We need to handle the update of "user_mfa"
@@ -126,9 +128,15 @@ func testAccCheckIbmIamAccountSettingsUpdateConfig() string { | |||
restrict_create_platform_apikey = "%s" | |||
if_match = "%s" | |||
mfa = "%s" | |||
user_mfa { | |||
iam_id = "iam_id" |
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 add a test case to add multiple users and update operation to remove or add users
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 have added two tests, one is to test with an empty list of user_mfa, and another one with 2 users.
485f6eb
to
4279736
Compare
@hkantare Hii, the comments are addressed and PR is updated :) |
Community Note
Relates OR Closes #0000
Output from acceptance testing: