-
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
r/aws_batch_job_definition: Ensure that any newly created revision is tagged correctly #39797
r/aws_batch_job_definition: Ensure that any newly created revision is tagged correctly #39797
Conversation
% make testacc TESTARGS='-run=TestAccBatchJobDefinition_updateWithTags' PKG=batch make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.23.2 test ./internal/service/batch/... -v -count 1 -parallel 20 -run=TestAccBatchJobDefinition_updateWithTags -timeout 360m 2024/10/18 12:15:58 Initializing Terraform AWS Provider... === RUN TestAccBatchJobDefinition_updateWithTags === PAUSE TestAccBatchJobDefinition_updateWithTags === CONT TestAccBatchJobDefinition_updateWithTags job_definition_test.go:1027: Step 2/2 error: Post-apply refresh state check(s) failed: error checking value for attribute at path: aws_batch_job_definition.test.tags, err: expected 1 element for MapExact check, got 0 elements error checking value for attribute at path: aws_batch_job_definition.test.tags_all, err: expected 1 element for MapExact check, got 0 elements --- FAIL: TestAccBatchJobDefinition_updateWithTags (18.49s) FAIL FAIL github.com/hashicorp/terraform-provider-aws/internal/service/batch 23.710s FAIL make: *** [testacc] Error 1
Community NoteVoting for Prioritization
For Submitters
|
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.
A couple comments, otherwise looks good
--- PASS: TestAccBatchJobDefinition_createTypeContainerWithNodeProperties (20.63s)
--- PASS: TestAccBatchJobDefinition_createTypeMultiNodeWithContainerProperties (22.31s)
--- PASS: TestAccBatchJobDefinition_emptyRetryStrategy (71.93s)
--- PASS: TestAccBatchJobDefinition_schedulingPriority (73.57s)
--- PASS: TestAccBatchJobDefinition_EKSProperties_imagePullSecrets (78.26s)
--- PASS: TestAccBatchJobDefinition_basic (83.33s)
--- PASS: TestAccBatchJobDefinition_EKSProperties_basic (75.16s)
--- PASS: TestAccBatchJobDefinition_tags_EmptyMap (104.98s)
--- PASS: TestAccBatchJobDefinition_tags_null (105.10s)
--- PASS: TestAccBatchJobDefinition_ECSProperties_update (105.81s)
--- PASS: TestAccBatchJobDefinition_NodeProperties_advanced (112.05s)
--- PASS: TestAccBatchJobDefinition_tags_DefaultTags_updateToResourceOnly (115.70s)
--- PASS: TestAccBatchJobDefinition_updateWithTags (116.47s)
--- PASS: TestAccBatchJobDefinition_tags_DefaultTags_updateToProviderOnly (119.78s)
--- PASS: TestAccBatchJobDefinition_tags_AddOnUpdate (122.90s)
--- PASS: TestAccBatchJobDefinition_tags_EmptyTag_OnUpdate_Replace (123.39s)
--- PASS: TestAccBatchJobDefinition_EKSProperties_update (106.30s)
--- PASS: TestAccBatchJobDefinition_tags_EmptyTag_OnCreate (139.45s)
--- PASS: TestAccBatchJobDefinition_tags_ComputedTag_OnCreate (66.96s)
--- PASS: TestAccBatchJobDefinition_propagateTags (35.62s)
--- PASS: TestAccBatchJobDefinition_tags_DefaultTags_nullOverlappingResourceTag (58.60s)
--- PASS: TestAccBatchJobDefinition_tags_DefaultTags_nullNonOverlappingResourceTag (58.06s)
--- PASS: TestAccBatchJobDefinition_tags_DefaultTags_emptyProviderOnlyTag (54.30s)
--- PASS: TestAccBatchJobDefinition_tags_DefaultTags_emptyResourceTag (51.37s)
--- PASS: TestAccBatchJobDefinition_NodeProperties_basic (50.14s)
--- PASS: TestAccBatchJobDefinition_ContainerProperties_EmptyField (47.02s)
--- PASS: TestAccBatchJobDefinition_tags_EmptyTag_OnUpdate_Add (170.00s)
--- PASS: TestAccBatchJobDefinition_tags_DefaultTags_overlapping (180.03s)
--- PASS: TestAccBatchJobDefinition_tags_DefaultTags_nonOverlapping (180.77s)
--- PASS: TestAccBatchJobDefinition_PlatformCapabilities_ec2 (42.61s)
--- PASS: TestAccBatchJobDefinition_PlatformCapabilities_fargate (41.61s)
--- PASS: TestAccBatchJobDefinition_tags_ComputedTag_OnUpdate_Replace (85.75s)
--- PASS: TestAccBatchJobDefinition_tags_IgnoreTags_Overlap_DefaultTag (103.04s)
--- PASS: TestAccBatchJobDefinition_tags_ComputedTag_OnUpdate_Add (81.91s)
--- PASS: TestAccBatchJobDefinition_disappears (25.75s)
--- PASS: TestAccBatchJobDefinition_PlatformCapabilitiesFargate_containerPropertiesDefaults (31.54s)
--- PASS: TestAccBatchJobDefinition_tags_IgnoreTags_Overlap_ResourceTag (115.27s)
--- PASS: TestAccBatchJobDefinition_tags (197.31s)
--- PASS: TestAccBatchJobDefinition_tags_DefaultTags_providerOnly (136.96s)
--- PASS: TestAccBatchJobDefinition_attributes (53.07s)
--- PASS: TestAccBatchJobDefinition_ContainerProperties_minorUpdate (90.70s)
--- PASS: TestAccBatchJobDefinition_ContainerProperties_advanced (108.79s)
…ttps://github.com/hashicorp/terraform-provider-aws into b-aws_batch_job_definition-new-revision-with-tags
Thanks so much for fixing this @ewbankkit! |
This functionality has been released in v5.73.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. |
Description
Ensures that new revisions get the same tags as the previous.
Relations
Closes #39795.
Closes #38302.
Closes #38053.
Closes #37254.
Output from Acceptance Testing