Skip to content

Commit

Permalink
error check
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Jun 7, 2021
1 parent deb240e commit f420288
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aws/resource_aws_cognito_user_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func TestAccAWSCognitoUserPool_withAdvancedSecurityMode(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t); testAccPreCheckAWSCognitoIdentityProvider(t) },
ErrorCheck: testAccErrorCheckSkipCognito(t),
ErrorCheck: testAccErrorCheck(t, cognitoidentityprovider.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSCognitoUserPoolDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -900,6 +900,7 @@ func TestAccAWSCognitoUserPool_withUsernameAttributes(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t); testAccPreCheckAWSCognitoIdentityProvider(t) },
ErrorCheck: testAccErrorCheck(t, cognitoidentityprovider.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSCognitoUserPoolDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -1081,6 +1082,7 @@ func TestAccAWSCognitoUserPool_withLambdaConfig_emailConfig(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t); testAccPreCheckAWSCognitoIdentityProvider(t) },
ErrorCheck: testAccErrorCheck(t, cognitoidentityprovider.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSCognitoUserPoolDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -1120,6 +1122,7 @@ func TestAccAWSCognitoUserPool_withLambdaConfig_smsConfig(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t); testAccPreCheckAWSCognitoIdentityProvider(t) },
ErrorCheck: testAccErrorCheck(t, cognitoidentityprovider.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSCognitoUserPoolDestroy,
Steps: []resource.TestStep{
Expand Down

0 comments on commit f420288

Please sign in to comment.