From fe15c68aa9c1c03c7bc542635c7584c0ce616248 Mon Sep 17 00:00:00 2001 From: clint shryock Date: Mon, 24 Apr 2017 10:23:03 -0500 Subject: [PATCH] provider/aws: Fix-up TestAccAWSIAMInstanceProfile_missingRoleThrowsError A change in the error produced by the resource was causing the regex to fail --- builtin/providers/aws/resource_aws_iam_instance_profile_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_iam_instance_profile_test.go b/builtin/providers/aws/resource_aws_iam_instance_profile_test.go index 0de1371021..f60c4584fb 100644 --- a/builtin/providers/aws/resource_aws_iam_instance_profile_test.go +++ b/builtin/providers/aws/resource_aws_iam_instance_profile_test.go @@ -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")), }, }, })