Skip to content
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 policy templates #194

Merged
merged 11 commits into from
Sep 5, 2023

Conversation

swcolley
Copy link
Contributor

@swcolley swcolley commented May 18, 2023

PR summary

Added feature support for Enterprise IAM work, policy templates and get template assigments.

Issue: https://github.ibm.com/IAM/AM-issues/issues/1346

PR Checklist

Please make sure that your PR fulfills the following requirements:

  • The commit message follows the Angular Commit Message Guidelines.
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Current vs new behavior

SDK adopters will be able to call policy template and assignment APIs.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

API defintion:
Staging
Prod

Test information:

Example Tests:

...
deletePolicyTemplateVersion() response status code: 204
deletePolicyTemplate() response status code: 204
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  22.478 s
[INFO] Finished at: 2023-05-18T15:49:44-05:00
[INFO] ------------------------------------------------------------------------

Integration Tests:

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.ibm.cloud.platform_services.iam_policy_management.v1.IamPolicyManagementIT
[INFO] Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.397 s - in com.ibm.cloud.platform_services.iam_policy_management.v1.IamPolicyManagementIT
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 24, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:3.0.0-M7:verify (default) @ iam-policy-management ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ iam-policy-management ---
[INFO] Installing /Users/shaunsmacibm/Desktop/cloud-platform/iam/sdk/platform-services-java-sdk/modules/iam-policy-management/target/iam-policy-management-99-SNAPSHOT.jar to /Users/shaunsmacibm/.m2/repository/com/ibm/cloud/iam-policy-management/99-SNAPSHOT/iam-policy-management-99-SNAPSHOT.jar
[INFO] Installing /Users/shaunsmacibm/Desktop/cloud-platform/iam/sdk/platform-services-java-sdk/modules/iam-policy-management/pom.xml to /Users/shaunsmacibm/.m2/repository/com/ibm/cloud/iam-policy-management/99-SNAPSHOT/iam-policy-management-99-SNAPSHOT.pom
[INFO] Installing /Users/shaunsmacibm/Desktop/cloud-platform/iam/sdk/platform-services-java-sdk/modules/iam-policy-management/target/iam-policy-management-99-SNAPSHOT-javadoc.jar to /Users/shaunsmacibm/.m2/repository/com/ibm/cloud/iam-policy-management/99-SNAPSHOT/iam-policy-management-99-SNAPSHOT-javadoc.jar
[INFO] Installing /Users/shaunsmacibm/Desktop/cloud-platform/iam/sdk/platform-services-java-sdk/modules/iam-policy-management/target/iam-policy-management-99-SNAPSHOT-sources.jar to /Users/shaunsmacibm/.m2/repository/com/ibm/cloud/iam-policy-management/99-SNAPSHOT/iam-policy-management-99-SNAPSHOT-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  38.420 s
[INFO] Finished at: 2023-05-18T16:01:23-05:00
[INFO] ------------------------------------------------------------------------

@swcolley swcolley marked this pull request as draft May 18, 2023 21:02
Signed-off-by: Shaun Colley <shaun.colley@ibm.com>
Signed-off-by: Shaun Colley <shaun.colley@ibm.com>
@swcolley
Copy link
Contributor Author

Tests passed after latest commit fix:
Examples:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  21.978 s
[INFO] Finished at: 2023-05-22T17:07:36-05:00
[INFO] ------------------------------------------------------------------------

Integration:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  38.166 s
[INFO] Finished at: 2023-05-22T17:07:10-05:00
[INFO] ------------------------------------------------------------------------

@padamstx padamstx self-assigned this May 25, 2023
@padamstx padamstx self-requested a review May 25, 2023 20:30
@swcolley swcolley marked this pull request as ready for review May 26, 2023 16:17
@padamstx padamstx changed the title feat(IAM Policy Management): Add support for policy templates feat(IAM Policy Management): add support for policy templates May 31, 2023
Copy link
Member

@padamstx padamstx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes are fine as they are, but I'll add the same comment here as I did in the Go PR... it would be a lot better if the API definition defined all the appropriate link objects so that the integration tests and examples code would be generated to support the inter-operation dependencies, etc.

@@ -90,6 +108,10 @@ protected IamPolicyManagementExamples() { }
private static String exampleV2PolicyEtag = null;
private static String exampleCustomRoleId = null;
private static String exampleCustomRoleEtag = null;
private static String exampleTemplateId = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comments here as in the Go PR about inter-operation dependencies, links, etc.

@CLAassistant
Copy link

CLAassistant commented Jun 28, 2023

CLA assistant check
All committers have signed the CLA.

@padamstx padamstx merged commit 6f752c2 into main Sep 5, 2023
3 checks passed
@padamstx padamstx deleted the policy-template branch September 5, 2023 16:44
ibm-devx-sdk pushed a commit that referenced this pull request Sep 5, 2023
# [0.40.0](0.39.1...0.40.0) (2023-09-05)

### Features

* **IAM Policy Management:** add support for policy templates ([#194](#194)) ([6f752c2](6f752c2))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 0.40.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants