-
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.
- Loading branch information
1 parent
e25635b
commit c76b42e
Showing
25 changed files
with
734 additions
and
105 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
252 changes: 252 additions & 0 deletions
252
pkg/datasources/security_integrations_acceptance_test.go
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...curityIntegrations/api_authentication_with_authorization_code_grant/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,19 @@ | ||
resource "snowflake_api_authentication_integration_with_authorization_code_grant" "test" { | ||
comment = var.comment | ||
enabled = var.enabled | ||
name = var.name | ||
oauth_access_token_validity = var.oauth_access_token_validity | ||
oauth_authorization_endpoint = var.oauth_authorization_endpoint | ||
oauth_client_auth_method = var.oauth_client_auth_method | ||
oauth_client_id = var.oauth_client_id | ||
oauth_client_secret = var.oauth_client_secret | ||
oauth_refresh_token_validity = var.oauth_refresh_token_validity | ||
oauth_token_endpoint = var.oauth_token_endpoint | ||
oauth_allowed_scopes = var.oauth_allowed_scopes | ||
} | ||
|
||
data "snowflake_security_integrations" "test" { | ||
depends_on = [snowflake_api_authentication_integration_with_authorization_code_grant.test] | ||
|
||
like = var.name | ||
} |
33 changes: 33 additions & 0 deletions
33
...yIntegrations/api_authentication_with_authorization_code_grant/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,33 @@ | ||
variable "comment" { | ||
type = string | ||
} | ||
variable "enabled" { | ||
type = bool | ||
} | ||
variable "name" { | ||
type = string | ||
} | ||
variable "oauth_access_token_validity" { | ||
type = number | ||
} | ||
variable "oauth_authorization_endpoint" { | ||
type = string | ||
} | ||
variable "oauth_client_auth_method" { | ||
type = string | ||
} | ||
variable "oauth_client_id" { | ||
type = string | ||
} | ||
variable "oauth_client_secret" { | ||
type = string | ||
} | ||
variable "oauth_refresh_token_validity" { | ||
type = number | ||
} | ||
variable "oauth_token_endpoint" { | ||
type = string | ||
} | ||
variable "oauth_allowed_scopes" { | ||
type = set(string) | ||
} |
20 changes: 20 additions & 0 deletions
20
...rityIntegrations/api_authentication_with_authorization_code_grant/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,20 @@ | ||
resource "snowflake_api_authentication_integration_with_authorization_code_grant" "test" { | ||
comment = var.comment | ||
enabled = var.enabled | ||
name = var.name | ||
oauth_access_token_validity = var.oauth_access_token_validity | ||
oauth_authorization_endpoint = var.oauth_authorization_endpoint | ||
oauth_client_auth_method = var.oauth_client_auth_method | ||
oauth_client_id = var.oauth_client_id | ||
oauth_client_secret = var.oauth_client_secret | ||
oauth_refresh_token_validity = var.oauth_refresh_token_validity | ||
oauth_token_endpoint = var.oauth_token_endpoint | ||
oauth_allowed_scopes = var.oauth_allowed_scopes | ||
} | ||
|
||
data "snowflake_security_integrations" "test" { | ||
depends_on = [snowflake_api_authentication_integration_with_authorization_code_grant.test] | ||
|
||
with_describe = false | ||
like = var.name | ||
} |
33 changes: 33 additions & 0 deletions
33
...ntegrations/api_authentication_with_authorization_code_grant/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,33 @@ | ||
variable "comment" { | ||
type = string | ||
} | ||
variable "enabled" { | ||
type = bool | ||
} | ||
variable "name" { | ||
type = string | ||
} | ||
variable "oauth_access_token_validity" { | ||
type = number | ||
} | ||
variable "oauth_authorization_endpoint" { | ||
type = string | ||
} | ||
variable "oauth_client_auth_method" { | ||
type = string | ||
} | ||
variable "oauth_client_id" { | ||
type = string | ||
} | ||
variable "oauth_client_secret" { | ||
type = string | ||
} | ||
variable "oauth_refresh_token_validity" { | ||
type = number | ||
} | ||
variable "oauth_token_endpoint" { | ||
type = string | ||
} | ||
variable "oauth_allowed_scopes" { | ||
type = set(string) | ||
} |
24 changes: 24 additions & 0 deletions
24
...rces/testdata/TestAcc_SecurityIntegrations/oauth_for_custom_clients/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,24 @@ | ||
resource "snowflake_oauth_integration_for_custom_clients" "test" { | ||
blocked_roles_list = var.blocked_roles_list | ||
comment = var.comment | ||
enabled = var.enabled | ||
name = var.name | ||
network_policy = var.network_policy | ||
oauth_allow_non_tls_redirect_uri = var.oauth_allow_non_tls_redirect_uri | ||
oauth_client_rsa_public_key = var.oauth_client_rsa_public_key | ||
oauth_client_rsa_public_key_2 = var.oauth_client_rsa_public_key_2 | ||
oauth_client_type = var.oauth_client_type | ||
oauth_enforce_pkce = var.oauth_enforce_pkce | ||
oauth_issue_refresh_tokens = var.oauth_issue_refresh_tokens | ||
oauth_redirect_uri = var.oauth_redirect_uri | ||
oauth_refresh_token_validity = var.oauth_refresh_token_validity | ||
oauth_use_secondary_roles = var.oauth_use_secondary_roles | ||
pre_authorized_roles_list = var.pre_authorized_roles_list | ||
} | ||
|
||
|
||
data "snowflake_security_integrations" "test" { | ||
depends_on = [snowflake_oauth_integration_for_custom_clients.test] | ||
|
||
like = var.name | ||
} |
46 changes: 46 additions & 0 deletions
46
...testdata/TestAcc_SecurityIntegrations/oauth_for_custom_clients/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,46 @@ | ||
|
||
variable "blocked_roles_list" { | ||
type = set(string) | ||
} | ||
variable "comment" { | ||
type = string | ||
} | ||
variable "enabled" { | ||
type = bool | ||
} | ||
variable "name" { | ||
type = string | ||
} | ||
variable "network_policy" { | ||
type = string | ||
} | ||
variable "oauth_allow_non_tls_redirect_uri" { | ||
type = bool | ||
} | ||
variable "oauth_client_rsa_public_key" { | ||
type = string | ||
} | ||
variable "oauth_client_rsa_public_key_2" { | ||
type = string | ||
} | ||
variable "oauth_client_type" { | ||
type = string | ||
} | ||
variable "oauth_enforce_pkce" { | ||
type = bool | ||
} | ||
variable "oauth_issue_refresh_tokens" { | ||
type = bool | ||
} | ||
variable "oauth_redirect_uri" { | ||
type = string | ||
} | ||
variable "oauth_refresh_token_validity" { | ||
type = number | ||
} | ||
variable "oauth_use_secondary_roles" { | ||
type = string | ||
} | ||
variable "pre_authorized_roles_list" { | ||
type = set(string) | ||
} |
25 changes: 25 additions & 0 deletions
25
...es/testdata/TestAcc_SecurityIntegrations/oauth_for_custom_clients/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,25 @@ | ||
resource "snowflake_oauth_integration_for_custom_clients" "test" { | ||
blocked_roles_list = var.blocked_roles_list | ||
comment = var.comment | ||
enabled = var.enabled | ||
name = var.name | ||
network_policy = var.network_policy | ||
oauth_allow_non_tls_redirect_uri = var.oauth_allow_non_tls_redirect_uri | ||
oauth_client_rsa_public_key = var.oauth_client_rsa_public_key | ||
oauth_client_rsa_public_key_2 = var.oauth_client_rsa_public_key_2 | ||
oauth_client_type = var.oauth_client_type | ||
oauth_enforce_pkce = var.oauth_enforce_pkce | ||
oauth_issue_refresh_tokens = var.oauth_issue_refresh_tokens | ||
oauth_redirect_uri = var.oauth_redirect_uri | ||
oauth_refresh_token_validity = var.oauth_refresh_token_validity | ||
oauth_use_secondary_roles = var.oauth_use_secondary_roles | ||
pre_authorized_roles_list = var.pre_authorized_roles_list | ||
} | ||
|
||
|
||
data "snowflake_security_integrations" "test" { | ||
depends_on = [snowflake_oauth_integration_for_custom_clients.test] | ||
|
||
with_describe = false | ||
like = var.name | ||
} |
46 changes: 46 additions & 0 deletions
46
...stdata/TestAcc_SecurityIntegrations/oauth_for_custom_clients/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,46 @@ | ||
|
||
variable "blocked_roles_list" { | ||
type = set(string) | ||
} | ||
variable "comment" { | ||
type = string | ||
} | ||
variable "enabled" { | ||
type = bool | ||
} | ||
variable "name" { | ||
type = string | ||
} | ||
variable "network_policy" { | ||
type = string | ||
} | ||
variable "oauth_allow_non_tls_redirect_uri" { | ||
type = bool | ||
} | ||
variable "oauth_client_rsa_public_key" { | ||
type = string | ||
} | ||
variable "oauth_client_rsa_public_key_2" { | ||
type = string | ||
} | ||
variable "oauth_client_type" { | ||
type = string | ||
} | ||
variable "oauth_enforce_pkce" { | ||
type = bool | ||
} | ||
variable "oauth_issue_refresh_tokens" { | ||
type = bool | ||
} | ||
variable "oauth_redirect_uri" { | ||
type = string | ||
} | ||
variable "oauth_refresh_token_validity" { | ||
type = number | ||
} | ||
variable "oauth_use_secondary_roles" { | ||
type = string | ||
} | ||
variable "pre_authorized_roles_list" { | ||
type = set(string) | ||
} |
16 changes: 16 additions & 0 deletions
16
...estdata/TestAcc_SecurityIntegrations/oauth_for_partner_applications/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,16 @@ | ||
resource "snowflake_oauth_integration_for_partner_applications" "test" { | ||
name = var.name | ||
oauth_client = var.oauth_client | ||
blocked_roles_list = var.blocked_roles_list | ||
enabled = var.enabled | ||
oauth_issue_refresh_tokens = var.oauth_issue_refresh_tokens | ||
oauth_refresh_token_validity = var.oauth_refresh_token_validity | ||
oauth_use_secondary_roles = var.oauth_use_secondary_roles | ||
comment = var.comment | ||
} | ||
|
||
data "snowflake_security_integrations" "test" { | ||
depends_on = [snowflake_oauth_integration_for_partner_applications.test] | ||
|
||
like = var.name | ||
} |
24 changes: 24 additions & 0 deletions
24
...ta/TestAcc_SecurityIntegrations/oauth_for_partner_applications/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,24 @@ | ||
variable "name" { | ||
type = string | ||
} | ||
variable "oauth_client" { | ||
type = string | ||
} | ||
variable "blocked_roles_list" { | ||
type = set(string) | ||
} | ||
variable "enabled" { | ||
type = string | ||
} | ||
variable "oauth_issue_refresh_tokens" { | ||
type = string | ||
} | ||
variable "oauth_refresh_token_validity" { | ||
type = string | ||
} | ||
variable "oauth_use_secondary_roles" { | ||
type = string | ||
} | ||
variable "comment" { | ||
type = string | ||
} |
17 changes: 17 additions & 0 deletions
17
...tdata/TestAcc_SecurityIntegrations/oauth_for_partner_applications/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,17 @@ | ||
resource "snowflake_oauth_integration_for_partner_applications" "test" { | ||
name = var.name | ||
oauth_client = var.oauth_client | ||
blocked_roles_list = var.blocked_roles_list | ||
enabled = var.enabled | ||
oauth_issue_refresh_tokens = var.oauth_issue_refresh_tokens | ||
oauth_refresh_token_validity = var.oauth_refresh_token_validity | ||
oauth_use_secondary_roles = var.oauth_use_secondary_roles | ||
comment = var.comment | ||
} | ||
|
||
data "snowflake_security_integrations" "test" { | ||
depends_on = [snowflake_oauth_integration_for_partner_applications.test] | ||
|
||
with_describe = false | ||
like = var.name | ||
} |
24 changes: 24 additions & 0 deletions
24
.../TestAcc_SecurityIntegrations/oauth_for_partner_applications/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,24 @@ | ||
variable "name" { | ||
type = string | ||
} | ||
variable "oauth_client" { | ||
type = string | ||
} | ||
variable "blocked_roles_list" { | ||
type = set(string) | ||
} | ||
variable "enabled" { | ||
type = string | ||
} | ||
variable "oauth_issue_refresh_tokens" { | ||
type = string | ||
} | ||
variable "oauth_refresh_token_validity" { | ||
type = string | ||
} | ||
variable "oauth_use_secondary_roles" { | ||
type = string | ||
} | ||
variable "comment" { | ||
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
Oops, something went wrong.