Skip to content

Add acceptance tests for permissions logic - #3781

Merged
denik merged 1 commit into
mainfrom
denik/permissions-tests
Oct 20, 2025
Merged

Add acceptance tests for permissions logic#3781
denik merged 1 commit into
mainfrom
denik/permissions-tests

Conversation

@denik

@denikdenik commented Oct 17, 2025

Copy link
Copy Markdown
Contributor

Why

Going to make some changes there, want to record how requests look like and how they will change.

#3780

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Oct 17, 2025

Copy link
Copy Markdown
Collaborator

Run: 18596905136

Env🔄​flaky💚​RECOVERED🙈​SKIP✅​pass🙈​skip
💚​aws linux11321560
💚​aws windows11322559
💚​aws-ucws linux11437456
💚​aws-ucws windows11438455
🔄​azure linux411317559
🔄​azure windows31320558
💚​azure-ucws linux11437455
💚​azure-ucws windows11438454
🔄​gcp linux411316561
🔄​gcp windows611315560
18 failing tests:
Test Nameaws linuxaws windowsaws-ucws linuxaws-ucws windowsazure linuxazure windowsazure-ucws linuxazure-ucws windowsgcp linuxgcp windows
TestAccept💚​R💚​R💚​R💚​R💚​R🔄​f💚​R💚​R💚​R💚​R
TestAccept/bundle/resources/experiments/basic/DATABRICKS_BUNDLE_ENGINE=direct-exp✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/resources/experiments/basic/DATABRICKS_BUNDLE_ENGINE=terraform✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/resources/jobs/double-underscore-keys✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f✅​p
TestAccept/bundle/resources/jobs/double-underscore-keys/DATABRICKS_BUNDLE_ENGINE=terraform✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f✅​p
TestAccept/bundle/resources/jobs/fail-on-active-runs✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f✅​p
TestAccept/bundle/resources/jobs/fail-on-active-runs/DATABRICKS_BUNDLE_ENGINE=terraform✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f✅​p
TestAccept/bundle/resources/models/basic✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/resources/models/basic/DATABRICKS_BUNDLE_ENGINE=terraform✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/resources/pipelines/lakeflow-pipeline✅​p✅​p✅​p✅​p✅​p🔄​f✅​p✅​p✅​p✅​p
TestAccept/bundle/resources/pipelines/lakeflow-pipeline/DATABRICKS_BUNDLE_ENGINE=direct-exp✅​p✅​p✅​p✅​p✅​p🔄​f✅​p✅​p✅​p✅​p
TestAccept/bundle/run/app-with-job🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
TestAccept/bundle/templates/default-python/integration_classic✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/templates/default-python/integration_classic/DATABRICKS_BUNDLE_ENGINE=direct-exp/UV_PYTHON=3.10✅​p✅​p✅​p✅​p🔄​f✅​p✅​p✅​p✅​p✅​p
TestAccept/bundle/templates/default-python/integration_classic/DATABRICKS_BUNDLE_ENGINE=direct-exp/UV_PYTHON=3.9✅​p✅​p✅​p✅​p🔄​f✅​p✅​p✅​p✅​p✅​p
TestAccept/bundle/templates/default-python/integration_classic/DATABRICKS_BUNDLE_ENGINE=terraform/UV_PYTHON=3.11✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/templates/default-python/integration_classic/DATABRICKS_BUNDLE_ENGINE=terraform/UV_PYTHON=3.12✅​p✅​p✅​p✅​p🔄​f✅​p✅​p✅​p✅​p✅​p
TestAccept/bundle/templates/default-python/integration_classic/DATABRICKS_BUNDLE_ENGINE=terraform/UV_PYTHON=3.13✅​p✅​p✅​p✅​p🔄​f✅​p✅​p✅​p✅​p✅​p

@denik
denikforce-pushed the denik/permissions-tests branch from 7413947 to 7603391CompareOctober 17, 2025 15:07
@denik
denik added this pull request to the merge queueOct 20, 2025
Merged via the queue into main with commit 9b32fc1Oct 20, 2025
13 checks passed
@denik
denik deleted the denik/permissions-tests branch October 20, 2025 11:08
denik added a commit that referenced this pull request Oct 20, 2025
## Changes
Instead of removing current user from permissions and relying on
terraform to add it back, we'll instead add IS_OWNER/CAN_MANAGE
ourselves.
Previous attempt to remove this mutator completely
#3688 failed because backend
complains about "ambiguous" permissions when both CAN_MANAGE and
IS_OWNER are present. Thus we do additional transformation here: we
upgrade CAN_MANAGE to IS_OWNER if we can.
Don't apply this logic to secret scopes resource as it's not implemented
via databricks_permissions resource in terraform and does not have
IS_OWNER/CAN_MANAGE insertion logic. This means we no longer filter out
current user permissions from secret scopes resources.
## Why
- Enables direct implementation which will not do any transformations,
just use whatever in the config. With this PR, the request payload will
match terraform's.
- Final permissions visible in 'bundle validate -o json'.
## Tests
#3781
denik added a commit that referenced this pull request May 20, 2026
## Why
Going to make some changes there, want to record how requests look like
and how they will change.
#3780
denik added a commit that referenced this pull request May 20, 2026
## Changes
Instead of removing current user from permissions and relying on
terraform to add it back, we'll instead add IS_OWNER/CAN_MANAGE
ourselves.
Previous attempt to remove this mutator completely
#3688 failed because backend
complains about "ambiguous" permissions when both CAN_MANAGE and
IS_OWNER are present. Thus we do additional transformation here: we
upgrade CAN_MANAGE to IS_OWNER if we can.
Don't apply this logic to secret scopes resource as it's not implemented
via databricks_permissions resource in terraform and does not have
IS_OWNER/CAN_MANAGE insertion logic. This means we no longer filter out
current user permissions from secret scopes resources.
## Why
- Enables direct implementation which will not do any transformations,
just use whatever in the config. With this PR, the request payload will
match terraform's.
- Final permissions visible in 'bundle validate -o json'.
## Tests
#3781
Sign up for freeto 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.

3 participants

@denik@eng-dev-ecosystem-bot@andrewnester