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

fix(IAM Policy Management): S2S support for enterprise accounts #317

Merged
merged 4 commits into from
Apr 10, 2024

Conversation

Rajesh-Pirati
Copy link
Contributor

PR summary

Authorization policy type support for enterprise accounts
issue: https://github.ibm.com/IAM/AM-issues/issues/2350

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

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

test results
example:
image

integration
image

Signed-off-by: Rajesh K Pirati <rajesh.pirati@ibm.com>
Copy link
Contributor

@swcolley swcolley left a comment

Choose a reason for hiding this comment

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

Minor change for examples.


It(`CreatePolicyS2STemplate request example`, func() {
fmt.Println("\nCreatePolicyS2STemplate() result:")
// begin-create_policy_template
Copy link
Contributor

Choose a reason for hiding this comment

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

This has the same name as line 708. Can be an issue with example generation in the docs if this are named same? I think there might be a collison.

Copy link
Member

Choose a reason for hiding this comment

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

yes, only one code block per operation

examplePolicyS2STemplateVersion = *policyTemplate.Version
fmt.Println(string(b))

// end-create_policy_template
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above.

…ents

Signed-off-by: Rajesh K Pirati <rajesh.pirati@ibm.com>
@Rajesh-Pirati Rajesh-Pirati marked this pull request as ready for review April 8, 2024 17:51
@padamstx padamstx self-assigned this Apr 8, 2024

It(`CreatePolicyS2STemplate request example`, func() {
fmt.Println("\nCreatePolicyS2STemplate() result:")
// begin-create_authorization_policy_template
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// begin-create_authorization_policy_template
// begin-create_policy_template

One example code block per operation, and the operation id in the "begin" and "end" comments must match the operationId in the API definition

@@ -820,6 +901,72 @@ var _ = Describe(`IamPolicyManagementV1 Examples Tests`, func() {
Expect(policyTemplate).ToNot(BeNil())
})

It(`CreatePolicyS2STemplateVersion request example`, func() {
fmt.Println("\nCreatePolicyS2STemplateVersion() result:")
// begin-create_authorization_policy_template_version
Copy link
Member

Choose a reason for hiding this comment

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

Same issue as the create_policy_template examples

@Rajesh-Pirati
Copy link
Contributor Author

ran again example tests after fixing the review comments
image

…ents on examples

Signed-off-by: Rajesh K Pirati <rajesh.pirati@ibm.com>
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.

LGTM

@CLAassistant
Copy link

CLAassistant commented Apr 10, 2024

CLA assistant check
All committers have signed the CLA.

@padamstx padamstx merged commit 4d65f3d into main Apr 10, 2024
3 of 4 checks passed
@padamstx padamstx deleted the enterprise-s2s-support branch April 10, 2024 18:46
ibm-devx-sdk pushed a commit that referenced this pull request Apr 10, 2024
## [0.62.4](v0.62.3...v0.62.4) (2024-04-10)

### Bug Fixes

* **IAM Policy Management:** S2S support for enterprise accounts ([#317](#317)) ([4d65f3d](4d65f3d))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 0.62.4 🎉

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.

None yet

5 participants