Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/aws_waf_sql_injection_match_set: Properly set sql_injection_…
…match_tuples into Terraform state (#11498) Reference: #9954 Previously: ``` /Users/bflad/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_sql_injection_match_set.go:101:38: R004: ResourceData.Set() incompatible value type: []*github.com/aws/aws-sdk-go/service/waf.SqlInjectionMatchTuple ``` Fixes `d.Set()` handling for this attribute with existing flatten function (used by `aws_wafregional_sql_injection_match_set` resource) and one associated test configuration so that it matches API canonicalization, which is now enforced by the testing since the value is being properly read into the Terraform state. Output from acceptance testing: ``` --- PASS: TestAccAWSWafSqlInjectionMatchSet_noTuples (13.29s) --- PASS: TestAccAWSWafSqlInjectionMatchSet_disappears (17.63s) --- PASS: TestAccAWSWafSqlInjectionMatchSet_basic (17.65s) --- PASS: TestAccAWSWafSqlInjectionMatchSet_changeTuples (23.46s) --- PASS: TestAccAWSWafSqlInjectionMatchSet_changeNameForceNew (31.73s) ```
- Loading branch information