File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 55 "testing"
66
77 "github.com/databricks/databricks-sdk-go/service/iam"
8+ "github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
89 "github.com/stretchr/testify/assert"
910
1011 "github.com/databricks/terraform-provider-databricks/common"
@@ -45,15 +46,17 @@ func TestMwsAccAccountServicePrincipalRuleSetsFullLifeCycle(t *testing.T) {
4546 role = "roles/servicePrincipal.manager"
4647 }
4748 }` ,
48- Check : resourceCheck ("databricks_access_control_rule_set.sp_rule_set" ,
49- func (ctx context.Context , client * common.DatabricksClient , id string ) error {
49+ Check : resourceCheckWithState ("databricks_access_control_rule_set.sp_rule_set" ,
50+ func (ctx context.Context , client * common.DatabricksClient , state * terraform.InstanceState ) error {
51+ id := state .ID
52+ eTag := state .Attributes ["etag" ]
5053 a , err := client .AccountClient ()
5154 if err != nil {
5255 return err
5356 }
5457 ruleSetRes , err := a .AccessControl .GetRuleSet (ctx , iam.GetRuleSetRequest {
5558 Name : id ,
56- Etag : "" ,
59+ Etag : eTag ,
5760 })
5861 if err != nil {
5962 return err
Original file line number Diff line number Diff line change @@ -2,4 +2,10 @@ ignored_tests:
22 go :
33 - package : github.com/databricks/terraform-provider-databricks/internal/acceptance
44 test_name : TestAccGroupsUpdateDisplayName
5- comment : Failures due to read-after-write inconsistency. Tracked in https://databricks.atlassian.net/browse/ES-1100061
5+ comment : Failures due to read-after-write inconsistency. Tracked in https://databricks.atlassian.net/browse/ES-1100061
6+ - package : github.com/databricks/terraform-provider-databricks/internal/acceptance
7+ test_name : TestMwsAccGroupDataSplitMembers
8+ comment : Failures due to read-after-write inconsistency. Tracked in https://databricks.atlassian.net/browse/ES-1100061
9+ - package : github.com/databricks/terraform-provider-databricks/internal/acceptance
10+ test_name : TestAccServicePrincipalResourceOnAws
11+ comment : Failures due to read-after-write inconsistency. Tracked in https://databricks.atlassian.net/browse/ES-1100061
You can’t perform that action at this time.
0 commit comments