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

New Resource Service Catalog AppRegistry AttributeGroup #38183

Merged
merged 23 commits into from
Dec 5, 2024

Conversation

drewtul
Copy link
Contributor

@drewtul drewtul commented Jun 28, 2024

Description

New resource to manage Service Catalog AppRegistry Attribute Groups

Output from Acceptance Testing

%  make testacc TESTS=TestAccServiceCatalogAppRegistryAttributeGroup_ PKG=servicecatalogappregistry
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.4 test ./internal/service/servicecatalogappregistry/... -v -count 1 -parallel 20 -run='TestAccServiceCatalogAppRegistryAttributeGroup_'  -timeout 360m
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_null
    attribute_group_tags_gen_test.go:192: Tags with null values are not correctly handled with the Plugin Framework
--- SKIP: TestAccServiceCatalogAppRegistryAttributeGroup_tags_null (0.00s)
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_AddOnUpdate
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_AddOnUpdate
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnCreate
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnCreate
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnUpdate_Add
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnUpdate_Add
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnUpdate_Replace
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnUpdate_Replace
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_providerOnly
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_providerOnly
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_nonOverlapping
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_nonOverlapping
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_overlapping
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_overlapping
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_updateToProviderOnly
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_updateToProviderOnly
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_updateToResourceOnly
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_updateToResourceOnly
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_emptyResourceTag
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_emptyResourceTag
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_emptyProviderOnlyTag
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_emptyProviderOnlyTag
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_nullOverlappingResourceTag
    attribute_group_tags_gen_test.go:1448: Tags with null values are not correctly handled with the Plugin Framework
--- SKIP: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_nullOverlappingResourceTag (0.00s)
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_nullNonOverlappingResourceTag
    attribute_group_tags_gen_test.go:1512: Tags with null values are not correctly handled with the Plugin Framework
--- SKIP: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_nullNonOverlappingResourceTag (0.00s)
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnCreate
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnCreate
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnUpdate_Add
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnUpdate_Add
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnUpdate_Replace
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnUpdate_Replace
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_basic
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_basic
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_update
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_update
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroup_disappears
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroup_disappears
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_updateToResourceOnly
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnUpdate_Replace
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnCreate
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnCreate
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnUpdate_Replace
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_AddOnUpdate
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_disappears
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_basic
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_update
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_updateToProviderOnly
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_overlapping
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_providerOnly
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnUpdate_Add
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_nonOverlapping
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnUpdate_Add
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_emptyProviderOnlyTag
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_emptyResourceTag
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_disappears (35.99s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_basic (41.97s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnCreate (49.62s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_emptyResourceTag (50.78s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_emptyProviderOnlyTag (55.56s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_update (63.81s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_AddOnUpdate (68.00s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_updateToResourceOnly (69.32s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnUpdate_Replace (69.95s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnUpdate_Replace (73.99s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_updateToProviderOnly (74.03s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnUpdate_Add (78.31s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnCreate (81.63s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnUpdate_Add (86.96s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_nonOverlapping (94.39s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_overlapping (99.51s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_providerOnly (112.03s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags (114.94s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/servicecatalogappregistry  119.242s

@drewtul drewtul requested a review from a team as a code owner June 28, 2024 13:20
Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. generators Relates to code generators. service/servicecatalogappregistry Issues and PRs that pertain to the servicecatalogappregistry service. labels Jun 28, 2024
@terraform-aws-provider terraform-aws-provider bot added needs-triage Waiting for first response or review from a maintainer. partner Contribution from a partner. labels Jun 28, 2024
@drewtul drewtul changed the title New Resource Service Catalog AppRegisttry AttributeGroup New Resource Service Catalog AppRegistry AttributeGroup Jun 28, 2024
@drewtul drewtul marked this pull request as draft June 28, 2024 14:16
@drewtul drewtul marked this pull request as ready for review June 28, 2024 17:05
@justinretzolk justinretzolk added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 2, 2024
@YakDriver
Copy link
Member

YakDriver commented Oct 31, 2024

Thanks for all this work! Unfortunately, I'm getting an error:

Error: Value Conversion Error
        
          with aws_servicecatalogappregistry_attribute_group.test,
          on main_gen.tf line 19, in resource "aws_servicecatalogappregistry_attribute_group" "test":
          19:   tags = var.resource_tags
        
        An unexpected error was encountered trying to convert into a Terraform value.
        This is always an error in the provider. Please report the following to the
        provider developer:
        
        Cannot use attr.Value basetypes.MapValue, only tags.Map is supported because
        tags.mapType is the type in the schema

@drewtul
Copy link
Contributor Author

drewtul commented Nov 29, 2024

Hey, sorry, missed this notification, I'll get this PR updated and come back to you.

@drewtul drewtul force-pushed the f-sc-appregistry-attribute-group branch from b3c5ea7 to 229fbcf Compare November 29, 2024 09:27
@drewtul
Copy link
Contributor Author

drewtul commented Nov 29, 2024

I've rebased this and updated the issues you've found, it should pass now, the type for tags in the model had changed since I raised this.

Copy link
Member

@jar-b jar-b left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

% make testacc PKG=servicecatalogappregistry TESTS=TestAccServiceCatalogAppRegistryAttributeGroup_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/servicecatalogappregistry/... -v -count 1 -parallel 20 -run='TestAccServiceCatalogAppRegistryAttributeGroup_'  -timeout 360m
2024/12/05 10:30:59 Initializing Terraform AWS Provider...

--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_disappears (33.81s)
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnCreate
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_basic (39.19s)
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyMap
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_nullNonOverlappingResourceTag (47.90s)
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_null
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_nullOverlappingResourceTag (48.08s)
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_providerOnly
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnCreate (48.56s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_emptyProviderOnlyTag (48.81s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_emptyResourceTag (51.22s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_update (57.13s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_updateToResourceOnly (70.18s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_AddOnUpdate (71.43s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnUpdate_Replace (72.50s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_updateToProviderOnly (73.08s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnUpdate_Add (74.10s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_ComputedTag_OnUpdate_Replace (74.50s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyMap (35.37s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_null (31.45s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_IgnoreTags_Overlap_DefaultTag (82.05s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_IgnoreTags_Overlap_ResourceTag (85.43s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnUpdate_Add (88.43s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_EmptyTag_OnCreate (56.19s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_nonOverlapping (91.72s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_overlapping (93.31s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags (103.90s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroup_tags_DefaultTags_providerOnly (72.05s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/servicecatalogappregistry  125.182s

@jar-b
Copy link
Member

jar-b commented Dec 5, 2024

Thanks for your contribution, @drewtul! 👍

Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

@jar-b jar-b merged commit 2fab3ce into hashicorp:main Dec 5, 2024
44 checks passed
@github-actions github-actions bot added this to the v5.81.0 milestone Dec 5, 2024
Copy link

This functionality has been released in v5.81.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@drewtul drewtul deleted the f-sc-appregistry-attribute-group branch December 13, 2024 15:37
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. generators Relates to code generators. new-resource Introduces a new resource. partner Contribution from a partner. service/servicecatalogappregistry Issues and PRs that pertain to the servicecatalogappregistry service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants