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

resource/aws_sns_topic: Add support for delivery status #2872

Merged
merged 2 commits into from
Feb 6, 2018

Conversation

gazoakley
Copy link
Contributor

Ported hashicorp/terraform#14101 from to address #515

@gazoakley
Copy link
Contributor Author

Acceptance tests:

$ make testacc TESTARGS="-run=TestAccAWSSNSTopic_"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -run=TestAccAWSSNSTopic_ -timeout 120m
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
=== RUN   TestAccAWSSNSTopic_importBasic
--- PASS: TestAccAWSSNSTopic_importBasic (51.11s)
=== RUN   TestAccAWSSNSTopic_basic
--- PASS: TestAccAWSSNSTopic_basic (42.83s)
=== RUN   TestAccAWSSNSTopic_policy
--- PASS: TestAccAWSSNSTopic_policy (49.65s)
=== RUN   TestAccAWSSNSTopic_withIAMRole
--- PASS: TestAccAWSSNSTopic_withIAMRole (63.49s)
=== RUN   TestAccAWSSNSTopic_withFakeIAMRole
--- PASS: TestAccAWSSNSTopic_withFakeIAMRole (89.61s)
=== RUN   TestAccAWSSNSTopic_withDeliveryPolicy
--- PASS: TestAccAWSSNSTopic_withDeliveryPolicy (45.33s)
=== RUN   TestAccAWSSNSTopic_deliveryStatus
--- PASS: TestAccAWSSNSTopic_deliveryStatus (65.36s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	407.416s

@Ninir Ninir added the enhancement Requests to existing resources that expand the functionality or scope. label Jan 5, 2018
@bflad bflad added the service/sns Issues and PRs that pertain to the sns service. label Jan 11, 2018
@gazoakley gazoakley changed the title r/sns_topic: Add support for delivery status resource/sns_topic: Add support for delivery status Feb 2, 2018
@gazoakley gazoakley changed the title resource/sns_topic: Add support for delivery status resource/aws_sns_topic: Add support for delivery status Feb 2, 2018
@gazoakley
Copy link
Contributor Author

@radeksimko Any chance someone can review this? The previous iteration was planned for review by @catsby: hashicorp/terraform#14101 (comment)

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.

@gazoakley thanks again for porting this over -- I confirmed it works when merged with the latest acceptance testing. 🚀

make testacc TEST=./aws TESTARGS='-run=TestAccAWSSNSTopic_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSSNSTopic_ -timeout 120m
=== RUN   TestAccAWSSNSTopic_importBasic
--- PASS: TestAccAWSSNSTopic_importBasic (11.55s)
=== RUN   TestAccAWSSNSTopic_basic
--- PASS: TestAccAWSSNSTopic_basic (9.43s)
=== RUN   TestAccAWSSNSTopic_name
--- PASS: TestAccAWSSNSTopic_name (10.53s)
=== RUN   TestAccAWSSNSTopic_namePrefix
--- PASS: TestAccAWSSNSTopic_namePrefix (9.36s)
=== RUN   TestAccAWSSNSTopic_policy
--- PASS: TestAccAWSSNSTopic_policy (9.53s)
=== RUN   TestAccAWSSNSTopic_withIAMRole
--- PASS: TestAccAWSSNSTopic_withIAMRole (30.27s)
=== RUN   TestAccAWSSNSTopic_withFakeIAMRole
--- PASS: TestAccAWSSNSTopic_withFakeIAMRole (66.89s)
=== RUN   TestAccAWSSNSTopic_withDeliveryPolicy
--- PASS: TestAccAWSSNSTopic_withDeliveryPolicy (10.19s)
=== RUN   TestAccAWSSNSTopic_deliveryStatus
--- PASS: TestAccAWSSNSTopic_deliveryStatus (10.23s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	168.040s

@@ -63,6 +74,58 @@ func resourceAwsSnsTopic() *schema.Resource {
return json
},
},
"application_success_feedback_role_arn": &schema.Schema{
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: The &schema.Schema are no longer required as of Go 1.7 and likely copied from other attributes that we haven't yet cleaned up. I will fix these on merge.

@bflad bflad added this to the v1.9.0 milestone Feb 6, 2018
@ghost ghost added the size/L Managed by automation to categorize the size of a PR. label Feb 6, 2018
@bflad bflad merged commit bd429a4 into hashicorp:master Feb 6, 2018
bflad added a commit that referenced this pull request Feb 6, 2018
@bflad
Copy link
Contributor

bflad commented Feb 9, 2018

This has been released in terraform-provider-aws version 1.9.0. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@gazoakley gazoakley deleted the f-sns-delivery-status branch April 7, 2020 16:11
@ghost
Copy link

ghost commented Apr 7, 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 Apr 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/sns Issues and PRs that pertain to the sns service. size/L Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants