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

Detect error_action in IoT rule #16471

Merged

Conversation

partheinstein
Copy link

@partheinstein partheinstein commented Nov 27, 2020

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 #16115

Release note for CHANGELOG:

Fixes a bug where changes to IoT rule to add an error action are not applied

Output from acceptance testing:

--- PASS: TestAccAWSIoTTopicRule_updateKinesisErrorAction (129.33s)

@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/iot Issues and PRs that pertain to the iot service. labels Nov 27, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Nov 27, 2020
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @partheinstein 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@partheinstein
Copy link
Author

I can't seem to run the acceptance tests:

make testacc TESTARGS='-run=TestAccAWSIoTTopicRule_errorAction'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSIoTTopicRule_errorAction -timeout 120m
=== RUN   TestAccAWSIoTTopicRule_errorAction
=== PAUSE TestAccAWSIoTTopicRule_errorAction
=== CONT  TestAccAWSIoTTopicRule_errorAction
    resource_aws_iot_topic_rule_test.go:549: Error running init: There are some problems with the configuration, described below.
        
        The Terraform configuration must be valid before initialization so that
        Terraform can determine which modules and providers need to be installed.
        
        Error: Failed to read module directory
        
        Module directory
        ../../../../../../../../var/folders/r7/q01cwd856_z5zsqmm7t9ry4r0000gn/T/plugintest413571117/work493259688/config341933799
        does not exist or cannot be read.
        
--- FAIL: TestAccAWSIoTTopicRule_errorAction (2.25s)
FAIL
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	4.006s
FAIL
make: *** [testacc] Error 1

I could use some help diagnosing this.

@partheinstein partheinstein marked this pull request as ready for review January 12, 2021 21:42
@partheinstein partheinstein requested a review from a team as a code owner January 12, 2021 21:42
Base automatically changed from master to main January 23, 2021 00:59
@kurtmc
Copy link
Contributor

kurtmc commented Mar 31, 2021

Hey @partheinstein I checked out your branch and ran the tests against my AWS account and it looks all good:

$ make testacc TESTARGS='-run=TestAccAWSIoTTopicRule_errorAction'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSIoTTopicRule_errorAction -timeout 120m
go: downloading github.com/aws/aws-sdk-go v1.35.34
go: downloading github.com/hashicorp/terraform-plugin-sdk/v2 v2.3.0
go: downloading github.com/hashicorp/go-hclog v0.10.0
=== RUN   TestAccAWSIoTTopicRule_errorAction
=== PAUSE TestAccAWSIoTTopicRule_errorAction
=== CONT  TestAccAWSIoTTopicRule_errorAction
--- PASS: TestAccAWSIoTTopicRule_errorAction (33.01s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       33.054s

@ewbankkit Could this get a review?

@anGie44 anGie44 added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 6, 2021
@github-actions github-actions bot added size/S Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. and removed size/XS Managed by automation to categorize the size of a PR. labels Aug 6, 2021
@anGie44 anGie44 force-pushed the b-iot_rule_error_action_update branch from 6705882 to fb62431 Compare August 6, 2021 19:51
Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

Thank you for this PR @partheinstein !

@anGie44 anGie44 added this to the v3.54.0 milestone Aug 6, 2021
@anGie44 anGie44 merged commit e4b5382 into hashicorp:main Aug 6, 2021
@github-actions
Copy link

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

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 Sep 12, 2021
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. service/iot Issues and PRs that pertain to the iot service. size/S 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.

aws_iot_topic rule update not adding error action
3 participants