Skip to content

Commit

Permalink
🧹 linting
Browse files Browse the repository at this point in the history
  • Loading branch information
danquack committed Feb 21, 2024
1 parent 4a70575 commit 83a8214
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion internal/service/cognitoidp/user_group_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ func TestAccCognitoIDPUserGroupDataSource_basic(t *testing.T) {
dataSourceName := "data.aws_cognito_user_group.test"

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acctest.PreCheck(ctx, t); testAccPreCheckIdentityProvider(ctx, t) },
PreCheck: func() {
acctest.PreCheck(ctx, t)
acctest.PreCheckPartitionHasService(t, cognitoidentityprovider.ServiceID)
testAccPreCheckIdentityProvider(ctx, t)
},
ErrorCheck: acctest.ErrorCheck(t, cognitoidentityprovider.EndpointsID),
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
CheckDestroy: testAccCheckUserGroupDestroy(ctx),
Expand Down
10 changes: 6 additions & 4 deletions internal/service/cognitoidp/user_groups_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,19 @@ func TestAccCognitoIDPUserGroupsDataSource_basic(t *testing.T) {
dataSourceName := "data.aws_cognito_user_groups.test"

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acctest.PreCheck(ctx, t); testAccPreCheckIdentityProvider(ctx, t) },
PreCheck: func() {
acctest.PreCheck(ctx, t)
acctest.PreCheckPartitionHasService(t, cognitoidentityprovider.ServiceID)
testAccPreCheckIdentityProvider(ctx, t)
},
ErrorCheck: acctest.ErrorCheck(t, cognitoidentityprovider.EndpointsID),
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
CheckDestroy: testAccCheckUserGroupDestroy(ctx),
Steps: []resource.TestStep{
{
Config: testAccUserGroupsDataSourceConfig_basic(rName),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet(dataSourceName, "groups.#"),
resource.TestCheckResourceAttr(dataSourceName, "groups.0.group_name", fmt.Sprintf("%s-1", rName)),
resource.TestCheckResourceAttr(dataSourceName, "groups.1.group_name", fmt.Sprintf("%s-2", rName)),
resource.TestCheckResourceAttr(dataSourceName, "groups.#", "2"),
),
},
},
Expand Down

0 comments on commit 83a8214

Please sign in to comment.