From 7bc66a4f11d4cfff992145660e819fe79b5fcbd1 Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Tue, 4 May 2021 11:10:34 -0400 Subject: [PATCH] Use the value of 'EVENT_BRIDGE_PARTNER_EVENT_SOURCE_NAME' as the name prefix. --- aws/data_source_aws_cloudwatch_event_source_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aws/data_source_aws_cloudwatch_event_source_test.go b/aws/data_source_aws_cloudwatch_event_source_test.go index d20c537d49d..9fa49699217 100644 --- a/aws/data_source_aws_cloudwatch_event_source_test.go +++ b/aws/data_source_aws_cloudwatch_event_source_test.go @@ -22,7 +22,7 @@ func TestAccDataSourceAwsCloudWatchEventSource(t *testing.T) { if len(parts) < 2 { t.Errorf("unable to parse partner event bus name %s", busName) } - namePrefix := parts[0] + "/" + parts[1] + createdBy := parts[0] + "/" + parts[1] dataSourceName := "data.aws_cloudwatch_event_source.test" @@ -32,10 +32,10 @@ func TestAccDataSourceAwsCloudWatchEventSource(t *testing.T) { Providers: testAccProviders, Steps: []resource.TestStep{ { - Config: testAccAwsDataSourcePartnerEventSourceConfig(namePrefix), + Config: testAccAwsDataSourcePartnerEventSourceConfig(busName), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr(dataSourceName, "name", busName), - resource.TestCheckResourceAttr(dataSourceName, "created_by", namePrefix), + resource.TestCheckResourceAttr(dataSourceName, "created_by", createdBy), resource.TestCheckResourceAttrSet(dataSourceName, "arn"), ), },