-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Add aws_appmesh_mesh resource #6708
Conversation
Acceptance tests so far: $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAwsAppmeshMesh_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -parallel 20 -run=TestAccAwsAppmeshMesh_ -timeout 120m
=== RUN TestAccAwsAppmeshMesh_importBasic
--- PASS: TestAccAwsAppmeshMesh_importBasic (20.56s)
=== RUN TestAccAwsAppmeshMesh_basic
--- PASS: TestAccAwsAppmeshMesh_basic (14.32s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 53.866s |
resourceName := "aws_appmesh_mesh.foo" | ||
rName := fmt.Sprintf("tf-test-%d", acctest.RandInt()) | ||
|
||
resource.Test(t, resource.TestCase{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one service mesh per account allowed right now, so no parallel tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are still parallelized across function names in our CI environment so a setup similar to TestAccAWSGuardduty
is required. 👍
@bflad Do you want all resources in a single PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally still prefer 1 resource per PR to keep reviews simple (and not repeat comments across files). For example, this is pretty good to go except for minor things and we can get it merged in shortly after. 😄
resourceName := "aws_appmesh_mesh.foo" | ||
rName := fmt.Sprintf("tf-test-%d", acctest.RandInt()) | ||
|
||
resource.Test(t, resource.TestCase{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are still parallelized across function names in our CI environment so a setup similar to TestAccAWSGuardduty
is required. 👍
}, | ||
{ | ||
ResourceName: resourceName, | ||
ImportState: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We prefer to put the ImportState
test step in each acceptance test instead of separate and duplicate testing. 👍
website/aws.erb
Outdated
<li<%= sidebar_current("docs-aws-resource-appmesh-mesh") %>> | ||
<a href="/docs/providers/aws/r/appmesh_mesh.html">aws_appmesh_mesh</a> | ||
</li> | ||
<li<%= sidebar_current("docs-aws-resource-appmesh-mesh") %>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extraneous line 😎
website/aws.erb
Outdated
@@ -515,6 +515,16 @@ | |||
</ul> | |||
</li> | |||
|
|||
<li<%= sidebar_current("docs-aws-resource-appmesh") %>> | |||
<a href="#">AppSync Resources</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍝 Copy-pasta
<a href="#">AppSync Resources</a> | |
<a href="#">AppMesh Resources</a> |
Changes made after code review. $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSAppmesh'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -parallel 20 -run=TestAccAWSAppmesh -timeout 120m
=== RUN TestAccAWSAppmesh
=== RUN TestAccAWSAppmesh/Mesh
=== RUN TestAccAWSAppmesh/Mesh/basic
--- PASS: TestAccAWSAppmesh (18.22s)
--- PASS: TestAccAWSAppmesh/Mesh (18.22s)
--- PASS: TestAccAWSAppmesh/Mesh/basic (18.22s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 37.171s |
I retitled this PR to reflect the single resource being added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
--- PASS: TestAccAWSAppmesh (11.55s)
--- PASS: TestAccAWSAppmesh/Mesh (11.55s)
--- PASS: TestAccAWSAppmesh/Mesh/basic (11.55s)
This has been released in version 1.51.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
Related: