-
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
r/aws_glue_catalog_database: fix crash expanding create_table_default_permission
#40761
Conversation
Community NoteVoting for Prioritization
For Submitters
|
…t_permission` Previously a nil nested `principal` block could trigger a panic: ``` panic: interface conversion: interface {} is nil, not map[string]interface {} ``` ```console % make testacc PKG=glue TESTS=TestAccGlueCatalogDatabase_ make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.23.3 test ./internal/service/glue/... -v -count 1 -parallel 20 -run='TestAccGlueCatalogDatabase_' -timeout 360m 2025/01/03 10:35:25 Initializing Terraform AWS Provider... --- PASS: TestAccGlueCatalogDatabase_disappears (14.67s) --- PASS: TestAccGlueCatalogDatabase_targetDatabaseWithRegion (24.83s) --- PASS: TestAccGlueCatalogDatabase_createTablePermission (26.68s) --- PASS: TestAccGlueCatalogDatabase_targetDatabase (29.36s) --- PASS: TestAccGlueCatalogDatabase_full (35.43s) --- PASS: TestAccGlueCatalogDatabase_tags (35.46s) --- PASS: TestAccGlueCatalogDatabase_federatedDatabase (320.65s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/glue 325.906s ```
database_principal_permission
create_table_default_permission
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 🚀
% make testacc PKG=glue TESTS=TestAccGlueCatalogDatabase_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/glue/... -v -count 1 -parallel 20 -run='TestAccGlueCatalogDatabase_' -timeout 360m
2025/01/03 10:19:23 Initializing Terraform AWS Provider...
--- PASS: TestAccGlueCatalogDatabase_disappears (19.36s)
--- PASS: TestAccGlueCatalogDatabase_targetDatabaseWithRegion (30.01s)
--- PASS: TestAccGlueCatalogDatabase_createTablePermission (31.23s)
--- PASS: TestAccGlueCatalogDatabase_targetDatabase (33.04s)
--- PASS: TestAccGlueCatalogDatabase_full (40.08s)
--- PASS: TestAccGlueCatalogDatabase_tags (40.09s)
--- PASS: TestAccGlueCatalogDatabase_federatedDatabase (413.61s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/glue 420.082s
This functionality has been released in v5.83.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. Thank you! |
Description
Previously a nil nested
principal
block could trigger a panic:Relations
Closes #40738
Output from Acceptance Testing