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 Access Groups): Add support for access group templates #266

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

hariarla
Copy link
Contributor

@hariarla hariarla commented Jul 22, 2023

PR summary

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 access group template and assignment APIs.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

API Definition
Stage
Production

Tests:
Screenshot 2023-07-23 at 1 44 27 AM
Example Tests:
Screenshot 2023-07-23 at 1 50 53 AM
Integration Tests:
Screenshot 2023-07-23 at 1 56 48 AM

@padamstx padamstx self-assigned this Jul 24, 2023
@padamstx padamstx self-requested a review July 24, 2023 13:48
@hariarla hariarla force-pushed the enable_ag_template_operations_gosdk branch 2 times, most recently from 45c5ec8 to 5fddbe7 Compare July 24, 2023 19:36
@hariarla
Copy link
Contributor Author

Tests:
Screenshot 2023-07-25 at 12 49 34 AM

Integration Tests:
Screenshot 2023-07-25 at 12 55 38 AM

**Example Tests:
Screenshot 2023-07-25 at 1 01 47 AM
**

@padamstx padamstx requested a review from pyrooka July 25, 2023 13:13
@padamstx padamstx assigned pyrooka and unassigned padamstx Jul 25, 2023
Copy link
Member

@pyrooka pyrooka left a comment

Choose a reason for hiding this comment

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

Please fix the issues I mentioned!
To fix the builds you have to re-add the test imports and to fix the style issues you should run go fmt iamaccessgroupsv2/*.go. That will probably solve most of the code style related problems.

Comment on lines 29 to 30
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Copy link
Member

Choose a reason for hiding this comment

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

Why these have been removed? As you can see the builds failed due these missing dependencies.

iamaccessgroupsv2/iam_access_groups_v2_examples_test.go Outdated Show resolved Hide resolved
iamaccessgroupsv2/iam_access_groups_v2_integration_test.go Outdated Show resolved Hide resolved
iamaccessgroupsv2/iam_access_groups_v2_integration_test.go Outdated Show resolved Hide resolved
iamaccessgroupsv2/iam_access_groups_v2_integration_test.go Outdated Show resolved Hide resolved
@padamstx padamstx removed their request for review August 2, 2023 20:00
@hariarla hariarla force-pushed the enable_ag_template_operations_gosdk branch from 5fddbe7 to 7c0e2d0 Compare August 4, 2023 15:20
@hariarla
Copy link
Contributor Author

hariarla commented Aug 4, 2023

Basic Tests:
Screenshot 2023-08-04 at 7 32 53 PM
Screenshot 2023-08-04 at 7 33 35 PM

Integration Tests:
Screenshot 2023-08-04 at 8 18 20 PM
Example Tests:
Screenshot 2023-08-04 at 8 36 32 PM

@padamstx padamstx assigned padamstx and unassigned pyrooka Aug 7, 2023
@padamstx padamstx self-requested a review August 7, 2023 18:39
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


getTemplateVersionOptions := iamAccessGroupsService.NewGetTemplateVersionOptions(
testTemplateId,
"2",
Copy link
Member

Choose a reason for hiding this comment

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

In terms of this being an example for users to follow, would it be better to use a variable here that is simply assigned the value "2"

Suggested change
"2",
testTemplateVersion,

})
It(`GetTemplateVersion request example 2`, func() {
fmt.Println("\nGetTemplateVersion() result:")
// begin-get_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.

You cannot have >1 request example per operation.

@padamstx padamstx force-pushed the enable_ag_template_operations_gosdk branch from 9b2e4e1 to 7c0e2d0 Compare August 9, 2023 14:57
@hariarla hariarla force-pushed the enable_ag_template_operations_gosdk branch from 6443f63 to 2d7dcb5 Compare August 11, 2023 08:16
@hariarla hariarla force-pushed the enable_ag_template_operations_gosdk branch from 2d7dcb5 to fdb85ee Compare August 11, 2023 13:39
@hariarla
Copy link
Contributor Author

Unit Tests:
Screenshot 2023-08-11 at 2 31 09 PM

Integration Tests:
Screenshot 2023-08-11 at 2 31 33 PM

Example Tests:
Screenshot 2023-08-11 at 7 08 30 PM

@padamstx padamstx merged commit f95195a into main Aug 11, 2023
@padamstx padamstx deleted the enable_ag_template_operations_gosdk branch August 11, 2023 14:30
padamstx pushed a commit that referenced this pull request Aug 12, 2023
ibm-devx-sdk pushed a commit that referenced this pull request Aug 12, 2023
# [0.44.0](v0.43.0...v0.44.0) (2023-08-12)

### Features

* **IAM Access Groups:** add support for access group templates ([#266](#266)) ([afe6400](afe6400))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants