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

r/iam_oidc_provider - add tagging support + validations + sweeper #17964

Merged
merged 7 commits into from
Mar 25, 2021

Conversation

DrFaust92
Copy link
Collaborator

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

Relates #17594

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSIAMOpenIDConnectProvider_'
--- PASS: TestAccAWSIAMOpenIDConnectProvider_disappears (27.34s)
--- PASS: TestAccAWSIAMOpenIDConnectProvider_basic (56.82s)
--- PASS: TestAccAWSIAMOpenIDConnectProvider_tags (78.49s)

@DrFaust92 DrFaust92 requested a review from a team as a code owner March 5, 2021 21:52
@ghost ghost added size/L Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/iam Issues and PRs that pertain to the iam service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Mar 5, 2021
@DrFaust92 DrFaust92 added the enhancement Requests to existing resources that expand the functionality or scope. label Mar 5, 2021
@DrFaust92 DrFaust92 changed the title r/iam_oidc_provider - add tagging support + validations r/iam_oidc_provider - add tagging support + validations + sweeper Mar 6, 2021
@ewbankkit
Copy link
Contributor

Verified acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSIAMOpenIDConnectProvider_' 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSIAMOpenIDConnectProvider_ -timeout 120m
=== RUN   TestAccAWSIAMOpenIDConnectProvider_basic
=== PAUSE TestAccAWSIAMOpenIDConnectProvider_basic
=== RUN   TestAccAWSIAMOpenIDConnectProvider_tags
=== PAUSE TestAccAWSIAMOpenIDConnectProvider_tags
=== RUN   TestAccAWSIAMOpenIDConnectProvider_disappears
=== PAUSE TestAccAWSIAMOpenIDConnectProvider_disappears
=== CONT  TestAccAWSIAMOpenIDConnectProvider_basic
=== CONT  TestAccAWSIAMOpenIDConnectProvider_disappears
=== CONT  TestAccAWSIAMOpenIDConnectProvider_tags
--- PASS: TestAccAWSIAMOpenIDConnectProvider_disappears (11.47s)
--- PASS: TestAccAWSIAMOpenIDConnectProvider_basic (23.76s)
--- PASS: TestAccAWSIAMOpenIDConnectProvider_tags (31.17s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	31.281s

@ewbankkit
Copy link
Contributor

Ran sweeper:

$ TEST=./aws SWEEP=us-west-2 SWEEPARGS=-sweep-run=aws_iam_openid_connect_provider make sweep
WARNING: This will destroy infrastructure. Use only in development accounts.
go test ./aws -v -sweep=us-west-2 -sweep-run=aws_iam_openid_connect_provider -timeout 60m
2021/03/06 16:48:56 [DEBUG] Running Sweepers for region (us-west-2):
2021/03/06 16:48:56 [DEBUG] Running Sweeper (aws_iam_openid_connect_provider) in region (us-west-2)
2021/03/06 16:48:56 [INFO] AWS Auth provider used: "EnvProvider"
2021/03/06 16:48:56 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2021/03/06 16:48:56 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2021/03/06 16:48:57 Sweeper Tests ran successfully:
	- aws_iam_openid_connect_provider
ok  	github.com/terraform-providers/terraform-provider-aws/aws	0.851s

@bflad bflad self-assigned this Mar 25, 2021

var sweeperErrs *multierror.Error

out, err := conn.ListOpenIDConnectProviders(&iam.ListOpenIDConnectProvidersInput{})
Copy link
Contributor

Choose a reason for hiding this comment

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

Verified this does not have an available paginator or token to manually do so.

aws/resource_aws_iam_openid_connect_provider_test.go Outdated Show resolved Hide resolved
website/docs/r/iam_openid_connect_provider.html.markdown Outdated Show resolved Hide resolved
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Looks great, thank you, @DrFaust92 🚀

Output from acceptance testing in AWS Commercial:

--- PASS: TestAccAWSIAMOpenIDConnectProvider_disappears (10.03s)
--- PASS: TestAccAWSIAMOpenIDConnectProvider_basic (20.50s)
--- PASS: TestAccAWSIAMOpenIDConnectProvider_tags (32.26s)

Output from acceptance testing in AWS GovCloud (US):

--- PASS: TestAccAWSIAMOpenIDConnectProvider_disappears (15.58s)
--- PASS: TestAccAWSIAMOpenIDConnectProvider_basic (36.70s)
--- PASS: TestAccAWSIAMOpenIDConnectProvider_tags (47.27s)

@bflad bflad merged commit 9bdfe01 into hashicorp:main Mar 25, 2021
@github-actions github-actions bot added this to the v3.34.0 milestone Mar 25, 2021
@ghost
Copy link

ghost commented Mar 26, 2021

This has been released in version 3.34.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 for triage. Thanks!

@DrFaust92 DrFaust92 deleted the r/iam_oidc_provider_tags branch April 15, 2021 10:35
@ghost
Copy link

ghost commented Apr 25, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Apr 25, 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. enhancement Requests to existing resources that expand the functionality or scope. provider Pertains to the provider itself, rather than any interaction with AWS. service/iam Issues and PRs that pertain to the iam service. size/L 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.

3 participants