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

ds/servicecatalog_launch_paths: New data source #19572

Merged
merged 11 commits into from
Jun 25, 2021

Conversation

YakDriver
Copy link
Member

@YakDriver YakDriver commented May 28, 2021

Community Note

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

#19459 depends on this

Acceptance testing requires a non-assumed role. See #19958

Output from acceptance testing (GovCloud):

--- PASS: TestAccAWSServiceCatalogLaunchPathsDataSource_basic (75.66s)

References:

@YakDriver YakDriver requested a review from a team as a code owner May 28, 2021 16:26
@ghost ghost added the size/XL Managed by automation to categorize the size of a PR. label May 28, 2021
@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/servicecatalog Issues and PRs that pertain to the servicecatalog service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels May 28, 2021
@YakDriver YakDriver changed the title ds/servicecatalog_launch_paths: New data source [WIP] ds/servicecatalog_launch_paths: New data source May 28, 2021
@YakDriver YakDriver changed the title [WIP] ds/servicecatalog_launch_paths: New data source [Blocked] ds/servicecatalog_launch_paths: New data source May 28, 2021
@YakDriver YakDriver changed the title [Blocked] ds/servicecatalog_launch_paths: New data source [WIP] ds/servicecatalog_launch_paths: New data source Jun 15, 2021
@YakDriver YakDriver force-pushed the f-servicecat-ds-launch-paths branch from 59ffdda to ada45b1 Compare June 23, 2021 00:03
@YakDriver YakDriver changed the title [WIP] ds/servicecatalog_launch_paths: New data source ds/servicecatalog_launch_paths: New data source Jun 23, 2021
@bill-rich bill-rich self-requested a review June 24, 2021 19:55
bill-rich
bill-rich previously approved these changes Jun 24, 2021
Copy link
Contributor

@bill-rich bill-rich left a comment

Choose a reason for hiding this comment

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

I'm getting the following when I run the acceptance test

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSServiceCatalogLaunchPathsDataSource_basic -timeout 180m
go: downloading github.com/aws/aws-sdk-go v1.38.65
=== RUN   TestAccAWSServiceCatalogLaunchPathsDataSource_basic
=== PAUSE TestAccAWSServiceCatalogLaunchPathsDataSource_basic
=== CONT  TestAccAWSServiceCatalogLaunchPathsDataSource_basic
    data_source_aws_servicecatalog_launch_paths_test.go:18: Step 1/1 error: Error running apply: exit status 1
        
        Error: error associating Service Catalog Principal with Portfolio: InvalidParametersException: Invalid parameter principalArn, assumed-role is not a recognized IAM identity type
        
          on terraform_plugin_test.tf line 80, in resource "aws_servicecatalog_principal_portfolio_association" "test":
          80: resource "aws_servicecatalog_principal_portfolio_association" "test" {
        
        
--- FAIL: TestAccAWSServiceCatalogLaunchPathsDataSource_basic (114.90s)
FAIL
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	114.959s
FAIL
make: *** [GNUmakefile:28: testacc] Error 1

@bill-rich bill-rich dismissed their stale review June 24, 2021 21:59

Question on acc test

@YakDriver
Copy link
Member Author

@bill-rich You can't use an assumed role when running the test. See #19958. If you run in GovCloud or where you have non-temporary credentials, it will work for you.

Copy link
Contributor

@bill-rich bill-rich left a comment

Choose a reason for hiding this comment

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

LGTM

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSServiceCatalogLaunchPathsDataSource_basic -timeout 180m
=== RUN   TestAccAWSServiceCatalogLaunchPathsDataSource_basic
=== PAUSE TestAccAWSServiceCatalogLaunchPathsDataSource_basic
=== CONT  TestAccAWSServiceCatalogLaunchPathsDataSource_basic
--- PASS: TestAccAWSServiceCatalogLaunchPathsDataSource_basic (135.49s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	135.546s

@YakDriver YakDriver added this to the v3.48.0 milestone Jun 25, 2021
@YakDriver YakDriver merged commit af2d5c0 into main Jun 25, 2021
@YakDriver YakDriver deleted the f-servicecat-ds-launch-paths branch June 25, 2021 13:20
@github-actions
Copy link

github-actions bot commented Jul 8, 2021

This functionality has been released in v3.48.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!

@github-actions
Copy link

github-actions bot commented Aug 8, 2021

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 Aug 8, 2021
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. provider Pertains to the provider itself, rather than any interaction with AWS. service/servicecatalog Issues and PRs that pertain to the servicecatalog 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.

2 participants