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

test:add container remove and stop test #1064

Merged
merged 1 commit into from
Apr 8, 2018

Conversation

Dewey-Ding
Copy link
Contributor

Signed-off-by: Dewey-Ding deweyding@gmail.com

Ⅰ. Describe what this PR did

add container remove and stop test

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-io
Copy link

codecov-io commented Apr 7, 2018

Codecov Report

Merging #1064 into master will decrease coverage by 0.5%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1064      +/-   ##
==========================================
- Coverage   16.47%   15.97%   -0.51%     
==========================================
  Files         156      142      -14     
  Lines        8724     8509     -215     
==========================================
- Hits         1437     1359      -78     
+ Misses       7183     7047     -136     
+ Partials      104      103       -1
Impacted Files Coverage Δ
client/container.go 0% <ø> (ø) ⬆️
client/container_stop.go 100% <100%> (ø)
client/container_remove.go 100% <100%> (ø)
client/client.go 23.07% <0%> (-12.41%) ⬇️
pkg/kernel/kernel.go 66.66% <0%> (-6.07%) ⬇️
pkg/utils/utils.go 82.71% <0%> (-0.22%) ⬇️
ctrd/container.go 0% <0%> (ø) ⬆️
cli/update.go 0% <0%> (ø) ⬆️
ctrd/snapshot.go 0% <0%> (ø) ⬆️
cli/cli.go 0% <0%> (ø) ⬆️
... and 29 more

return nil, fmt.Errorf("force not set in URL properly. Expected 'true', got %s", force)
}
return &http.Response{
StatusCode: http.StatusOK,
Copy link
Contributor

@ZouRui89 ZouRui89 Apr 7, 2018

Choose a reason for hiding this comment

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

The status code here should be 'http.StatusNoContent'.

Signed-off-by: Dewey-Ding <deweyding@gmail.com>
@Dewey-Ding
Copy link
Contributor Author

@ZouRui89

@ZouRui89
Copy link
Contributor

ZouRui89 commented Apr 8, 2018

LGTM @allencloud

@allencloud
Copy link
Collaborator

Thanks for your work @Dewey-Ding and your review @ZouRui89 .
Merging...

@allencloud allencloud merged commit f3325f0 into AliyunContainerService:master Apr 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants