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

[Bug] handle k8s error #239

Merged
merged 2 commits into from
Aug 13, 2018
Merged

[Bug] handle k8s error #239

merged 2 commits into from
Aug 13, 2018

Conversation

John-Lin
Copy link
Contributor

@John-Lin John-Lin commented Aug 9, 2018

No description provided.

@@ -104,7 +104,7 @@ func (suite *PodTestSuite) TestCreatePod() {
httpRequest.Header.Add("Content-Type", "application/json")
httpWriter = httptest.NewRecorder()
suite.wc.Dispatch(httpWriter, httpRequest)
assertResponseCode(suite.T(), http.StatusInternalServerError, httpWriter)
assertResponseCode(suite.T(), http.StatusConflict, httpWriter)
Copy link
Contributor

Choose a reason for hiding this comment

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

Create fail since the body is empty. so the return is InternalServcer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

應該不是這個問題,因為他會創同一個podname預期是要conflict

@codecov-io
Copy link

Codecov Report

Merging #239 into develop will decrease coverage by 0.43%.
The diff coverage is 19.04%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #239      +/-   ##
===========================================
- Coverage    78.38%   77.94%   -0.44%     
===========================================
  Files           50       50              
  Lines         2484     2498      +14     
===========================================
  Hits          1947     1947              
- Misses         415      424       +9     
- Partials       122      127       +5
Impacted Files Coverage Δ
src/server/handler_service.go 71.29% <0%> (ø) ⬆️
src/server/handler_volume.go 69.23% <12.5%> (-5.19%) ⬇️
src/server/handler_pod.go 69.36% <25%> (-3.02%) ⬇️
src/server/handler_storage.go 79.43% <25%> (-2.3%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2aca9e...3296272. Read the comment docs.

@John-Lin John-Lin merged commit 375e3eb into develop Aug 13, 2018
@John-Lin John-Lin deleted the johnlin/handle-k8s-error branch August 13, 2018 04:24
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.

3 participants