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

r/aws_ce_cost_category Add tags to cost category #25432

Merged
merged 19 commits into from
Jul 15, 2022
Merged

Conversation

danquack
Copy link
Contributor

@danquack danquack commented Jun 17, 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 #25422

Output from acceptance testing:

$ make testacc TESTS=TestAccCECostCategory_ PKG=ce
TF_ACC=1 go test ./internal/service/ce/... -v -count 1 -parallel 20 -run='TestAccCECostCategory_'  -timeout 180m
=== RUN   TestAccCECostCategory_tagRemove
=== PAUSE TestAccCECostCategory_tagRemove
=== RUN   TestAccCECostCategory_tagAdd
=== PAUSE TestAccCECostCategory_tagAdd
=== CONT  TestAccCECostCategory_tagRemove
=== CONT  TestAccCECostCategory_tagAdd
--- PASS: TestAccCECostCategory_tagRemove (36.02s)
--- PASS: TestAccCECostCategory_tagAdd (36.98s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ce	38.812s

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. service/ce Issues and PRs that pertain to the ce service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/M Managed by automation to categorize the size of a PR. labels Jun 17, 2022
@danquack danquack force-pushed the 25422 branch 2 times, most recently from 3d0a759 to df659ef Compare June 17, 2022 02:29
@github-actions github-actions bot added size/L 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 Jun 17, 2022
@danquack danquack changed the title Add tags to cost category r/aws_ce_cost_category Add tags to cost category Jun 17, 2022
@github-actions github-actions bot added size/M Managed by automation to categorize the size of a PR. and removed size/L Managed by automation to categorize the size of a PR. labels Jun 17, 2022
@danquack danquack marked this pull request as ready for review June 17, 2022 16:56
@github-actions github-actions bot added size/L 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 Jun 17, 2022
@justinretzolk justinretzolk added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Jun 17, 2022
@danquack
Copy link
Contributor Author

Its unclear what the test name should be. I had it as testAccCostCategoryConfig_WithTag and semgrep told me it should be testAcc<Resource>Config_<testDetail> But when I change to testAccCECostCategoryConfig_WithTag it says Do not use "CE" in func name inside ce package. The test themselves pass, it is only a semgrep build error.

Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you also need a rebase because of a weird thing with the base semgrep check.

internal/service/ce/cost_category_test.go Outdated Show resolved Hide resolved
internal/service/ce/cost_category_test.go Outdated Show resolved Hide resolved
internal/service/ce/cost_category_test.go Outdated Show resolved Hide resolved
internal/service/ce/cost_category_test.go Outdated Show resolved Hide resolved
internal/service/ce/cost_category_test.go Outdated Show resolved Hide resolved
internal/service/ce/cost_category_test.go Outdated Show resolved Hide resolved
@jjshoe
Copy link

jjshoe commented Jun 22, 2022

Was able to confirm all tests pass locally

@danquack danquack requested a review from YakDriver June 22, 2022 19:23
@danquack danquack requested a review from drewmullen June 22, 2022 19:23
Copy link
Collaborator

@drewmullen drewmullen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Nice work! 🚀

@jjshoe
Copy link

jjshoe commented Jul 1, 2022

@YakDriver can I get you to review this when you get a second? Should be good to go.

@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. and removed size/L Managed by automation to categorize the size of a PR. labels Jul 15, 2022
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 TESTARGS='-run=TestAccCECostCategory' PKG=ce ACCTEST_PARALLELISM=3 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ce/... -v -count 1 -parallel 3  -run=TestAccCECostCategory -timeout 180m
=== RUN   TestAccCECostCategoryDataSource_basic
=== PAUSE TestAccCECostCategoryDataSource_basic
=== RUN   TestAccCECostCategory_basic
=== PAUSE TestAccCECostCategory_basic
=== RUN   TestAccCECostCategory_disappears
=== PAUSE TestAccCECostCategory_disappears
=== RUN   TestAccCECostCategory_complete
=== PAUSE TestAccCECostCategory_complete
=== RUN   TestAccCECostCategory_splitCharge
=== PAUSE TestAccCECostCategory_splitCharge
=== RUN   TestAccCECostCategory_tags
=== PAUSE TestAccCECostCategory_tags
=== CONT  TestAccCECostCategoryDataSource_basic
=== CONT  TestAccCECostCategory_tags
=== CONT  TestAccCECostCategory_complete
--- PASS: TestAccCECostCategoryDataSource_basic (23.96s)
=== CONT  TestAccCECostCategory_disappears
--- PASS: TestAccCECostCategory_disappears (16.15s)
=== CONT  TestAccCECostCategory_basic
--- PASS: TestAccCECostCategory_complete (43.84s)
=== CONT  TestAccCECostCategory_splitCharge
--- PASS: TestAccCECostCategory_tags (57.21s)
--- PASS: TestAccCECostCategory_basic (23.35s)
--- PASS: TestAccCECostCategory_splitCharge (39.84s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ce	91.494s

@ewbankkit
Copy link
Contributor

@danquack Thanks for the contribution 🎉 👏.

@ewbankkit
Copy link
Contributor

% make providerlint golangci-lint
==> Checking source code with providerlint...
==> Checking source code with golangci-lint...

@ewbankkit ewbankkit merged commit e1a2c6e into hashicorp:main Jul 15, 2022
@danquack danquack deleted the 25422 branch July 15, 2022 20:43
@github-actions github-actions bot added this to the v4.23.0 milestone Jul 15, 2022
@github-actions
Copy link

This functionality has been released in v4.23.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 Aug 22, 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. enhancement Requests to existing resources that expand the functionality or scope. service/ce Issues and PRs that pertain to the ce service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_ce_cost_category: add support for tagging categories
6 participants