provider/aws: Fix matching regexp in invalid role config test

```
$ make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSRole_badJSON'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/02/16 10:08:07 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSRole_badJSON -timeout 120m
=== RUN   TestAccAWSRole_badJSON
--- PASS: TestAccAWSRole_badJSON (0.00s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    0.011s
```
This commit is contained in:
Jake Champlin 2017-02-16 10:14:25 -05:00
parent ad69c540b8
commit c85a874e16
No known key found for this signature in database
GPG Key ID: DC31F41958EF4AC2
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func TestAccAWSRole_badJSON(t *testing.T) {
Steps: []resource.TestStep{ Steps: []resource.TestStep{
{ {
Config: testAccAWSRoleConfig_badJson, Config: testAccAWSRoleConfig_badJson,
ExpectError: regexp.MustCompile(`"assume_role_policy" contains an invalid JSON:.*`), ExpectError: regexp.MustCompile(`.*contains an invalid JSON:.*`),
}, },
}, },
}) })