Skip to content
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

resource group entitlement check fix and detecting changes fix #549

Merged
merged 7 commits into from
Mar 27, 2021

Conversation

stikkireddy
Copy link
Contributor

Entitlements for resource groups had typos and logic for detecting changes was not working correctly. This fix resolves those issues.

@stikkireddy stikkireddy requested a review from nfx March 4, 2021 21:40
@stikkireddy stikkireddy requested a review from alexott March 4, 2021 21:42
@codecov
Copy link

codecov bot commented Mar 4, 2021

Codecov Report

Merging #549 (92e7190) into master (501559e) will increase coverage by 0.34%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #549      +/-   ##
==========================================
+ Coverage   81.81%   82.15%   +0.34%     
==========================================
  Files          78       78              
  Lines        6768     6771       +3     
==========================================
+ Hits         5537     5563      +26     
+ Misses        818      800      -18     
+ Partials      413      408       -5     
Impacted Files Coverage Δ
identity/resource_group.go 89.47% <100.00%> (+30.56%) ⬆️
identity/groups.go 92.72% <0.00%> (+1.81%) ⬆️

Copy link
Contributor

@alexott alexott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm from code perspective, can we add a test to cover that changes?

Copy link
Contributor

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, but we have to get unit tests to cover these changes.

@stikkireddy
Copy link
Contributor Author

@nfx @alexott sure I can go ahead and add a unit test to cover the update case.

@nfx
Copy link
Contributor

nfx commented Mar 19, 2021

hi @stikkireddy, do you have any updates on the test coverage?

@stikkireddy
Copy link
Contributor Author

@nfx i should have some time later today and tomorrow to work on this.

@stikkireddy stikkireddy requested a review from nfx March 25, 2021 00:11
@stikkireddy
Copy link
Contributor Author

@nfx everything should be up to date now with coverage of resource_group

@stikkireddy stikkireddy requested a review from alexott March 25, 2021 13:54
@nfx nfx added this to the v0.3.2 milestone Mar 27, 2021
@nfx nfx merged commit 474c55e into master Mar 27, 2021
@nfx nfx deleted the resource-group-changes-patch branch March 27, 2021 18:36
@nfx nfx mentioned this pull request Apr 1, 2021
michael-berk pushed a commit to michael-berk/terraform-provider-databricks that referenced this pull request Feb 15, 2023
…ricks#549)

* resource group entitlement check fix and detecting changes fix
* updated test stub
* fixed up the update tests for appropriate coverage
* cover all lines in group resource but the terraform data set statements
* added statement into changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ISSUE] Group entitlement allowing allow_sql_analytics_access is not applying
3 participants