-
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
d/glue_catalog_table #23256
d/glue_catalog_table #23256
Conversation
7c3d811
to
152f477
Compare
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.
Welcome @chris922 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
Hi @chris922, thanks for raising this pull request. I've noted it down to review this in the coming days. |
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.
Thanks for your contribution @chris922 , overall it looks good to m. I've used the data source and ran the tests on your fork - which seemed 👍 .
bruno@bruno ~/g/f/chris992-terraform-provider-aws (feature/glue-data-catalog-table-datasource)> make testacc TESTARGS='-run=TestAccGlueDataCatalogDataSource*' ACCTEST_PARALLELISM=5 PKG=glue
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/glue/... -v -count 1 -parallel 5 -run=TestAccGlueDataCatalogDataSource* -timeout 180m
=== RUN TestAccGlueDataCatalogDataSource_basic
=== PAUSE TestAccGlueDataCatalogDataSource_basic
=== CONT TestAccGlueDataCatalogDataSource_basic
--- PASS: TestAccGlueDataCatalogDataSource_basic (26.60s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/glue 28.114s
If you could address the few comments we can get this 🚢 shipped!
Thanks @bschaatsbergen for the review! Please have a look at my changes and resolve the threads if they match your expectation. If you prefer to squash the commits in advance let me know so that I can rebase it. |
8c1de06
to
c1c93a6
Compare
Hmm, I squashed and rebased it... but the pipeline still fails, any ideas? |
c1c93a6
to
0a3f050
Compare
@bschaatsbergen : I rebased my changes onto the main and it looks better for now |
@ewbankkit would you mind checking this PR out :) ? |
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 TESTARGS='-run=TestAccGlueCatalogTableDataSource_' PKG=glue ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/glue/... -v -count 1 -parallel 2 -run=TestAccGlueCatalogTableDataSource_ -timeout 180m
=== RUN TestAccGlueCatalogTableDataSource_basic
=== PAUSE TestAccGlueCatalogTableDataSource_basic
=== CONT TestAccGlueCatalogTableDataSource_basic
--- PASS: TestAccGlueCatalogTableDataSource_basic (17.94s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/glue 23.130s
@chris922 Thanks for the contribution 🎉 👏. |
Nice work @chris922 ! |
This functionality has been released in v4.46.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! |
Great, thanks a lot! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
This is my first contribution, hope I did everything as expected. If not please let me know :)
I added a data source for a glue catalog table and more or less copied and adapted many things from the regular resource. I was unsure if it is desired to have one generic "read" function and use this one in the resource and data source, but for simplicity, I now started with separate functions as for other resources it looks similar.
Community Note
Output from acceptance testing: