-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add hcp_group_members resource #783
Add hcp_group_members resource #783
Conversation
7b3c40b
to
bc08d21
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Approving for now but left some small comments 🙂
"group": schema.StringAttribute{ | ||
Required: true, | ||
Description: fmt.Sprintf("The group's resource name in the format `%s`", | ||
"iam/organization/<organization_id>/group/<name>"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to ignore this one, thought it might make things more clear!
"iam/organization/<organization_id>/group/<name>"), | |
"iam/organization/<organization_id>/group/<resource_name>"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I nearly did that, but thought that a resource_name
was that whole path 🤔 . Should I replace the whole path with <resource_name>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good question! I think maybe we can follow how we label it in the portal? If to the user a resource_name
is the full iam/organization/<organization_id>/group/<name>
then I think we can leave it as is. 🤔
) | ||
|
||
func TestAccGroupMembersResource(t *testing.T) { | ||
groupName := "iam/organization/d11d7309-5072-44f9-aaea-c8f37c09a8b5/group/group_members_terraform_resource_test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might help to add a comment that this group lives in the int tooling account just for documentation/readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add a comment here. I did have a bit of a comment here for a while, then realized this is a public repo and we may not want to reveal too much.
78343a0
to
9edc869
Compare
9edc869
to
7da6939
Compare
🛠️ Description
Jira: https://hashicorp.atlassian.net/browse/HCPIE-1023
The resource
hcp_group_members
allows users to manage the members in anhcp_group
(resource/data source are added in another PR).🏗️ Acceptance tests
Output from acceptance testing: