-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: database role v1 readiness (#3014)
## Changes - Checked and updated SDK for database roles (implementation, validation, unit tests, int tests) - Fixed makefile command name for cleaning models - Generate asserts and models for database roles and used them in acceptance tests - Fixed template spacing (it was failing for database role) - Minor changes in the database role resource + added show_output field - Moved global variable `id` in acceptance test to local scope (`alerts_acceptance_test.go`) - Fixed import id and slightly updated example configuration - Data source implementation and tests adjusted
- Loading branch information
1 parent
a5dfeac
commit c4db255
Showing
35 changed files
with
1,206 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
terraform import snowflake_database_role.example 'dbName|roleName' | ||
terraform import snowflake_database_role.example '"<database_name>"."<database_role_name>"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
resource "snowflake_database_role" "db_role" { | ||
database = "database" | ||
name = "role_1" | ||
comment = "my db role" | ||
resource "snowflake_database" "test_database" { | ||
name = "database_name" | ||
} | ||
|
||
resource "snowflake_database_role" "test_database_role" { | ||
database = snowflake_database.test_database.fully_qualified_name | ||
name = "database_role_name" | ||
comment = "my database role" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
163 changes: 163 additions & 0 deletions
163
pkg/acceptance/bettertestspoc/assert/objectassert/database_role_snowflake_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.