-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
service/ec2: Finish refactoring to keyvaluetags package (#12289)
Reference: #10688 Replaces `testAccCheckTags()` custom `TestCheckFunc` with the standard Terraform Plugin SDK `resource.TestCheckResourceAttr()` -- nowadays we prefer checking the Terraform state values and checking `ImportStateVerify` for state validity compared to the API. Output from acceptance testing: ``` --- PASS: TestAccDataSourceAwsEip_Id (22.59s) --- PASS: TestAccDataSourceAwsEip_Instance (144.97s) --- PASS: TestAccDataSourceAwsEip_NetworkInterface (54.82s) --- PASS: TestAccDataSourceAwsEip_PublicIP_EC2Classic (14.56s) --- PASS: TestAccAWSAMI_basic (71.24s) --- PASS: TestAccAWSAMI_disappears (57.69s) --- PASS: TestAccAWSAMI_snapshotSize (82.98s) --- PASS: TestAccAWSAMI_tags (98.21s) --- PASS: TestAccAWSInstance_tags (145.87s) --- PASS: TestAccAWSInstancesDataSource_basic (99.26s) --- PASS: TestAccAWSInstancesDataSource_instance_state_names (94.67s) --- PASS: TestAccAWSInstancesDataSource_tags (83.91s) --- PASS: TestAccAWSInternetGateway_tags (67.39s) --- PASS: TestAccAWSLaunchTemplate_tags (35.69s) --- PASS: TestAccAWSNatGateway_tags (273.08s) --- PASS: TestAccAWSNetworkAcl_OnlyEgressRules (43.22s) --- PASS: TestAccAWSRouteTable_tags (64.47s) --- PASS: TestAccAWSSecurityGroup_tags (71.51s) --- PASS: TestAccAWSVPCPeeringConnection_tags (43.86s) --- PASS: TestAccAWSVpc_tags (74.30s) --- PASS: TestAccAWSVpnGateway_tags (91.97s) --- PASS: TestAccDataSourceAwsSubnetIDs (58.36s) --- PASS: TestAccDataSourceAwsSubnetIDs_filter (48.78s) --- PASS: TestAccDataSourceAwsSubnet_basic (41.70s) --- PASS: TestAccDataSourceAwsSubnet_ipv6ByIpv6CidrBlock (69.88s) --- PASS: TestAccDataSourceAwsSubnet_ipv6ByIpv6Filter (63.06s) --- PASS: TestAccDataSourceAwsVpc_basic (46.32s) --- PASS: TestAccDataSourceAwsVpc_ipv6Associated (45.43s) --- PASS: TestAccDataSourceAwsVpc_multipleCidr (57.43s) --- PASS: TestAccDataSourceAwsVpcPeeringConnection_basic (36.43s) --- PASS: TestAccDataSourceAwsVpcs_basic (32.72s) --- PASS: TestAccDataSourceAwsVpcs_filters (38.44s) --- PASS: TestAccDataSourceAwsVpcs_tags (41.74s) ```
- Loading branch information
Showing
20 changed files
with
93 additions
and
160 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.