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/waf_web_acl - refactor to use keyvaluetags #10801

Merged
merged 8 commits into from
Nov 8, 2019

Conversation

DrFaust92
Copy link
Collaborator

@DrFaust92 DrFaust92 commented Nov 8, 2019

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" comments, they generate extra noise for pull request followers and do not help prioritize the request

Relates #10688

Release note for CHANGELOG:

- resource/resource_aws_waf_wb_acl: Add `arn` attribute.

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSWafWebAcl_'
=== RUN   TestAccAWSWafWebAcl_basic
=== PAUSE TestAccAWSWafWebAcl_basic
=== CONT  TestAccAWSWafWebAcl_basic
--- PASS: TestAccAWSWafWebAcl_basic (43.23s)
=== RUN   TestAccAWSWafWebAcl_changeNameForceNew
=== PAUSE TestAccAWSWafWebAcl_changeNameForceNew
=== CONT  TestAccAWSWafWebAcl_changeNameForceNew
--- PASS: TestAccAWSWafWebAcl_changeNameForceNew (68.48s)
=== RUN   TestAccAWSWafWebAcl_DefaultAction
=== PAUSE TestAccAWSWafWebAcl_DefaultAction
=== CONT  TestAccAWSWafWebAcl_DefaultAction
--- PASS: TestAccAWSWafWebAcl_DefaultAction (60.55s)
=== RUN   TestAccAWSWafWebAcl_Rules
=== PAUSE TestAccAWSWafWebAcl_Rules
=== CONT  TestAccAWSWafWebAcl_Rules
--- FAIL: TestAccAWSWafWebAcl_Rules (115.69s)
    testing.go:615: Step 2 error: errors during apply:
        
        Error: Error deleting WAF Rule: WAFReferencedItemException: This entity is still referenced by other entities.
        	status code: 400, request id: 7b8d2082-0235-11ea-9c2f-bff495d1e256
        
        
=== RUN   TestAccAWSWafWebAcl_LoggingConfiguration
=== PAUSE TestAccAWSWafWebAcl_LoggingConfiguration
=== CONT  TestAccAWSWafWebAcl_LoggingConfiguration
--- PASS: TestAccAWSWafWebAcl_LoggingConfiguration (226.53s)
=== RUN   TestAccAWSWafWebAcl_disappears
=== PAUSE TestAccAWSWafWebAcl_disappears
=== CONT  TestAccAWSWafWebAcl_disappears
--- PASS: TestAccAWSWafWebAcl_disappears (28.45s)
=== RUN   TestAccAWSWafWebAcl_Tags
=== PAUSE TestAccAWSWafWebAcl_Tags
=== CONT  TestAccAWSWafWebAcl_Tags
--- PASS: TestAccAWSWafWebAcl_Tags (85.95s)
FAIL
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	235.060s

...

@ghost ghost added size/S Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/waf Issues and PRs that pertain to the waf service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Nov 8, 2019
@DrFaust92 DrFaust92 marked this pull request as ready for review November 8, 2019 14:41
@DrFaust92 DrFaust92 requested a review from a team November 8, 2019 14:41
@bflad bflad added the technical-debt Addresses areas of the codebase that need refactoring or redesign. label Nov 8, 2019
@bflad bflad added this to the v2.36.0 milestone Nov 8, 2019
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.

LGTM, thanks @DrFaust92 🚀

Output from acceptance testing (failure unrelated):

--- PASS: TestAccAWSWafWebAcl_disappears (12.41s)
--- PASS: TestAccAWSWafWebAcl_basic (16.78s)
--- PASS: TestAccAWSWafWebAcl_DefaultAction (27.95s)
--- PASS: TestAccAWSWafWebAcl_Tags (42.49s)
--- PASS: TestAccAWSWafWebAcl_changeNameForceNew (51.29s)
--- FAIL: TestAccAWSWafWebAcl_Rules (61.07s)
--- PASS: TestAccAWSWafWebAcl_LoggingConfiguration (109.63s)

@bflad bflad merged commit 3bfa838 into hashicorp:master Nov 8, 2019
@DrFaust92 DrFaust92 deleted the waf-acl-keyvaluetags branch November 9, 2019 12:37
@ghost
Copy link

ghost commented Nov 14, 2019

This has been released in version 2.36.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 Dec 9, 2019

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 Dec 9, 2019
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. service/waf Issues and PRs that pertain to the waf service. size/S Managed by automation to categorize the size of a PR. technical-debt Addresses areas of the codebase that need refactoring or redesign. 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