-
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
Add function to check TypeSet pairs #14279
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.
Looks good! Some unit tests for the attrpair would be good, I will move this to the SDK one day.
@appilon I added 11 unit tests. Let me know what you think. |
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 🚀
Output from acceptance testing:
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups (257.03s)
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups_ELBCapacity (314.35s)
--- PASS: TestAccAWSAutoScalingGroup_autoGeneratedName (89.99s)
--- PASS: TestAccAWSAutoScalingGroup_basic (256.43s)
--- PASS: TestAccAWSAutoScalingGroup_classicVpcZoneIdentifier (48.60s)
--- PASS: TestAccAWSAutoScalingGroup_enablingMetrics (199.42s)
--- PASS: TestAccAWSAutoScalingGroup_initialLifecycleHook (262.42s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate (73.17s)
--- PASS: TestAccAWSAutoScalingGroup_LaunchTemplate_IAMInstanceProfile (98.77s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate_update (290.95s)
--- PASS: TestAccAWSAutoScalingGroup_launchTempPartitionNum (103.96s)
--- PASS: TestAccAWSAutoScalingGroup_LoadBalancers (629.95s)
--- PASS: TestAccAWSAutoScalingGroup_MaxInstanceLifetime (80.72s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy (43.74s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandAllocationStrategy (47.68s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandBaseCapacity (49.49s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandPercentageAboveBaseCapacity (45.64s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotAllocationStrategy (54.50s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotInstancePools (79.92s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotMaxPrice (72.78s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_UpdateToZeroOnDemandBaseCapacity (76.11s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_LaunchTemplateName (111.53s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_Version (70.64s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_InstanceType (51.86s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_WeightedCapacity (133.24s)
--- PASS: TestAccAWSAutoScalingGroup_namePrefix (86.69s)
--- PASS: TestAccAWSAutoScalingGroup_serviceLinkedRoleARN (51.56s)
--- PASS: TestAccAWSAutoScalingGroup_suspendingProcesses (353.84s)
--- PASS: TestAccAWSAutoScalingGroup_tags (297.87s)
--- PASS: TestAccAWSAutoScalingGroup_TargetGroupArns (330.61s)
--- PASS: TestAccAWSAutoScalingGroup_terminationPolicies (116.97s)
--- PASS: TestAccAWSAutoScalingGroup_VpcUpdates (123.02s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer (372.31s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer_ToTargetGroup (500.75s)
--- PASS: TestAccAWSAutoScalingGroup_withMetrics (84.61s)
--- PASS: TestAccAWSAutoScalingGroup_withPlacementGroup (132.72s)
🥳 |
This has been released in version 3.0.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 for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Relates #12994
Release note for CHANGELOG:
The output from acceptance testing.
This modifies
tfawsresource.TestCheckTypeSetElemAttr()
so that the new function,tfawsresource.TestCheckTypeSetElemAttrPair()
, can share its guts. As such, I ran some general acc tests that show istfawsresource.TestCheckTypeSetElemAttr()
is still working.This uses the new function
tfawsresource.TestCheckTypeSetElemAttrPair()
:This uses the new function
tfawsresource.TestCheckTypeSetElemAttrPair()
:This uses the existing and modified function
tfawsresource.TestCheckTypeSetElemAttr()
:This uses the existing and modified function
tfawsresource.TestCheckTypeSetElemAttr()
: