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

Tests for pkg/http-handler #1516

Merged
merged 2 commits into from
Feb 13, 2020
Merged

Tests for pkg/http-handler #1516

merged 2 commits into from
Feb 13, 2020

Conversation

andresmgot
Copy link
Contributor

Description of the change

Follow up of #1513

Convering pkg/http-handler with tests.

Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

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

Great, thanks. One comment, but merging.

func returnK8sError(err error, w http.ResponseWriter) {
if statusErr, ok := err.(*k8sErrors.StatusError); ok {
status := statusErr.ErrStatus
log.Infof("unable to create app repo: %v", status.Reason)
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to generalise the log message here no?

@absoludity absoludity merged commit 29e729d into master Feb 13, 2020
@absoludity absoludity deleted the httpHandlerTests branch February 13, 2020 23:57
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.

2 participants