Skip to content

Commit

Permalink
Ignore feature flag in import tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daniepett committed Mar 22, 2022
1 parent 5af3876 commit 57ce9df
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/resources/database_grant_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ func TestAccDatabaseGrant_basic(t *testing.T) {
ResourceName: "snowflake_database_grant.test",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"enable_multiple_grants", // feature flag attribute not defined in Snowflake, can't be imported
},
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/role_grants_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func TestAcc_GrantRole(t *testing.T) {
ResourceName: "snowflake_role_grants.w",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"roles", "users"},
ImportStateVerifyIgnore: []string{"roles", "users", "enable_multiple_grants"},
},
},
})
Expand Down
6 changes: 6 additions & 0 deletions pkg/resources/schema_grant_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ func TestAcc_SchemaGrant(t *testing.T) {
ResourceName: "snowflake_schema_grant.test",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"enable_multiple_grants", // feature flag attribute not defined in Snowflake, can't be imported
},
},
},
})
Expand Down Expand Up @@ -67,6 +70,9 @@ func TestAcc_SchemaFutureGrants(t *testing.T) {
ResourceName: "snowflake_view_grant.select_on_future_views",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"enable_multiple_grants", // feature flag attribute not defined in Snowflake, can't be imported
},
},
},
})
Expand Down
3 changes: 3 additions & 0 deletions pkg/resources/stage_grant_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ func TestAccStageGrant_defaults(t *testing.T) {
ResourceName: "snowflake_stage_grant.g",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"enable_multiple_grants", // feature flag attribute not defined in Snowflake, can't be imported
},
},
},
})
Expand Down
3 changes: 3 additions & 0 deletions pkg/resources/table_grant_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ func TestAccTableGrant_defaults(t *testing.T) {
ResourceName: "snowflake_table_grant.g",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"enable_multiple_grants", // feature flag attribute not defined in Snowflake, can't be imported
},
},
},
})
Expand Down
3 changes: 3 additions & 0 deletions pkg/resources/task_grant_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func TestAcc_TaskGrant(t *testing.T) {
ResourceName: "snowflake_task_grant.test",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"enable_multiple_grants", // feature flag attribute not defined in Snowflake, can't be imported
},
},
},
})
Expand Down
3 changes: 3 additions & 0 deletions pkg/resources/view_grant_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ func TestAcc_FutureViewGrantChange(t *testing.T) {
ResourceName: "snowflake_view_grant.test",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"enable_multiple_grants", // feature flag attribute not defined in Snowflake, can't be imported
},
},
},
})
Expand Down
3 changes: 3 additions & 0 deletions pkg/resources/warehouse_grant_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ func TestAcc_WarehouseGrant(t *testing.T) {
ResourceName: "snowflake_warehouse_grant.test",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"enable_multiple_grants", // feature flag attribute not defined in Snowflake, can't be imported
},
},
},
})
Expand Down

0 comments on commit 57ce9df

Please sign in to comment.