Problem/Motivation
When testing IAM permission validation, I encountered these warning messages.
Steps to reproduce
- Start to
Edita cloud config provider. - Set a user who doesn't have enough IAM permissions
- Disable IAM permission validation
Save
Issue fork cloud-3220666
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3220666-fix-warnings-with
changes, plain diff MR !283
Comments
Comment #3
kumikoono commented@yas Can you review the fix and test cases I added?
Comment #4
yas@kumikoono
Thank you for fixing the issue. I posted my comments for refactoring. Also, please fix a couple of coding standard violations: https://www.drupal.org/pift-ci-job/2103642
Thanks
Comment #5
kumikoono commented@yas Thanks for your review. Your comments are incorporated into the new patch.
Comment #6
yas@kumikoono
I want confirm if the logic can be changed or not. Please check my comments above. Thanks
Comment #7
kumikoono commentedI fixed the test errors caused by the change in how to get a random index of the regions array.
This array is an associative array, so the array_rand returns string, not int. This caused the type errors in testing. So, I reverted the changes and added the comment.
Comment #8
yas@kumikoono
Thank you for fixing the test error. I posted my comments above. Could you please check them? Thanks
Comment #9
kumikoono commentedComment #10
yas@kumikoono
Thank you for the update. The patch looks good now. The tests have been passed successfully, so I'll merge the patch to
4.x, and close this issue asFixed.Comment #13
yas