-
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 validation checks for aws_glue_catalog_table resource properties #12523
Conversation
Hey @drexler, can you rebase this and move validations to be inline using provided validations funcs (i.e |
@DrFaust92 sure, I'll take care of it. |
Hey @drexler, are you still working on this? if so please rebase otherwise i can fork this branch and make the changes. |
583639f
to
668d49d
Compare
668d49d
to
594f47c
Compare
@DrFaust92 i rebased and inlined the validation checks. Sorry for the delay in getting back to this. |
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: TestAccAWSGlueCatalogTable_basic (42.40s)
LGTM 🚀 Thanks @drexler! Verified Acceptance Tests in Commercial (us-west-2) make testacc TEST=./aws TESTARGS='-run=TestAccAWSGlueCatalogTable_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSGlueCatalogTable_ -timeout 120m
=== RUN TestAccAWSGlueCatalogTable_recreates
=== PAUSE TestAccAWSGlueCatalogTable_recreates
=== RUN TestAccAWSGlueCatalogTable_basic
=== PAUSE TestAccAWSGlueCatalogTable_basic
=== RUN TestAccAWSGlueCatalogTable_full
=== PAUSE TestAccAWSGlueCatalogTable_full
=== RUN TestAccAWSGlueCatalogTable_update_addValues
=== PAUSE TestAccAWSGlueCatalogTable_update_addValues
=== RUN TestAccAWSGlueCatalogTable_update_replaceValues
=== PAUSE TestAccAWSGlueCatalogTable_update_replaceValues
=== RUN TestAccAWSGlueCatalogTable_StorageDescriptor_EmptyConfigurationBlock
=== PAUSE TestAccAWSGlueCatalogTable_StorageDescriptor_EmptyConfigurationBlock
=== RUN TestAccAWSGlueCatalogTable_StorageDescriptor_SerDeInfo_EmptyConfigurationBlock
=== PAUSE TestAccAWSGlueCatalogTable_StorageDescriptor_SerDeInfo_EmptyConfigurationBlock
=== RUN TestAccAWSGlueCatalogTable_StorageDescriptor_SkewedInfo_EmptyConfigurationBlock
=== PAUSE TestAccAWSGlueCatalogTable_StorageDescriptor_SkewedInfo_EmptyConfigurationBlock
=== RUN TestAccAWSGlueCatalogTable_disappears
=== PAUSE TestAccAWSGlueCatalogTable_disappears
=== CONT TestAccAWSGlueCatalogTable_recreates
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_EmptyConfigurationBlock
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_SkewedInfo_EmptyConfigurationBlock
=== CONT TestAccAWSGlueCatalogTable_disappears
=== CONT TestAccAWSGlueCatalogTable_update_addValues
=== CONT TestAccAWSGlueCatalogTable_full
=== CONT TestAccAWSGlueCatalogTable_update_replaceValues
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_SerDeInfo_EmptyConfigurationBlock
=== CONT TestAccAWSGlueCatalogTable_basic
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_SkewedInfo_EmptyConfigurationBlock
resource_aws_glue_catalog_table_test.go:375: [INFO] Got non-empty plan, as expected
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_EmptyConfigurationBlock
resource_aws_glue_catalog_table_test.go:331: [INFO] Got non-empty plan, as expected
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_SerDeInfo_EmptyConfigurationBlock
resource_aws_glue_catalog_table_test.go:353: [INFO] Got non-empty plan, as expected
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_SkewedInfo_EmptyConfigurationBlock
resource_aws_glue_catalog_table_test.go:375: [INFO] Got non-empty plan, as expected
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_EmptyConfigurationBlock
resource_aws_glue_catalog_table_test.go:331: [INFO] Got non-empty plan, as expected
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_SerDeInfo_EmptyConfigurationBlock
resource_aws_glue_catalog_table_test.go:353: [INFO] Got non-empty plan, as expected
=== CONT TestAccAWSGlueCatalogTable_disappears
resource_aws_glue_catalog_table_test.go:396: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAWSGlueCatalogTable_disappears (17.94s)
--- PASS: TestAccAWSGlueCatalogTable_StorageDescriptor_SkewedInfo_EmptyConfigurationBlock (18.11s)
--- PASS: TestAccAWSGlueCatalogTable_StorageDescriptor_EmptyConfigurationBlock (18.14s)
--- PASS: TestAccAWSGlueCatalogTable_StorageDescriptor_SerDeInfo_EmptyConfigurationBlock (18.34s)
=== CONT TestAccAWSGlueCatalogTable_recreates
resource_aws_glue_catalog_table_test.go:19: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAWSGlueCatalogTable_full (19.79s)
--- PASS: TestAccAWSGlueCatalogTable_basic (19.99s)
=== CONT TestAccAWSGlueCatalogTable_recreates
resource_aws_glue_catalog_table_test.go:19: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAWSGlueCatalogTable_recreates (25.04s)
--- PASS: TestAccAWSGlueCatalogTable_update_addValues (30.94s)
--- PASS: TestAccAWSGlueCatalogTable_update_replaceValues (31.31s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 32.832s Verified Acceptance Tests in GovCloud (us-gov-west-1) make testacc TEST=./aws TESTARGS='-run=TestAccAWSGlueCatalogTable_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSGlueCatalogTable_ -timeout 120m
=== RUN TestAccAWSGlueCatalogTable_recreates
=== PAUSE TestAccAWSGlueCatalogTable_recreates
=== RUN TestAccAWSGlueCatalogTable_basic
=== PAUSE TestAccAWSGlueCatalogTable_basic
=== RUN TestAccAWSGlueCatalogTable_full
=== PAUSE TestAccAWSGlueCatalogTable_full
=== RUN TestAccAWSGlueCatalogTable_update_addValues
=== PAUSE TestAccAWSGlueCatalogTable_update_addValues
=== RUN TestAccAWSGlueCatalogTable_update_replaceValues
=== PAUSE TestAccAWSGlueCatalogTable_update_replaceValues
=== RUN TestAccAWSGlueCatalogTable_StorageDescriptor_EmptyConfigurationBlock
=== PAUSE TestAccAWSGlueCatalogTable_StorageDescriptor_EmptyConfigurationBlock
=== RUN TestAccAWSGlueCatalogTable_StorageDescriptor_SerDeInfo_EmptyConfigurationBlock
=== PAUSE TestAccAWSGlueCatalogTable_StorageDescriptor_SerDeInfo_EmptyConfigurationBlock
=== RUN TestAccAWSGlueCatalogTable_StorageDescriptor_SkewedInfo_EmptyConfigurationBlock
=== PAUSE TestAccAWSGlueCatalogTable_StorageDescriptor_SkewedInfo_EmptyConfigurationBlock
=== RUN TestAccAWSGlueCatalogTable_disappears
=== PAUSE TestAccAWSGlueCatalogTable_disappears
=== CONT TestAccAWSGlueCatalogTable_recreates
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_EmptyConfigurationBlock
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_SkewedInfo_EmptyConfigurationBlock
=== CONT TestAccAWSGlueCatalogTable_basic
=== CONT TestAccAWSGlueCatalogTable_disappears
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_SerDeInfo_EmptyConfigurationBlock
=== CONT TestAccAWSGlueCatalogTable_update_replaceValues
=== CONT TestAccAWSGlueCatalogTable_update_addValues
=== CONT TestAccAWSGlueCatalogTable_full
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_EmptyConfigurationBlock
resource_aws_glue_catalog_table_test.go:331: [INFO] Got non-empty plan, as expected
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_SerDeInfo_EmptyConfigurationBlock
resource_aws_glue_catalog_table_test.go:353: [INFO] Got non-empty plan, as expected
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_SkewedInfo_EmptyConfigurationBlock
resource_aws_glue_catalog_table_test.go:375: [INFO] Got non-empty plan, as expected
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_EmptyConfigurationBlock
resource_aws_glue_catalog_table_test.go:331: [INFO] Got non-empty plan, as expected
=== CONT TestAccAWSGlueCatalogTable_disappears
resource_aws_glue_catalog_table_test.go:396: [INFO] Got non-empty plan, as expected
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_SerDeInfo_EmptyConfigurationBlock
resource_aws_glue_catalog_table_test.go:353: [INFO] Got non-empty plan, as expected
2020/10/21 08:55:22 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
=== CONT TestAccAWSGlueCatalogTable_StorageDescriptor_SkewedInfo_EmptyConfigurationBlock
resource_aws_glue_catalog_table_test.go:375: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAWSGlueCatalogTable_StorageDescriptor_EmptyConfigurationBlock (12.61s)
--- PASS: TestAccAWSGlueCatalogTable_disappears (12.73s)
--- PASS: TestAccAWSGlueCatalogTable_StorageDescriptor_SerDeInfo_EmptyConfigurationBlock (13.02s)
--- PASS: TestAccAWSGlueCatalogTable_StorageDescriptor_SkewedInfo_EmptyConfigurationBlock (13.87s)
=== CONT TestAccAWSGlueCatalogTable_recreates
resource_aws_glue_catalog_table_test.go:19: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAWSGlueCatalogTable_basic (14.92s)
--- PASS: TestAccAWSGlueCatalogTable_full (15.77s)
=== CONT TestAccAWSGlueCatalogTable_recreates
resource_aws_glue_catalog_table_test.go:19: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAWSGlueCatalogTable_recreates (17.93s)
--- PASS: TestAccAWSGlueCatalogTable_update_replaceValues (22.35s)
--- PASS: TestAccAWSGlueCatalogTable_update_addValues (23.64s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 25.187s |
This has been released in version 3.12.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! |
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! |
Community Note
Closes #12519
Release note for CHANGELOG:
Output from acceptance testing: