Skip to content

Conversation

mgyucht
Copy link
Contributor

@mgyucht mgyucht commented Feb 4, 2025

What changes are proposed in this pull request?

tests/integration/test_dbutils.py::test_secrets currently assumes that the principal running the test has access to all key vaults in our test workspace. This isn't necessarily the case. To alleviate this, rather than listing all secrets across all scopes, we just check that our scope is included in the list of secret scopes, and only list the secrets from our scope.

How is this tested?

Integration tests will automatically run on this PR.

@mgyucht mgyucht enabled auto-merge February 4, 2025 15:55
@mgyucht mgyucht temporarily deployed to test-trigger-is February 4, 2025 15:55 — with GitHub Actions Inactive
@mgyucht mgyucht disabled auto-merge February 4, 2025 15:56
@mgyucht mgyucht temporarily deployed to test-trigger-is February 4, 2025 15:56 — with GitHub Actions Inactive
Copy link

github-actions bot commented Feb 4, 2025

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-py

Inputs:

  • PR number: 884
  • Commit SHA: df74b8ef2d79736bf4e8ea2b884dfb39c192ec78

Checks will be approved automatically on success.

Copy link
Contributor

@parthban-db parthban-db left a comment

Choose a reason for hiding this comment

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

LGTM! Can you update the "How is this tested" section in description?

@mgyucht mgyucht enabled auto-merge February 4, 2025 16:06
@mgyucht mgyucht added this pull request to the merge queue Feb 4, 2025
Merged via the queue into main with commit 3ab8c3b Feb 4, 2025
18 of 19 checks passed
@mgyucht mgyucht deleted the fix-dbutils-secrets-integration-test branch February 4, 2025 16:46
hectorcast-db added a commit that referenced this pull request Feb 11, 2025
### Internal Changes

 * Fix `tests/integration/test_dbutils.py::test_secrets` ([#884](#884)).

### API Changes:

 * Added `get_message_query_result_by_attachment()` method for [w.genie](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/genie.html) workspace-level service.
 * Added `id` field for `databricks.sdk.service.apps.App`.
 * Added `limit_config` field for `databricks.sdk.service.billing.UpdateBudgetPolicyRequest`.
 * Added `volumes` field for `databricks.sdk.service.compute.ClusterLogConf`.
 * Removed `review_state`, `reviews` and `runner_collaborators` fields for `databricks.sdk.service.cleanrooms.CleanRoomAssetNotebook`.

OpenAPI SHA: 99f644e72261ef5ecf8d74db20f4b7a1e09723cc, Date: 2025-02-11
hectorcast-db added a commit that referenced this pull request Feb 11, 2025
 * Fix `tests/integration/test_dbutils.py::test_secrets` ([#884](#884)).

 * Added `get_message_query_result_by_attachment()` method for [w.genie](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/genie.html) workspace-level service.
 * Added `id` field for `databricks.sdk.service.apps.App`.
 * Added `limit_config` field for `databricks.sdk.service.billing.UpdateBudgetPolicyRequest`.
 * Added `volumes` field for `databricks.sdk.service.compute.ClusterLogConf`.
 * Removed `review_state`, `reviews` and `runner_collaborators` fields for `databricks.sdk.service.cleanrooms.CleanRoomAssetNotebook`.

OpenAPI SHA: 99f644e72261ef5ecf8d74db20f4b7a1e09723cc, Date: 2025-02-11
github-merge-queue bot pushed a commit that referenced this pull request Feb 11, 2025
### Internal Changes

* Fix `tests/integration/test_dbutils.py::test_secrets`
([#884](#884)).


### API Changes:

* Added `get_message_query_result_by_attachment()` method for
[w.genie](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/genie.html)
workspace-level service.
 * Added `id` field for `databricks.sdk.service.apps.App`.
* Added `limit_config` field for
`databricks.sdk.service.billing.UpdateBudgetPolicyRequest`.
* Added `volumes` field for
`databricks.sdk.service.compute.ClusterLogConf`.
* Removed `review_state`, `reviews` and `runner_collaborators` fields
for `databricks.sdk.service.cleanrooms.CleanRoomAssetNotebook`.

OpenAPI SHA: 99f644e72261ef5ecf8d74db20f4b7a1e09723cc, Date: 2025-02-11
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.

2 participants