Skip to content

Commit

Permalink
codeguruprofiler
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Jan 9, 2025
1 parent 499a026 commit 404685f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion .ci/semgrep/acctest/checks/arn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ rules:
message: Use one of the `acctest` ARN value checks or TestCheckResourceAttrPair
paths:
exclude:
- "internal/service/codeguruprofiler"
- "internal/service/configservice"
- "internal/service/connect"
- "internal/service/controltower"
Expand Down
9 changes: 5 additions & 4 deletions internal/service/codeguruprofiler/profiling_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ func TestAccCodeGuruProfilerProfilingGroup_basic(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccProfilingGroupConfig_basic(rName),
Check: resource.ComposeTestCheckFunc(
Check: resource.ComposeAggregateTestCheckFunc(
testAccCheckProfilingGroupExists(ctx, resourceName, &profilinggroup),
resource.TestCheckResourceAttr(resourceName, names.AttrName, rName),
resource.TestCheckResourceAttrSet(resourceName, names.AttrARN),
acctest.CheckResourceAttrRegionalARNFormat(ctx, resourceName, names.AttrARN, "codeguru-profiler", "profilingGroup/{name}"),
resource.TestCheckResourceAttr(resourceName, "compute_platform", "Default"),
resource.TestCheckResourceAttr(resourceName, "agent_orchestration_config.0.profiling_enabled", acctest.CtTrue),
resource.TestCheckResourceAttrPair(resourceName, names.AttrID, resourceName, names.AttrName),
),
},
{
Expand Down Expand Up @@ -115,7 +116,7 @@ func TestAccCodeGuruProfilerProfilingGroup_update(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckProfilingGroupExists(ctx, resourceName, &profilinggroup),
resource.TestCheckResourceAttr(resourceName, names.AttrName, rName),
resource.TestCheckResourceAttrSet(resourceName, names.AttrARN),
acctest.CheckResourceAttrRegionalARNFormat(ctx, resourceName, names.AttrARN, "codeguru-profiler", "profilingGroup/{name}"),
resource.TestCheckResourceAttr(resourceName, "compute_platform", "Default"),
resource.TestCheckResourceAttr(resourceName, "agent_orchestration_config.0.profiling_enabled", acctest.CtTrue),
),
Expand All @@ -125,7 +126,7 @@ func TestAccCodeGuruProfilerProfilingGroup_update(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckProfilingGroupExists(ctx, resourceName, &profilinggroup),
resource.TestCheckResourceAttr(resourceName, names.AttrName, rName),
resource.TestCheckResourceAttrSet(resourceName, names.AttrARN),
acctest.CheckResourceAttrRegionalARNFormat(ctx, resourceName, names.AttrARN, "codeguru-profiler", "profilingGroup/{name}"),
resource.TestCheckResourceAttr(resourceName, "compute_platform", "Default"),
resource.TestCheckResourceAttr(resourceName, "agent_orchestration_config.0.profiling_enabled", acctest.CtFalse),
),
Expand Down

0 comments on commit 404685f

Please sign in to comment.