-
Notifications
You must be signed in to change notification settings - Fork 397
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
Fix create storage credentials with owner for account #3184
Fix create storage credentials with owner for account #3184
Conversation
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.
lgtm
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.
do you mind adding an acceptance test with owner under internal/acceptance/storage_credential_test.go
a763dc8
to
3ae081b
Compare
@nkvuong I've added initial version of the acceptance test, please take a look. |
integration tests passed |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3184 +/- ##
==========================================
+ Coverage 83.57% 83.71% +0.13%
==========================================
Files 168 169 +1
Lines 15083 15094 +11
==========================================
+ Hits 12606 12636 +30
+ Misses 1736 1715 -21
- Partials 741 743 +2
|
Changes
For the given account storage credentials definition:
fixes the error:
Error: cannot create storage credential: Storage Credential '02e010b4-0fdb-46d7-af9f-706e99f2b19b' does not exist.
as described in #3134 (comment).
From the logs, before this change, storage credential ID is used instead of a name when calling
PUT
:which leads to
STORAGE_CREDENTIAL_DOES_NOT_EXIST
error, because storage_credential_name is expected, not the ID.This change passes storage credential name instead of an ID.
Tests
Tested on live Databricks account with the patched version of the provider. Account REST API behavior captured in basic unit test.