Merge pull request #7116 from hashicorp/b-aws-map-list-test-merrymaking
provider/aws: Clean up some map/set test checks
This commit is contained in:
commit
bba5a38c95
|
@ -45,7 +45,7 @@ func TestAccAWSAmiDataSource_natInstance(t *testing.T) {
|
|||
resource.TestCheckResourceAttr("data.aws_ami.nat_ami", "state", "available"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.nat_ami", "state_reason.code", "UNSET"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.nat_ami", "state_reason.message", "UNSET"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.nat_ami", "tags.%", "0"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.nat_ami", "tags.#", "0"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.nat_ami", "virtualization_type", "hvm"),
|
||||
),
|
||||
},
|
||||
|
@ -82,7 +82,7 @@ func TestAccAWSAmiDataSource_windowsInstance(t *testing.T) {
|
|||
resource.TestCheckResourceAttr("data.aws_ami.windows_ami", "state", "available"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.windows_ami", "state_reason.code", "UNSET"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.windows_ami", "state_reason.message", "UNSET"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.windows_ami", "tags.%", "0"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.windows_ami", "tags.#", "0"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.windows_ami", "virtualization_type", "hvm"),
|
||||
),
|
||||
},
|
||||
|
@ -116,7 +116,7 @@ func TestAccAWSAmiDataSource_instanceStore(t *testing.T) {
|
|||
resource.TestCheckResourceAttr("data.aws_ami.instance_store_ami", "state", "available"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.instance_store_ami", "state_reason.code", "UNSET"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.instance_store_ami", "state_reason.message", "UNSET"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.instance_store_ami", "tags.%", "0"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.instance_store_ami", "tags.#", "0"),
|
||||
resource.TestCheckResourceAttr("data.aws_ami.instance_store_ami", "virtualization_type", "hvm"),
|
||||
),
|
||||
},
|
||||
|
|
|
@ -66,7 +66,7 @@ func TestAccAWSCloudFormation_allAttributes(t *testing.T) {
|
|||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "capabilities.1328347040", "CAPABILITY_IAM"),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "disable_rollback", "false"),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "notification_arns.#", "1"),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "parameters.#", "1"),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "parameters.%", "1"),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "parameters.VpcCIDR", "10.0.0.0/16"),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "policy_body", expectedPolicyBody),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "tags.%", "2"),
|
||||
|
@ -84,7 +84,7 @@ func TestAccAWSCloudFormation_allAttributes(t *testing.T) {
|
|||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "capabilities.1328347040", "CAPABILITY_IAM"),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "disable_rollback", "false"),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "notification_arns.#", "1"),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "parameters.#", "1"),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "parameters.%", "1"),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "parameters.VpcCIDR", "10.0.0.0/16"),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "policy_body", expectedPolicyBody),
|
||||
resource.TestCheckResourceAttr("aws_cloudformation_stack.full", "tags.%", "2"),
|
||||
|
|
Loading…
Reference in New Issue