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

Add acceptance tests for auth resolution #2285

Merged
merged 28 commits into from
Feb 11, 2025
Merged

Add acceptance tests for auth resolution #2285

merged 28 commits into from
Feb 11, 2025

Conversation

shreyas-goenka
Copy link
Contributor

@shreyas-goenka shreyas-goenka commented Feb 3, 2025

Changes

This PR adds acceptance tests for native Databricks auth methods: basic, oauth, and pat.

In the future we could compare this with auth credentials used by downstream tools like TF or the telemetry process to ensure consistent auth credentials are picked up and used.

Note:
We do not add acceptance tests for other auth methods like Azure because they communicate with external endpoints. To test them locally, we would need to set up a reverse proxy server, which is out of scope for this change.

Tests

N/A

@shreyas-goenka shreyas-goenka marked this pull request as draft February 4, 2025 16:35
@shreyas-goenka shreyas-goenka marked this pull request as ready for review February 5, 2025 14:16
acceptance/auth/basic/out.requests.txt Outdated Show resolved Hide resolved
acceptance/auth/oauth/test.toml Outdated Show resolved Hide resolved
acceptance/auth/basic/script Outdated Show resolved Hide resolved
acceptance/auth/basic/out.requests.txt Outdated Show resolved Hide resolved
acceptance/auth/credentials/basic/script Outdated Show resolved Hide resolved
acceptance/auth/credentials/oauth/out.requests.txt Outdated Show resolved Hide resolved
libs/testserver/server.go Outdated Show resolved Hide resolved
@shreyas-goenka shreyas-goenka added this pull request to the merge queue Feb 11, 2025
Merged via the queue into main with commit 24ac8d8 Feb 11, 2025
9 checks passed
@shreyas-goenka shreyas-goenka deleted the auth-validate branch February 11, 2025 15:56
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.

3 participants