-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: loosen identifier field validation for account object identifiers (
#2564) Fixes: #2548 Fails because identifier validation doesn't work well for account object identifiers (that may contain dots). ## Test Plan * [x] Acceptance test recreating role name with dots + unit tests for validation function
- Loading branch information
1 parent
7aba384
commit a5ed8cd
Showing
6 changed files
with
138 additions
and
46 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
6 changes: 6 additions & 0 deletions
6
pkg/resources/testdata/TestAcc_GrantPrivilegesToRole/OnAccount/test.tf
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resource "snowflake_grant_privileges_to_role" "test" { | ||
role_name = var.name | ||
privileges = var.privileges | ||
on_account = true | ||
with_grant_option = var.with_grant_option | ||
} |
11 changes: 11 additions & 0 deletions
11
pkg/resources/testdata/TestAcc_GrantPrivilegesToRole/OnAccount/variables.tf
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
variable "name" { | ||
type = string | ||
} | ||
|
||
variable "privileges" { | ||
type = list(string) | ||
} | ||
|
||
variable "with_grant_option" { | ||
type = bool | ||
} |
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