Skip to content
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

Merged
merged 32 commits into from
May 16, 2022
Merged

Adding support for table resource #24351

merged 32 commits into from
May 16, 2022

Conversation

pranayw333
Copy link

@pranayw333 pranayw333 commented Apr 21, 2022

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #11221.

Output from acceptance testing:

$ make testacc TESTS=TestAccXXX PKG=ec2

...

@github-actions github-actions bot added provider Pertains to the provider itself, rather than any interaction with AWS. service/keyspaces Issues and PRs that pertain to the keyspaces service. sweeper Pertains to changes to or issues with the sweeper. size/M Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. labels Apr 21, 2022
Copy link

@github-actions github-actions bot left a 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! 😃

@ewbankkit
Copy link
Contributor

Similar: #24265.

@justinretzolk justinretzolk added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 22, 2022
…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
@github-actions github-actions bot added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. verify Pertains to the verify package (i.e., provider-level validating, diff suppression, etc.) labels May 11, 2022
@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. and removed size/M Managed by automation to categorize the size of a PR. labels May 11, 2022
@ewbankkit

This comment was marked as outdated.

@github-actions github-actions bot added the documentation Introduces or discusses updates to documentation. label May 11, 2022
ewbankkit and others added 15 commits May 12, 2022 08:25
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
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
Copy link
Contributor

@ewbankkit ewbankkit left a 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

@ewbankkit
Copy link
Contributor

@pranayw333 Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit c17a7f9 into hashicorp:main May 16, 2022
@github-actions github-actions bot added this to the v4.15.0 milestone May 16, 2022
@pranayw333
Copy link
Author

@pranayw333 Thanks for the contribution 🎉 👏.

@ewbankkit Thank you so much for help :)

@github-actions
Copy link

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!

@github-actions
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/keyspaces Issues and PRs that pertain to the keyspaces service. size/XL Managed by automation to categorize the size of a PR. sweeper Pertains to changes to or issues with the sweeper. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. verify Pertains to the verify package (i.e., provider-level validating, diff suppression, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Amazon Managed Apache Cassandra Service / Keyspaces
3 participants