-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework user resource: - schema adjusted - handle show output properly - updated user acceptance tests with new builders and assertions - introduce new helpers in `resource_helpers_create.go`, `resource_helpers_update.go`, and `resource_helpers_read.go` - cleaned parameters handling a bit - reused `parameterDef` between user and schema - removed old way of handling keys in tests - added float property to the SDK - added integration tests documenting specific attributes behavior Next PRs: - handle policies for user (SNOW-1645875) - deal with improper custom diffs with diff suppression (SNOW-1629468) - move collection util (SNOW-1473414) - remove `checkBool` helper - datasource - rename methods in `resource_helpers_read.go` - update all changes in README (+ note that external changes for a few attributes) - change description of user public keys resource (should be used only if user is not managed by terraform) - add one more test for login and display name - check the exact behavior of default_namespace and default_role because it looks like it is handled in a case-insensitive manner on Snowflake side - check if any user parameter needs diffsuppression or validation - test if hasMfa is always non-nullable, check if this has mfa helps with disable mfa, add to the describe output too - test what is visible if everything is set if there is no ownership on the active role (+ update docs) - handle `snowflake_user_password_policy_attachment` and `snowflake_user_public_keys` - add `IgnoreChangeToCurrentSnowflakeValueInShow` and other suppressors References: - #1155 - #1572
- Loading branch information
1 parent
e05377d
commit bde2638
Showing
48 changed files
with
2,330 additions
and
827 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
Oops, something went wrong.