-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fill fields in datasource for saml2 and scim
- Loading branch information
1 parent
d0c136d
commit 4598a77
Showing
17 changed files
with
354 additions
and
75 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
11 changes: 6 additions & 5 deletions
11
pkg/datasources/testdata/TestAcc_SecurityIntegrations/optionals_set/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
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 |
---|---|---|
|
@@ -5,3 +5,6 @@ variable "name" { | |
variable "comment" { | ||
type = string | ||
} | ||
variable "network_policy" { | ||
type = string | ||
} |
13 changes: 7 additions & 6 deletions
13
pkg/datasources/testdata/TestAcc_SecurityIntegrations/optionals_unset/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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
resource "snowflake_scim_integration" "test" { | ||
name = var.name | ||
enabled = false | ||
scim_client = "GENERIC" | ||
run_as_role = "GENERIC_SCIM_PROVISIONER" | ||
comment = var.comment | ||
name = var.name | ||
enabled = false | ||
scim_client = "GENERIC" | ||
run_as_role = "GENERIC_SCIM_PROVISIONER" | ||
network_policy = var.network_policy | ||
comment = var.comment | ||
} | ||
|
||
data "snowflake_security_integrations" "test" { | ||
depends_on = [snowflake_scim_integration.test] | ||
|
||
with_describe = false | ||
like = var.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 |
---|---|---|
|
@@ -5,3 +5,6 @@ variable "name" { | |
variable "comment" { | ||
type = string | ||
} | ||
variable "network_policy" { | ||
type = string | ||
} |
25 changes: 25 additions & 0 deletions
25
pkg/datasources/testdata/TestAcc_SecurityIntegrations/saml2/optionals_set/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,25 @@ | ||
resource "snowflake_saml2_integration" "test" { | ||
allowed_email_patterns = var.allowed_email_patterns | ||
allowed_user_domains = var.allowed_user_domains | ||
comment = var.comment | ||
enabled = var.enabled | ||
name = var.name | ||
saml2_enable_sp_initiated = var.saml2_enable_sp_initiated | ||
saml2_force_authn = var.saml2_force_authn | ||
saml2_issuer = var.saml2_issuer | ||
saml2_post_logout_redirect_url = var.saml2_post_logout_redirect_url | ||
saml2_provider = var.saml2_provider | ||
saml2_requested_nameid_format = var.saml2_requested_nameid_format | ||
saml2_sign_request = var.saml2_sign_request | ||
saml2_snowflake_acs_url = var.saml2_snowflake_acs_url | ||
saml2_snowflake_issuer_url = var.saml2_snowflake_issuer_url | ||
saml2_sp_initiated_login_page_label = var.saml2_sp_initiated_login_page_label | ||
saml2_sso_url = var.saml2_sso_url | ||
saml2_x509_cert = var.saml2_x509_cert | ||
} | ||
|
||
data "snowflake_security_integrations" "test" { | ||
depends_on = [snowflake_saml2_integration.test] | ||
|
||
like = var.name | ||
} |
52 changes: 52 additions & 0 deletions
52
pkg/datasources/testdata/TestAcc_SecurityIntegrations/saml2/optionals_set/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,52 @@ | ||
|
||
variable "allowed_email_patterns" { | ||
type = list(string) | ||
} | ||
variable "allowed_user_domains" { | ||
type = list(string) | ||
} | ||
variable "comment" { | ||
type = string | ||
} | ||
variable "enabled" { | ||
type = bool | ||
} | ||
variable "name" { | ||
type = string | ||
} | ||
variable "saml2_enable_sp_initiated" { | ||
type = bool | ||
} | ||
variable "saml2_force_authn" { | ||
type = bool | ||
} | ||
variable "saml2_issuer" { | ||
type = string | ||
} | ||
variable "saml2_post_logout_redirect_url" { | ||
type = string | ||
} | ||
variable "saml2_provider" { | ||
type = string | ||
} | ||
variable "saml2_requested_nameid_format" { | ||
type = string | ||
} | ||
variable "saml2_sign_request" { | ||
type = bool | ||
} | ||
variable "saml2_snowflake_acs_url" { | ||
type = string | ||
} | ||
variable "saml2_snowflake_issuer_url" { | ||
type = string | ||
} | ||
variable "saml2_sp_initiated_login_page_label" { | ||
type = string | ||
} | ||
variable "saml2_sso_url" { | ||
type = string | ||
} | ||
variable "saml2_x509_cert" { | ||
type = string | ||
} |
26 changes: 26 additions & 0 deletions
26
pkg/datasources/testdata/TestAcc_SecurityIntegrations/saml2/optionals_unset/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,26 @@ | ||
resource "snowflake_saml2_integration" "test" { | ||
allowed_email_patterns = var.allowed_email_patterns | ||
allowed_user_domains = var.allowed_user_domains | ||
comment = var.comment | ||
enabled = var.enabled | ||
name = var.name | ||
saml2_enable_sp_initiated = var.saml2_enable_sp_initiated | ||
saml2_force_authn = var.saml2_force_authn | ||
saml2_issuer = var.saml2_issuer | ||
saml2_post_logout_redirect_url = var.saml2_post_logout_redirect_url | ||
saml2_provider = var.saml2_provider | ||
saml2_requested_nameid_format = var.saml2_requested_nameid_format | ||
saml2_sign_request = var.saml2_sign_request | ||
saml2_snowflake_acs_url = var.saml2_snowflake_acs_url | ||
saml2_snowflake_issuer_url = var.saml2_snowflake_issuer_url | ||
saml2_sp_initiated_login_page_label = var.saml2_sp_initiated_login_page_label | ||
saml2_sso_url = var.saml2_sso_url | ||
saml2_x509_cert = var.saml2_x509_cert | ||
} | ||
|
||
data "snowflake_security_integrations" "test" { | ||
depends_on = [snowflake_saml2_integration.test] | ||
|
||
with_describe = false | ||
like = var.name | ||
} |
52 changes: 52 additions & 0 deletions
52
pkg/datasources/testdata/TestAcc_SecurityIntegrations/saml2/optionals_unset/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,52 @@ | ||
|
||
variable "allowed_email_patterns" { | ||
type = list(string) | ||
} | ||
variable "allowed_user_domains" { | ||
type = list(string) | ||
} | ||
variable "comment" { | ||
type = string | ||
} | ||
variable "enabled" { | ||
type = bool | ||
} | ||
variable "name" { | ||
type = string | ||
} | ||
variable "saml2_enable_sp_initiated" { | ||
type = bool | ||
} | ||
variable "saml2_force_authn" { | ||
type = bool | ||
} | ||
variable "saml2_issuer" { | ||
type = string | ||
} | ||
variable "saml2_post_logout_redirect_url" { | ||
type = string | ||
} | ||
variable "saml2_provider" { | ||
type = string | ||
} | ||
variable "saml2_requested_nameid_format" { | ||
type = string | ||
} | ||
variable "saml2_sign_request" { | ||
type = bool | ||
} | ||
variable "saml2_snowflake_acs_url" { | ||
type = string | ||
} | ||
variable "saml2_snowflake_issuer_url" { | ||
type = string | ||
} | ||
variable "saml2_sp_initiated_login_page_label" { | ||
type = string | ||
} | ||
variable "saml2_sso_url" { | ||
type = string | ||
} | ||
variable "saml2_x509_cert" { | ||
type = string | ||
} |
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.