From d2ff7b8cd1dad99b857a8a12b351b4f2b8fa43af Mon Sep 17 00:00:00 2001 From: Miguel Lorek Date: Mon, 13 Mar 2023 15:56:04 +0000 Subject: [PATCH 1/2] add PREVENT_LOAD_FROM_INLINE_URL --- pkg/snowflake/parameters.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/snowflake/parameters.go b/pkg/snowflake/parameters.go index 030377215b..6813019adf 100644 --- a/pkg/snowflake/parameters.go +++ b/pkg/snowflake/parameters.go @@ -137,6 +137,11 @@ func ParameterDefaults() map[string]ParameterDefault { DefaultValue: false, Validate: validateBoolFunc, }, + "PREVENT_LOAD_FROM_INLINE_URL": { + TypeSet: []ParameterType{ParameterTypeAccount}, + DefaultValue: false, + Validate: validateBoolFunc, + }, "REQUIRE_STORAGE_INTEGRATION_FOR_STAGE_CREATION": { TypeSet: []ParameterType{ParameterTypeAccount}, DefaultValue: false, From 59eba27bd14fa7569fced2de25c09cd7f96c68cd Mon Sep 17 00:00:00 2001 From: Miguel Lorek Date: Mon, 13 Mar 2023 16:04:22 +0000 Subject: [PATCH 2/2] test --- .../account_parameter_acceptance_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkg/resources/account_parameter_acceptance_test.go b/pkg/resources/account_parameter_acceptance_test.go index 28953318c1..cff1710ca3 100644 --- a/pkg/resources/account_parameter_acceptance_test.go +++ b/pkg/resources/account_parameter_acceptance_test.go @@ -32,3 +32,19 @@ resource "snowflake_account_parameter" "p" { ` return fmt.Sprintf(s, key, value) } + +func TestAcc_AccountParameter_PREVENT_LOAD_FROM_INLINE_URL(t *testing.T) { + resource.ParallelTest(t, resource.TestCase{ + Providers: providers(), + CheckDestroy: nil, + Steps: []resource.TestStep{ + { + Config: accountParameterBasic("PREVENT_LOAD_FROM_INLINE_URL", "true"), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("snowflake_account_parameter.p", "key", "PREVENT_LOAD_FROM_INLINE_URL"), + resource.TestCheckResourceAttr("snowflake_account_parameter.p", "value", "true"), + ), + }, + }, + }) +}