Skip to content

Commit

Permalink
Tweaks test names
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Jul 19, 2024
1 parent 4ca4241 commit 07f0b4b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/service/bedrockagent/agent_action_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestAccBedrockAgentAgentActionGroup_basic(t *testing.T) {
})
}

func TestAccBedrockAgentAgentActionGroup_s3APISchema(t *testing.T) {
func TestAccBedrockAgentAgentActionGroup_APISchema_s3(t *testing.T) {
ctx := acctest.Context(t)
rName := sdkacctest.RandomWithPrefix(acctest.ResourcePrefix)
resourceName := "aws_bedrockagent_agent_action_group.test"
Expand All @@ -61,7 +61,7 @@ func TestAccBedrockAgentAgentActionGroup_s3APISchema(t *testing.T) {
CheckDestroy: testAccCheckAgentActionGroupDestroy(ctx),
Steps: []resource.TestStep{
{
Config: testAccAgentActionGroupConfig_s3APISchema(rName),
Config: testAccAgentActionGroupConfig_APISchema_s3(rName),
Check: resource.ComposeAggregateTestCheckFunc(
testAccCheckAgentActionGroupExists(ctx, resourceName, &v),
resource.TestCheckResourceAttr(resourceName, "action_group_name", rName),
Expand Down Expand Up @@ -92,7 +92,7 @@ func TestAccBedrockAgentAgentActionGroup_update(t *testing.T) {
CheckDestroy: testAccCheckAgentActionGroupDestroy(ctx),
Steps: []resource.TestStep{
{
Config: testAccAgentActionGroupConfig_s3APISchema(rName),
Config: testAccAgentActionGroupConfig_APISchema_s3(rName),
Check: resource.ComposeAggregateTestCheckFunc(
testAccCheckAgentActionGroupExists(ctx, resourceName, &v),
resource.TestCheckResourceAttr(resourceName, "action_group_name", rName),
Expand Down Expand Up @@ -164,7 +164,7 @@ func TestAccBedrockAgentAgentActionGroup_FunctionSchema_memberFunctions(t *testi
})
}

func TestAccBedrockAgentAgentActionGroup_returnControl(t *testing.T) {
func TestAccBedrockAgentAgentActionGroup_ActionGroupExecutor_customControl(t *testing.T) {
ctx := acctest.Context(t)
rName := sdkacctest.RandomWithPrefix(acctest.ResourcePrefix)
resourceName := "aws_bedrockagent_agent_action_group.test"
Expand All @@ -177,7 +177,7 @@ func TestAccBedrockAgentAgentActionGroup_returnControl(t *testing.T) {
CheckDestroy: testAccCheckAgentActionGroupDestroy(ctx),
Steps: []resource.TestStep{
{
Config: testAccAgentActionGroupConfig_returnControl(rName),
Config: testAccAgentActionGroupConfig_ActionGroupExecutor_customControl(rName),
Check: resource.ComposeAggregateTestCheckFunc(
testAccCheckAgentActionGroupExists(ctx, resourceName, &v),
resource.TestCheckResourceAttr(resourceName, "action_group_name", rName),
Expand Down Expand Up @@ -261,7 +261,7 @@ resource "aws_bedrockagent_agent_action_group" "test" {
`, rName))
}

func testAccAgentActionGroupConfig_s3APISchema(rName string) string {
func testAccAgentActionGroupConfig_APISchema_s3(rName string) string {
return acctest.ConfigCompose(testAccAgentConfig_basic(rName, "anthropic.claude-v2", "basic claude"),
testAccAgentActionGroupConfig_lambda(rName),
fmt.Sprintf(`
Expand Down Expand Up @@ -363,7 +363,7 @@ resource "aws_bedrockagent_agent_action_group" "test" {
`, rName))
}

func testAccAgentActionGroupConfig_returnControl(rName string) string {
func testAccAgentActionGroupConfig_ActionGroupExecutor_customControl(rName string) string {
return acctest.ConfigCompose(testAccAgentConfig_basic(rName, "anthropic.claude-v2", "basic claude"),
testAccAgentActionGroupConfig_lambda(rName),
fmt.Sprintf(`
Expand Down

0 comments on commit 07f0b4b

Please sign in to comment.