-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b61d78c
commit ad87118
Showing
11 changed files
with
140 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import snowflake_account.example '"<organization_name>"."<account_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,10 +1,42 @@ | ||
|
||
## TODO: | ||
|
||
## Minimal | ||
resource "snowflake_account" "minimal" { | ||
name = "ACCOUNT_NAME" | ||
admin_name = "ADMIN_NAME" | ||
admin_password = "ADMIN_PASSWORD" | ||
email = "[email protected]" | ||
edition = "STANDARD" | ||
grace_period_in_days = 3 | ||
} | ||
|
||
## Complete (with SERVICE user type) | ||
resource "snowflake_account" "complete" { | ||
name = "ACCOUNT_NAME" | ||
admin_name = "ADMIN_NAME" | ||
admin_rsa_public_key = "<public_key>" | ||
admin_user_type = "SERVICE" | ||
email = "[email protected]" | ||
edition = "STANDARD" | ||
region_group = "PUBLIC" | ||
region = "AWS_US_WEST_2" | ||
comment = "some comment" | ||
is_org_admin = "true" | ||
grace_period_in_days = 3 | ||
} | ||
|
||
## Complete (with every optional set) | ||
## Complete (with PERSON user type) | ||
resource "snowflake_account" "complete" { | ||
name = "ACCOUNT_NAME" | ||
admin_name = "ADMIN_NAME" | ||
admin_password = "ADMIN_PASSWORD" | ||
admin_user_type = "PERSON" | ||
first_name = "first_name" | ||
last_name = "last_name" | ||
email = "[email protected]" | ||
must_change_password = "false" | ||
edition = "STANDARD" | ||
region_group = "PUBLIC" | ||
region = "AWS_US_WEST_2" | ||
comment = "some comment" | ||
is_org_admin = "true" | ||
grace_period_in_days = 3 | ||
} |
11 changes: 11 additions & 0 deletions
11
pkg/acceptance/bettertestspoc/assert/resourceassert/account_resource_ext.go
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 @@ | ||
package resourceassert | ||
|
||
import ( | ||
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance/bettertestspoc/assert" | ||
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" | ||
) | ||
|
||
func (a *AccountResourceAssert) HasAdminUserType(expected sdk.UserType) *AccountResourceAssert { | ||
a.AddAssertion(assert.ValueSet("admin_user_type", string(expected))) | ||
return a | ||
} |
10 changes: 10 additions & 0 deletions
10
pkg/acceptance/bettertestspoc/assert/resourceassert/account_resource_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
pkg/acceptance/bettertestspoc/config/model/account_model_ext.go
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 @@ | ||
package model | ||
|
||
import ( | ||
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" | ||
tfconfig "github.com/hashicorp/terraform-plugin-testing/config" | ||
) | ||
|
||
func (a *AccountModel) WithAdminUserTypeEnum(adminUserType sdk.UserType) *AccountModel { | ||
a.AdminUserType = tfconfig.StringVariable(string(adminUserType)) | ||
return a | ||
} |
4 changes: 0 additions & 4 deletions
4
pkg/acceptance/bettertestspoc/config/model/account_model_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.