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/aws_ses_event_destination: Refresh resource state in the Read method #13466

Merged
merged 2 commits into from
May 26, 2020

Conversation

ewbankkit
Copy link
Contributor

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

Closes #13464.
Relates #13344.

Release note for CHANGELOG:

resource/aws_ses_event_destination: Correctly refresh resource state

Output from acceptance testing:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSSESEventDestination_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSSESEventDestination_ -timeout 120m
=== RUN   TestAccAWSSESEventDestination_basic
=== PAUSE TestAccAWSSESEventDestination_basic
=== RUN   TestAccAWSSESEventDestination_disappears
=== PAUSE TestAccAWSSESEventDestination_disappears
=== CONT  TestAccAWSSESEventDestination_basic
=== CONT  TestAccAWSSESEventDestination_disappears
--- PASS: TestAccAWSSESEventDestination_disappears (120.14s)
--- PASS: TestAccAWSSESEventDestination_basic (122.08s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	122.122s

@ewbankkit ewbankkit requested a review from a team May 22, 2020 13:57
@ghost ghost added size/L Managed by automation to categorize the size of a PR. service/ses Issues and PRs that pertain to the ses service. needs-triage Waiting for first response or review from a maintainer. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels May 22, 2020
@ewbankkit
Copy link
Contributor Author

$ grep -Pzo "Read\(d\s+\*schema\.ResourceData,\s+meta\s+interface\{\}\)\s+error\s+{\s+return\s+nil\s+" aws/*.go
aws/resource_aws_ses_event_destination.go:Read(d *schema.ResourceData, meta interface{}) error {

	return nil

aws_ses_event_destination seems to be the only resource which has this behavior.

@bflad bflad added bug Addresses a defect in current functionality. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. and removed needs-triage Waiting for first response or review from a maintainer. labels May 26, 2020
@bflad bflad added this to the v2.64.0 milestone May 26, 2020
@ghost ghost added the documentation Introduces or discusses updates to documentation. label May 26, 2020
@ewbankkit
Copy link
Contributor Author

Re-ran acceptance tests:

n_ -timeout 120m
=== RUN   TestAccAWSSESEventDestination_basic
=== PAUSE TestAccAWSSESEventDestination_basic
=== RUN   TestAccAWSSESEventDestination_disappears
=== PAUSE TestAccAWSSESEventDestination_disappears
=== CONT  TestAccAWSSESEventDestination_basic
=== CONT  TestAccAWSSESEventDestination_disappears
--- PASS: TestAccAWSSESEventDestination_disappears (122.44s)
--- PASS: TestAccAWSSESEventDestination_basic (137.09s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	137.132s

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 good to me, thanks so much, @ewbankkit 🚀

Output from acceptance testing:

--- PASS: TestAccAWSSESEventDestination_disappears (79.94s)
--- PASS: TestAccAWSSESEventDestination_basic (90.04s)

@bflad bflad merged commit 6b44992 into hashicorp:master May 26, 2020
@ewbankkit ewbankkit deleted the issue-13464 branch May 26, 2020 16:43
@ghost
Copy link

ghost commented May 29, 2020

This has been released in version 2.64.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!

@ghost
Copy link

ghost commented Jun 25, 2020

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 and limited conversation to collaborators Jun 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. documentation Introduces or discusses updates to documentation. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. service/ses Issues and PRs that pertain to the ses 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.

Unexpected diffs on aws_ses_event_destination as of v2.63.0
2 participants