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

PLAT-99110: Added terraform support for restrict ws admins setting #3243

Merged

Conversation

gauthamsunjay
Copy link
Contributor

@gauthamsunjay gauthamsunjay commented Feb 9, 2024

Changes

Followed instructions in https://docs.google.com/document/d/1tXZCuZ1Vl6F3Syu23jQOaxguavTB3Mz_RugEafxdhik/edit to add terraform support for restrict workspace admins setting.

Tests

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • relevant acceptance tests are passing
  • using Go SDK

@gauthamsunjay gauthamsunjay requested review from a team as code owners February 9, 2024 20:08
@gauthamsunjay gauthamsunjay requested review from mgyucht and removed request for a team and mgyucht February 9, 2024 20:08
go.mod Outdated Show resolved Hide resolved
@alexott
Copy link
Contributor

alexott commented Feb 15, 2024

Can we add the unit test and integration tests (if possible)?

@alexott
Copy link
Contributor

alexott commented Feb 15, 2024

We also need docs

@gauthamsunjay
Copy link
Contributor Author

Yep, I am adding docs, unit tests and integration tests. Will ping when it is ready for review.

@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bc5dcb5) 83.59% compared to head (2f67d4f) 83.60%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3243      +/-   ##
==========================================
+ Coverage   83.59%   83.60%   +0.01%     
==========================================
  Files         171      172       +1     
  Lines       15444    15466      +22     
==========================================
+ Hits        12910    12930      +20     
- Misses       1771     1772       +1     
- Partials      763      764       +1     
Files Coverage Δ
settings/all_settings.go 100.00% <100.00%> (ø)
...ings/resource_restrict_workspace_admins_setting.go 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

"github.com/stretchr/testify/assert"
)

func TestAccRestrictWorkspaceAdminsSetting(t *testing.T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@hectorcast-db btw only account admin can modify this setting. Do acceptance tests always run as account admin?

@gauthamsunjay
Copy link
Contributor Author

@alexott @hectorcast-db the PR is ready for review.

Copy link

@shinyehtsai-db shinyehtsai-db left a comment

Choose a reason for hiding this comment

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

overall LGTM!

One nit comment: do we need to spell out Workspace instead of Ws? or is Ws used widely in terraform codebase?

@alexott alexott added this pull request to the merge queue Feb 21, 2024
Merged via the queue into databricks:main with commit bb4acf7 Feb 21, 2024
5 checks passed
@tanmay-db tanmay-db mentioned this pull request Feb 22, 2024
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.

5 participants