Skip to content

Commit

Permalink
chatbot: Fix constants
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Jul 30, 2024
1 parent fdfe456 commit 5d6baed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/service/chatbot/slack_channel_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (r *slackChannelConfigurationResource) Schema(ctx context.Context, request
listplanmodifier.UseStateForUnknown(),
},
},
"iam_role_arn": schema.StringAttribute{
names.AttrIAMRoleARN: schema.StringAttribute{
Required: true,
},
names.AttrID: framework.IDAttribute(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func testAccSlackChannelConfiguration_basic(t *testing.T) {
testAccCheckSlackChannelConfigurationExists(ctx, testResourceSlackChannelConfiguration, &slackchannelconfiguration),
resource.TestCheckResourceAttr(testResourceSlackChannelConfiguration, "configuration_name", rName),
acctest.MatchResourceAttrGlobalARN(testResourceSlackChannelConfiguration, "chat_configuration_arn", "chatbot", regexache.MustCompile(fmt.Sprintf(`chat-configuration/slack-channel/%s`, rName))),
resource.TestCheckResourceAttrPair(testResourceSlackChannelConfiguration, "iam_role_arn", "aws_iam_role.test", "arn"),
resource.TestCheckResourceAttrPair(testResourceSlackChannelConfiguration, names.AttrIAMRoleARN, "aws_iam_role.test", names.AttrARN),
resource.TestCheckResourceAttr(testResourceSlackChannelConfiguration, "slack_channel_id", channelID),
resource.TestCheckResourceAttrSet(testResourceSlackChannelConfiguration, "slack_channel_name"),
resource.TestCheckResourceAttr(testResourceSlackChannelConfiguration, "slack_team_id", teamID),
Expand Down

0 comments on commit 5d6baed

Please sign in to comment.