Skip to content

Commit

Permalink
Use the value of 'EVENT_BRIDGE_PARTNER_EVENT_SOURCE_NAME' as the name…
Browse files Browse the repository at this point in the history
… prefix.
  • Loading branch information
ewbankkit committed May 4, 2021
1 parent b418752 commit 7bc66a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws/data_source_aws_cloudwatch_event_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"),
),
},
Expand Down

0 comments on commit 7bc66a4

Please sign in to comment.