8000 storage: Surface "already exists" errors. by rithujohn191 · Pull Request #809 · dexidp/dex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

storage: Surface "already exists" errors. #809

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

Merged
merged 1 commit into from
Feb 22, 2017

Conversation

rithujohn191
Copy link
Contributor

This fixes #808.

If a database Exec command fails due to an "already exists" error, it is translated to a storage.ErrAlreadyExists error and propagated forward.

Added additional conformance tests to check for this scenario.

@ericchiang
Copy link
Contributor

Awesome!

Thanks for this, especially for adding a test.

Does Kubernetes storage already pass?

@rithujohn191
Copy link
Contributor Author

Yep it does:
PASS
ok github.com/coreos/dex/storage/kubernetes 1.034s

Copy link
Contributor
@ericchiang ericchiang left a comment

Choose a reason for hiding this comment

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

lgtm

@rithujohn191 rithujohn191 merged commit c76832e into dexidp:master Feb 22, 2017
@rithujohn191 rithujohn191 deleted the set-error-flag branch February 22, 2017 00:09
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.

Creating a password that already exist doesn't fill the response struct with already_exist flag
2 participants
0