-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed databricks_entitlements
resource edge behaviour
#2409
Conversation
4f6fd3e
to
4d1a14e
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2409 +/- ##
=======================================
Coverage 88.47% 88.48%
=======================================
Files 141 141
Lines 11663 11673 +10
=======================================
+ Hits 10319 10329 +10
Misses 893 893
Partials 451 451
|
8ec7fc3
to
facebd9
Compare
acceptance tests passed on 3 clouds |
@@ -28,7 +28,7 @@ func ResourceEntitlements() *schema.Resource { | |||
addEntitlementsToSchema(&entitlementSchema) | |||
return common.Resource{ | |||
Create: func(ctx context.Context, d *schema.ResourceData, c *common.DatabricksClient) error { | |||
return patchEntitlements(ctx, d, c, "add") | |||
return patchEntitlements(ctx, d, c, "replace") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My concern here is that we initialize entitlements with false
, and when we start to replace them instead of adding, then people may lose the access?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this resource is meant to enforce entitlement of said identity - the update function will enforce the entitlements anyway, so this change is to make it consistent
databricks_entitlements
resource edge behaviourdatabricks_entitlements
resource edge behaviour
Changes
Fix edge cases behaviour for
databricks_entitlements
false
Error: cannot delete entitlements: invalidPath No such attribute with the name : entitlements in the current resource
Close #2382
Tests
make test
run locallydocs/
folderinternal/acceptance
using Go SDK