-
Notifications
You must be signed in to change notification settings - Fork 366
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 databricks_user
creation with force
on account
#1577
Conversation
scim/resource_user.go
Outdated
force := fmt.Sprintf("User with username %s already exists.", userName) | ||
force := fmt.Sprintf("User with email %s already exists in this account", userName) |
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.
Will it continue to work with the workspace level identities?
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.
you are correct - updated the correct error message
scim/resource_user_test.go
Outdated
fmt.Errorf("User with username me@example.com already exists."), | ||
fmt.Errorf("User with email me@example.com already exists in this account"), |
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.
Maybe move this format string into a constant, or create a function that will accept email & return string?
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.
refactored the error messages into a function
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1577 +/- ##
=======================================
Coverage 90.15% 90.16%
=======================================
Files 132 132
Lines 10629 10631 +2
=======================================
+ Hits 9583 9585 +2
Misses 667 667
Partials 379 379
|
databricks_user
creation with force
on account
df45a9a
to
c23c099
Compare
c23c099
to
24c8b08
Compare
Backend API changes error messages, updating code to match
Closes #1549