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

Refactor aws_lb resource and data source to use keyvaluetags + enums #11419

Merged
merged 3 commits into from
Jan 2, 2020

Conversation

DrFaust92
Copy link
Collaborator

@DrFaust92 DrFaust92 commented Dec 24, 2019

add enums

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

Release note for CHANGELOG:

NONE

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSLB_'
--- PASS: TestAccAWSLB_ALB_basic (224.14s)
--- PASS: TestAccAWSLB_NLB_basic (288.74s)
--- PASS: TestAccAWSLB_networkLoadbalancerEIP (324.02s)
--- PASS: TestAccAWSLB_generatedName (230.39s)
--- PASS: TestAccAWSLB_generatesNameForZeroValue (265.80s)
--- PASS: TestAccAWSLB_namePrefix (258.33s)
--- PASS: TestAccAWSLB_tags (559.84s)
--- PASS: TestAccAWSLB_networkLoadbalancer_updateCrossZone (465.92s)
--- PASS: TestAccAWSLB_applicationLoadBalancer_updateHttp2 (514.57s)
--- PASS: TestAccAWSLB_applicationLoadBalancer_updateDeletionProtection (481.31s)
--- PASS: TestAccAWSLB_updatedSecurityGroups (366.62s)
--- FAIL: TestAccAWSLB_updatedSubnets (294.42s)
    testing.go:640: Step 1 error: Check failed: 1 error occurred:
        	* Check 2/3 error: aws_lb.lb_test: Attribute 'subnets.#' expected "3", got "2"
        
        
--- FAIL: TestAccAWSLB_updatedIpAddressType (223.91s)
    testing.go:640: Step 0 error: errors during apply:
        
        Error: Error creating egress internet gateway: UnauthorizedOperation: You are not authorized to perform this operation.
        	status code: 403, request id: d069862c-d6d7-4db1-930e-723c726fd037
        
          on C:\Users\ilial\AppData\Local\Temp\tf-test745673928\main.tf line 53:
          (source code not available)
        
        
--- PASS: TestAccAWSLB_noSecurityGroup (270.77s)
--- PASS: TestAccAWSLB_ALB_AccessLogs (533.49s)
--- PASS: TestAccAWSLB_ALB_AccessLogs_Prefix (537.47s)
--- PASS: TestAccAWSLB_NLB_AccessLogs (606.01s)
--- PASS: TestAccAWSLB_NLB_AccessLogs_Prefix (527.29s)
--- PASS: TestAccAWSLB_networkLoadbalancer_subnet_change (287.91s)
...
$ make testacc TESTARGS='-run=TestAccDataSourceAWSLB_'
--- PASS: TestAccDataSourceAWSLBListener_basic (263.39s)
--- PASS: TestAccDataSourceAWSLBListener_BackwardsCompatibility (336.74s)
--- PASS: TestAccDataSourceAWSLBListener_https (240.27s)
--- PASS: TestAccDataSourceAWSLBTargetGroupBackwardsCompatibility (281.22s)
--- PASS: TestAccDataSourceAWSLB_basic (244.83s)
--- PASS: TestAccDataSourceAWSLBBackwardsCompatibility (259.42s)
...

@DrFaust92 DrFaust92 requested a review from a team December 24, 2019 12:15
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/L Managed by automation to categorize the size of a PR. service/elbv2 Issues and PRs that pertain to the elbv2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Dec 24, 2019
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. and removed size/L Managed by automation to categorize the size of a PR. labels Dec 24, 2019
@DrFaust92 DrFaust92 changed the title [WIP]refactor r/aws_lb resource to use keyvaluetags + enums Refactor r/aws_lb resource to use keyvaluetags + enums Dec 24, 2019
@DrFaust92 DrFaust92 changed the title Refactor r/aws_lb resource to use keyvaluetags + enums Refactor aws_lb resource and data source to use keyvaluetags + enums Dec 25, 2019
@bflad bflad added technical-debt Addresses areas of the codebase that need refactoring or redesign. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 2, 2020
@bflad bflad added this to the v2.44.0 milestone Jan 2, 2020
@bflad bflad added the enhancement Requests to existing resources that expand the functionality or scope. label Jan 2, 2020
@bflad bflad merged commit 91d4c37 into hashicorp:master Jan 2, 2020
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 🚀

--- PASS: TestAccAWSLB_ALB_AccessLogs (290.82s)
--- PASS: TestAccAWSLB_ALB_AccessLogs_Prefix (234.28s)
--- PASS: TestAccAWSLB_ALB_basic (183.55s)
--- PASS: TestAccAWSLB_applicationLoadBalancer_updateDeletionProtection (267.31s)
--- PASS: TestAccAWSLB_applicationLoadBalancer_updateHttp2 (237.66s)
--- PASS: TestAccAWSLB_generatedName (208.78s)
--- PASS: TestAccAWSLB_generatesNameForZeroValue (196.87s)
--- PASS: TestAccAWSLB_namePrefix (193.50s)
--- PASS: TestAccAWSLB_networkLoadbalancer_subnet_change (216.71s)
--- PASS: TestAccAWSLB_networkLoadbalancer_updateCrossZone (325.01s)
--- PASS: TestAccAWSLB_networkLoadbalancerEIP (245.80s)
--- PASS: TestAccAWSLB_NLB_AccessLogs (331.75s)
--- PASS: TestAccAWSLB_NLB_AccessLogs_Prefix (275.50s)
--- PASS: TestAccAWSLB_NLB_basic (211.14s)
--- PASS: TestAccAWSLB_noSecurityGroup (266.95s)
--- PASS: TestAccAWSLB_tags (258.93s)
--- PASS: TestAccAWSLB_updatedIpAddressType (215.52s)
--- PASS: TestAccAWSLB_updatedSecurityGroups (227.98s)
--- PASS: TestAccAWSLBBackwardsCompatibility (175.67s)
--- PASS: TestAccDataSourceAWSLB_basic (173.24s)
--- PASS: TestAccDataSourceAWSLBBackwardsCompatibility (252.83s)

bflad added a commit that referenced this pull request Jan 2, 2020
@ghost
Copy link

ghost commented Jan 10, 2020

This has been released in version 2.44.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 Mar 27, 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 Mar 27, 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/elbv2 Issues and PRs that pertain to the elbv2 service. size/XL 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