provider/aws: Fix-up TestAccAWSIAMInstanceProfile_missingRoleThrowsError

A change in the error produced by the resource was causing the regex to
fail
This commit is contained in:
clint shryock 2017-04-24 10:23:03 -05:00
parent 1206ab9865
commit fe15c68aa9
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ func TestAccAWSIAMInstanceProfile_missingRoleThrowsError(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccAwsIamInstanceProfileConfigMissingRole(rName),
ExpectError: regexp.MustCompile("Either `roles` or `role` must be specified when creating an IAM Instance Profile"),
ExpectError: regexp.MustCompile(regexp.QuoteMeta("Either `role` or `roles` (deprecated) must be specified when creating an IAM Instance Profile")),
},
},
})