Skip to content

Commit

Permalink
add import tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcraig committed Oct 2, 2023
1 parent 274f0f3 commit 5a7b660
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vault/resource_database_secret_backend_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,12 @@ func TestAccDatabaseSecretBackendConnection_mysql_cloud(t *testing.T) {
resource.TestCheckResourceAttr(testDefaultDatabaseSecretBackendResource, "mysql.0.max_connection_lifetime", "0"),
),
},
{
ResourceName: testDefaultDatabaseSecretBackendResource,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"verify_connection", "mysql.0.service_account_json"},
},
},
})
}
Expand Down Expand Up @@ -840,6 +846,12 @@ func TestAccDatabaseSecretBackendConnection_postgresql_cloud(t *testing.T) {
resource.TestCheckResourceAttr(testDefaultDatabaseSecretBackendResource, "postgresql.0.auth_type", "gcp_iam"),
),
},
{
ResourceName: testDefaultDatabaseSecretBackendResource,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"verify_connection", "postgres.0.service_account_json"},
},
},
})
}
Expand Down

0 comments on commit 5a7b660

Please sign in to comment.