-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: support for databricks oauth #286
Conversation
strings.ToLower, | ||
integrationtest.Options{ | ||
LegacySupport: true, | ||
SpecialCharactersInQuotedTable: "_A", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this use for? It's different from what is being used for with information schema
suite.
SpecialCharactersInQuotedTable: "_A", | |
SpecialCharactersInQuotedTable: "_A", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure. I copied it as it is from an existing test
262ebff
to
c64eba0
Compare
@@ -49,6 +49,31 @@ func TestDatabricksDB(t *testing.T) { | |||
) | |||
}) | |||
|
|||
t.Run("with oauth", func(t *testing.T) { | |||
oauthConfigJSON, ok := os.LookupEnv("DATABRICKS_OAUTH_TEST_ENVIRONMENT_CREDENTIALS") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these credentials store somewhere in notion? DATABRICKS_OAUTH_TEST_ENVIRONMENT_CREDENTIALS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I had created it yesterday for the POC. Added the same in Github.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #286 +/- ##
==========================================
+ Coverage 85.56% 85.57% +0.01%
==========================================
Files 88 88
Lines 4579 4583 +4
==========================================
+ Hits 3918 3922 +4
Misses 502 502
Partials 159 159 ☔ View full report in Codecov by Sentry. |
🤖 I have created a release *beep* *boop* --- ## [1.18.0](v1.17.0...v1.18.0) (2025-02-25) ### Features * support for databricks oauth ([#286](#286)) ([4df34db](4df34db)) ### Miscellaneous * **deps:** bump github.com/aws/aws-sdk-go-v2/config from 1.29.4 to 1.29.7 ([#287](#287)) ([5c3cbb3](5c3cbb3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Description
This PR enhances Databricks authentication by adding support for OAuth authorization alongside the existing PAT-based method.
DATABRICKS_OAUTH_TEST_ENVIRONMENT_CREDENTIALS
, has been added for integration testing.Security