Skip to content

Commit

Permalink
Fixed test and added changedlog
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyrus committed Nov 11, 2023
1 parent 34247fb commit 5d97a35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/34362.txt
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_cognito_user_pool_client: Added default values to access_token_validity, id_token_validity, and refresh_token_validity
```
4 changes: 2 additions & 2 deletions internal/service/cognitoidp/user_pool_client_test.go
Expand Up @@ -38,7 +38,7 @@ func TestAccCognitoIDPUserPoolClient_basic(t *testing.T) {
Check: resource.ComposeAggregateTestCheckFunc(
testAccCheckUserPoolClientExists(ctx, resourceName, &client),
resource.TestCheckResourceAttr(resourceName, "name", rName),
resource.TestCheckResourceAttr(resourceName, "access_token_validity", "0"),
resource.TestCheckResourceAttr(resourceName, "access_token_validity", "1"),
resource.TestCheckResourceAttr(resourceName, "allowed_oauth_flows.#", "0"),
resource.TestCheckResourceAttr(resourceName, "allowed_oauth_flows_user_pool_client", "false"),
resource.TestCheckResourceAttr(resourceName, "allowed_oauth_scopes.#", "0"),
Expand All @@ -52,7 +52,7 @@ func TestAccCognitoIDPUserPoolClient_basic(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "explicit_auth_flows.#", "1"),
resource.TestCheckTypeSetElemAttr(resourceName, "explicit_auth_flows.*", "ADMIN_NO_SRP_AUTH"),
resource.TestCheckNoResourceAttr(resourceName, "generate_secret"),
resource.TestCheckResourceAttr(resourceName, "id_token_validity", "0"),
resource.TestCheckResourceAttr(resourceName, "id_token_validity", "1"),
resource.TestCheckResourceAttr(resourceName, "logout_urls.#", "0"),
resource.TestCheckResourceAttr(resourceName, "prevent_user_existence_errors", ""),
resource.TestCheckResourceAttr(resourceName, "read_attributes.#", "0"),
Expand Down

0 comments on commit 5d97a35

Please sign in to comment.