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

Throw error if no auth mechanism is match #1608

Merged
merged 4 commits into from
Nov 9, 2018

Conversation

glefloch
Copy link
Contributor

@glefloch glefloch commented Nov 5, 2018

This pull request aims to close #1555 by returning an error if no auth mechanism is found.

Signed-off-by: glefloch glfloch@gmail.com

Signed-off-by: glefloch <glfloch@gmail.com>
notify/impl.go Outdated Show resolved Hide resolved
Signed-off-by: glefloch <glfloch@gmail.com>
@glefloch
Copy link
Contributor Author

glefloch commented Nov 6, 2018

@simonpasquier I have used the types.MultiError object. I am going to have a look to failed tests.

@simonpasquier
Copy link
Member

I've restarted the Travis tests as it is probably a flake. In any case, it might be good to add a few unit tests.

Signed-off-by: glefloch <glfloch@gmail.com>
@glefloch
Copy link
Contributor Author

glefloch commented Nov 9, 2018

@simonpasquier, I have added unit tests. Could you tell me if this is what you expected?

@simonpasquier
Copy link
Member

Thanks for this! 👍 for me.

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Small nit, otherwise looks good to me. Thanks for the patch and the unit tests!

notify/impl.go Outdated Show resolved Hide resolved
Signed-off-by: glefloch <glfloch@gmail.com>
Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Cool, thanks for the super quick response!

@mxinden mxinden merged commit 108388a into prometheus:master Nov 9, 2018
@glefloch glefloch deleted the add-no-auth-error branch November 9, 2018 13:00
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.

Throw error when no auth mechanism is matched
3 participants