-
Notifications
You must be signed in to change notification settings - Fork 671
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
feat(IAM Policy Management): add support for v2/policies API #4381
Conversation
Since you made changes to existing code and IAMPAP is widely used resource by most of the customers and users |
Yes, I'll upload those as soon as I am able. Is there also a way for terraform team to run all of the acceptance tests? I think there are some that cannot pass using my person credentials (they conflict with existing admin tests, and they failed locally before I made any changes). |
@swcolley |
Fix conflicts in go.mod and go.sum |
User Policy All Tests shaunsmacibm@Shauns-MBP terraform-provider-ibm % go test ./ibm/service/iampolicy/ -run=TestAccIBMIAMUserPolicy -timeout 700m
ok github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/iampolicy 450.424s Access Group Policy All Tests shaunsmacibm@Shauns-MBP terraform-provider-ibm % go test ./ibm/service/iampolicy/ -run=TestAccIBMIAMAccessGroupPolicy -timeout 700m
ok github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/iampolicy 513.116s Trusted Profile Policy All Tests shaunsmacibm@Shauns-MBP terraform-provider-ibm % go test ./ibm/service/iampolicy/ -run=TestAccIBMIAMTrustedProfilePolicy -timeout 700m
ok github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/iampolicy 460.279s Service Policy All Tests: shaunsmacibm@Shauns-MBP terraform-provider-ibm % go test ./ibm/service/iampolicy/ -run=TestAccIBMIAMServicePolicy -timeout 700m
ok github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/iampolicy 445.915s Authorization Policy (no changes) All Tests: shaunsmacibm@Shauns-MBP terraform-provider-ibm % go test ./ibm/service/iampolicy/ -run=TestAccIBMIAMAuthorizationPolicy -timeout 700m
ok github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/iampolicy 43.568s |
Signed-off-by: Shaun Colley <[email protected]>
79fa0c9
to
4448aef
Compare
Update markdown with info about rule_conditons and catch for updating v1/policy with rule/pattern
c62f4cd
to
0bd613d
Compare
Reformat for failing CI.
2dc4776
to
06bd52a
Compare
Can we fix the conflict in go.sum |
Updated. |
…ud#4381) Signed-off-by: Shaun Colley <[email protected]>
Community Note
Relates: https://github.ibm.com/IAM/AM-issues/issues/926
This PR adds support for v2/policies which provides support for time-based conditions. For more information see: https://cloud.ibm.com/docs/account?topic=account-iam-time-based&interface=ui
Since there are so many tests and changes I'd appreciate a full review of the acceptance tests. I ran existing policy and the new tests in my local environment, but a full run of all tests would be appreciated.
Output from acceptance testing: