-
Notifications
You must be signed in to change notification settings - Fork 9k
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
chore: Add payer account precheck for CE tests #38529
Merged
Merged
+43
−10
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Community NoteVoting for Prioritization
For Submitters
|
7cb82aa
to
8b36d6e
Compare
8b36d6e
to
90fa9c8
Compare
jar-b
approved these changes
Jul 29, 2024
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=ce TESTS="TestAccCECostAllocationTag|TestAccCECostCategory"
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/ce/... -v -count 1 -parallel 20 -run='TestAccCECostAllocationTag|TestAccCECostCategory' -timeout 360m
=== NAME TestAccCECostAllocationTag_disappears
cost_allocation_tag_test.go:74: skipping tests; this AWS account must be a payer account
--- SKIP: TestAccCECostAllocationTag_disappears (0.74s)
=== NAME TestAccCECostAllocationTag_basic
cost_allocation_tag_test.go:27: skipping tests; this AWS account must be a payer account
--- SKIP: TestAccCECostAllocationTag_basic (0.74s)
=== NAME TestAccCECostCategory_splitCharge
cost_category_test.go:191: skipping tests; this AWS account must be a payer account
--- SKIP: TestAccCECostCategory_splitCharge (0.75s)
=== NAME TestAccCECostCategory_tags
cost_category_test.go:226: skipping tests; this AWS account must be a payer account
--- SKIP: TestAccCECostCategory_tags (0.76s)
=== NAME TestAccCECostCategoryDataSource_basic
cost_category_data_source_test.go:24: skipping tests; this AWS account must be a payer account
--- SKIP: TestAccCECostCategoryDataSource_basic (0.77s)
=== NAME TestAccCECostCategory_notWithAnd
cost_category_test.go:163: skipping tests; this AWS account must be a payer account
--- SKIP: TestAccCECostCategory_notWithAnd (0.77s)
=== NAME TestAccCECostCategory_disappears
cost_category_test.go:104: skipping tests; this AWS account must be a payer account
--- SKIP: TestAccCECostCategory_disappears (0.77s)
=== NAME TestAccCECostCategory_effectiveStart
cost_category_test.go:67: skipping tests; this AWS account must be a payer account
--- SKIP: TestAccCECostCategory_effectiveStart (0.77s)
=== NAME TestAccCECostCategory_basic
cost_category_test.go:31: skipping tests; this AWS account must be a payer account
--- SKIP: TestAccCECostCategory_basic (0.77s)
=== NAME TestAccCECostCategory_complete
cost_category_test.go:128: skipping tests; this AWS account must be a payer account
--- SKIP: TestAccCECostCategory_complete (0.79s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ce 6.779s
Thanks for the quick fix, @acwwat! 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
external-maintainer
Contribution from a trusted external contributor.
service/ce
Issues and PRs that pertain to the ce service.
size/S
Managed by automation to categorize the size of a PR.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR is to add prechecks for payer accounts to the acceptance tests for the
aws_ce_cost_allocation_tag
resource, and theaws_ce_cost_category
resource and data source.Relations
Closes #38465
References
n/a
Output from Acceptance Testing
In a non-payer/org member account:
In a payer/org management account: