-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Adding support for table resource #24351
Conversation
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 @pranayw333 👋
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! 😃
Similar: #24265. |
…e for schema definition attributes. Acceptance test output: % make testacc TESTS=TestAccKeyspacesTable_basic PKG=keyspaces ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/keyspaces/... -v -count 1 -parallel 20 -run='TestAccKeyspacesTable_basic' -timeout 180m === RUN TestAccKeyspacesTable_basic === PAUSE TestAccKeyspacesTable_basic === CONT TestAccKeyspacesTable_basic --- PASS: TestAccKeyspacesTable_basic (118.47s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/keyspaces 124.716s
This comment was marked as outdated.
This comment was marked as outdated.
Acceptance test output: % make testacc TESTS=TestAccKeyspacesTable_tags PKG=keyspaces ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/keyspaces/... -v -count 1 -parallel 20 -run='TestAccKeyspacesTable_tags' -timeout 180m === RUN TestAccKeyspacesTable_tags === PAUSE TestAccKeyspacesTable_tags === CONT TestAccKeyspacesTable_tags --- PASS: TestAccKeyspacesTable_tags (130.70s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/keyspaces 134.608s
Acceptance test output: % make testacc TESTS=TestAccKeyspacesTable_multipleColumns PKG=keyspaces ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/keyspaces/... -v -count 1 -parallel 20 -run='TestAccKeyspacesTable_multipleColumns' -timeout 180m === RUN TestAccKeyspacesTable_multipleColumns === PAUSE TestAccKeyspacesTable_multipleColumns === CONT TestAccKeyspacesTable_multipleColumns table_test.go:139: Step 1/2 error: Check failed: 12 errors occurred: * Check 11/31 error: aws_keyspaces_table.test: Attribute 'schema_definition.0.column.1.name' expected "name", got "division" * Check 15/31 error: aws_keyspaces_table.test: Attribute 'schema_definition.0.column.3.name' expected "division", got "manager_id" * Check 17/31 error: aws_keyspaces_table.test: Attribute 'schema_definition.0.column.4.name' expected "project", got "name" * Check 19/31 error: aws_keyspaces_table.test: Attribute 'schema_definition.0.column.5.name' expected "role", got "project" * Check 21/31 error: aws_keyspaces_table.test: Attribute 'schema_definition.0.column.6.name' expected "pay_scale", got "vacation_hrs" * Check 22/31 error: aws_keyspaces_table.test: Attribute 'schema_definition.0.column.6.type' expected "int", got "float" * Check 23/31 error: aws_keyspaces_table.test: Attribute 'schema_definition.0.column.7.name' expected "vacation_hrs", got "pay_scale" * Check 24/31 error: aws_keyspaces_table.test: Attribute 'schema_definition.0.column.7.type' expected "float", got "int" * Check 25/31 error: aws_keyspaces_table.test: Attribute 'schema_definition.0.column.8.name' expected "manager_id", got "role" * Check 28/31 error: aws_keyspaces_table.test: Attribute 'schema_definition.0.partition_key.0.name' expected "message", got "id" * Check 30/31 error: aws_keyspaces_table.test: Attribute 'schema_definition.0.static_column.0.name' expected "role", got "pay_scale" * Check 31/31 error: aws_keyspaces_table.test: Attribute 'schema_definition.0.static_column.1.name' expected "pay_scale", got "role" --- FAIL: TestAccKeyspacesTable_multipleColumns (88.35s) FAIL FAIL github.com/hashicorp/terraform-provider-aws/internal/service/keyspaces 94.534s FAIL make: *** [testacc] Error 1
… attributes and ensure lowercase strings. Acceptance test output: % make testacc TESTS=TestAccKeyspacesTable_basic PKG=keyspaces ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/keyspaces/... -v -count 1 -parallel 20 -run='TestAccKeyspacesTable_basic' -timeout 180m === RUN TestAccKeyspacesTable_basic === PAUSE TestAccKeyspacesTable_basic === CONT TestAccKeyspacesTable_basic --- PASS: TestAccKeyspacesTable_basic (117.47s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/keyspaces 121.809s
Acceptance test output: % make testacc TESTS=TestAccKeyspacesTable_multipleColumns PKG=keyspaces ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/keyspaces/... -v -count 1 -parallel 20 -run='TestAccKeyspacesTable_multipleColumns' -timeout 180m === RUN TestAccKeyspacesTable_multipleColumns === PAUSE TestAccKeyspacesTable_multipleColumns === CONT TestAccKeyspacesTable_multipleColumns --- PASS: TestAccKeyspacesTable_multipleColumns (105.08s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/keyspaces 109.384s
…ges during Update.
Acceptance test output: % make testacc TESTS=TestAccKeyspacesTable_addColumns PKG=keyspaces ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/keyspaces/... -v -count 1 -parallel 20 -run='TestAccKeyspacesTable_addColumns' -timeout 180m === RUN TestAccKeyspacesTable_addColumns === PAUSE TestAccKeyspacesTable_addColumns === CONT TestAccKeyspacesTable_addColumns --- PASS: TestAccKeyspacesTable_addColumns (115.71s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/keyspaces 119.931s
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 TESTS=TestAccKeyspacesTable_ PKG=keyspaces ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/keyspaces/... -v -count 1 -parallel 2 -run='TestAccKeyspacesTable_' -timeout 180m
=== RUN TestAccKeyspacesTable_basic
=== PAUSE TestAccKeyspacesTable_basic
=== RUN TestAccKeyspacesTable_disappears
=== PAUSE TestAccKeyspacesTable_disappears
=== RUN TestAccKeyspacesTable_tags
=== PAUSE TestAccKeyspacesTable_tags
=== RUN TestAccKeyspacesTable_multipleColumns
=== PAUSE TestAccKeyspacesTable_multipleColumns
=== RUN TestAccKeyspacesTable_update
=== PAUSE TestAccKeyspacesTable_update
=== RUN TestAccKeyspacesTable_addColumns
=== PAUSE TestAccKeyspacesTable_addColumns
=== RUN TestAccKeyspacesTable_delColumns
=== PAUSE TestAccKeyspacesTable_delColumns
=== CONT TestAccKeyspacesTable_basic
=== CONT TestAccKeyspacesTable_update
--- PASS: TestAccKeyspacesTable_basic (105.06s)
=== CONT TestAccKeyspacesTable_delColumns
--- PASS: TestAccKeyspacesTable_delColumns (143.91s)
=== CONT TestAccKeyspacesTable_addColumns
--- PASS: TestAccKeyspacesTable_addColumns (114.99s)
=== CONT TestAccKeyspacesTable_tags
--- PASS: TestAccKeyspacesTable_tags (126.74s)
=== CONT TestAccKeyspacesTable_multipleColumns
--- PASS: TestAccKeyspacesTable_multipleColumns (102.18s)
=== CONT TestAccKeyspacesTable_disappears
--- PASS: TestAccKeyspacesTable_disappears (89.17s)
--- PASS: TestAccKeyspacesTable_update (957.72s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/keyspaces 961.556s
@pranayw333 Thanks for the contribution 🎉 👏. |
@ewbankkit Thank you so much for help :) |
This functionality has been released in v4.15.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! |
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. |
Community Note
Closes #11221.
Output from acceptance testing: