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

provider/aws: Support ec2-classic and vpc in beanstalk recurring plans. #6491

Merged

Conversation

dharrisio
Copy link
Contributor

Fix Elastic Beanstalk recurring plans when additional security groups
are supplied. In the previous version, only non-default vpc security
groups would be handled by dropGeneratedSecurityGroup.

Fixes #6257

If there's a way to write tests for this I'd like to add those as well. Currently not sure how to verify that subsequent plans return an empty diff.

Fix Elastic Beanstalk recurring plans when additional security groups
are supplied. In the previous version, only non-default vpc security
groups would be handled by dropGeneratedSecurityGroup.
@stack72
Copy link
Contributor

stack72 commented Jul 16, 2016

Hey @dharrisio

Is there a way we can test this works as expected?

P.

@stack72 stack72 added the waiting-response An issue/pull request is waiting for a response from the community label Jul 16, 2016
@dharrisio
Copy link
Contributor Author

@stack72 I think I was a bit confused when I wrote that original comment, since the tests will fail if there is a non-empty diff after apply. Ran into a few other issues adding the vpc test for this yesterday, but I'm planning on finishing this up today, so we can get this merged soon!

@stack72
Copy link
Contributor

stack72 commented Jul 16, 2016

👍 thanks so much :)

@dharrisio dharrisio force-pushed the b-aws-beanstalk-ec2-classic-recurring-plan branch from 40576c6 to 8965ab8 Compare July 17, 2016 21:16
@dharrisio
Copy link
Contributor Author

@stack72 Added the VPC test for this.

Tests:

TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSBeanstalk -timeout 120m
=== RUN   TestAccAWSBeanstalkApp_basic
--- PASS: TestAccAWSBeanstalkApp_basic (17.69s)
=== RUN   TestAccAWSBeanstalkConfigurationTemplate_basic
--- PASS: TestAccAWSBeanstalkConfigurationTemplate_basic (23.33s)
=== RUN   TestAccAWSBeanstalkConfigurationTemplate_VPC
--- PASS: TestAccAWSBeanstalkConfigurationTemplate_VPC (27.46s)
=== RUN   TestAccAWSBeanstalkConfigurationTemplate_Setting
--- PASS: TestAccAWSBeanstalkConfigurationTemplate_Setting (21.27s)
=== RUN   TestAccAWSBeanstalkEnv_basic
--- PASS: TestAccAWSBeanstalkEnv_basic (353.91s)
=== RUN   TestAccAWSBeanstalkEnv_tier
--- PASS: TestAccAWSBeanstalkEnv_tier (611.89s)
=== RUN   TestAccAWSBeanstalkEnv_outputs
--- PASS: TestAccAWSBeanstalkEnv_outputs (384.20s)
=== RUN   TestAccAWSBeanstalkEnv_cname_prefix
--- PASS: TestAccAWSBeanstalkEnv_cname_prefix (384.07s)
=== RUN   TestAccAWSBeanstalkEnv_config
--- PASS: TestAccAWSBeanstalkEnv_config (514.57s)
=== RUN   TestAccAWSBeanstalkEnv_resource
--- PASS: TestAccAWSBeanstalkEnv_resource (395.33s)
=== RUN   TestAccAWSBeanstalkEnv_vpc
--- PASS: TestAccAWSBeanstalkEnv_vpc (534.25s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    3267.994s

@stack72 stack72 self-assigned this Jul 18, 2016
@stack72
Copy link
Contributor

stack72 commented Jul 18, 2016

Hi @dharrisio

Just ran the tests on this and it LGTM! Thanks (again!) for all the work on BeanStalk :)

% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSBeanstalkEnv_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSBeanstalkEnv_ -timeout 120m
=== RUN   TestAccAWSBeanstalkEnv_basic
--- PASS: TestAccAWSBeanstalkEnv_basic (482.97s)
=== RUN   TestAccAWSBeanstalkEnv_tier
--- PASS: TestAccAWSBeanstalkEnv_tier (594.87s)
=== RUN   TestAccAWSBeanstalkEnv_outputs
--- PASS: TestAccAWSBeanstalkEnv_outputs (383.94s)
=== RUN   TestAccAWSBeanstalkEnv_cname_prefix
--- PASS: TestAccAWSBeanstalkEnv_cname_prefix (373.88s)
=== RUN   TestAccAWSBeanstalkEnv_config
--- PASS: TestAccAWSBeanstalkEnv_config (576.01s)
=== RUN   TestAccAWSBeanstalkEnv_resource
--- PASS: TestAccAWSBeanstalkEnv_resource (427.95s)
=== RUN   TestAccAWSBeanstalkEnv_vpc
--- PASS: TestAccAWSBeanstalkEnv_vpc (687.32s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    3526.950s

Paul

@stack72 stack72 merged commit 05aef0e into hashicorp:master Jul 18, 2016
@ghost
Copy link

ghost commented Apr 24, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug provider/aws waiting-response An issue/pull request is waiting for a response from the community
Projects
None yet
3 participants