From 4115249ce3222cdfd79e95bc7a8baf3030f5e92d Mon Sep 17 00:00:00 2001 From: Andy Chan Date: Wed, 23 Mar 2016 11:15:06 -0700 Subject: [PATCH] ISSUE-5702: Fixed the testing --- .../providers/aws/resource_aws_cloudwatch_event_target.go | 8 ++++---- .../aws/resource_aws_cloudwatch_event_target_test.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/builtin/providers/aws/resource_aws_cloudwatch_event_target.go b/builtin/providers/aws/resource_aws_cloudwatch_event_target.go index 9ff8d20ab7..73d362fc80 100644 --- a/builtin/providers/aws/resource_aws_cloudwatch_event_target.go +++ b/builtin/providers/aws/resource_aws_cloudwatch_event_target.go @@ -29,10 +29,10 @@ func resourceAwsCloudWatchEventTarget() *schema.Resource { }, "target_id": &schema.Schema{ - Type: schema.TypeString, - Optional: true, - Computed: true, - ForceNew: true, + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, ValidateFunc: validateCloudWatchEventTargetId, }, diff --git a/builtin/providers/aws/resource_aws_cloudwatch_event_target_test.go b/builtin/providers/aws/resource_aws_cloudwatch_event_target_test.go index 42340d9b30..a5509bec8a 100644 --- a/builtin/providers/aws/resource_aws_cloudwatch_event_target_test.go +++ b/builtin/providers/aws/resource_aws_cloudwatch_event_target_test.go @@ -166,7 +166,7 @@ resource "aws_cloudwatch_event_target" "moobar" { } resource "aws_sns_topic" "moon" { - name = "tf-acc-moon-1" + name = "tf-acc-moon" } `