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: run with volume whose destination is not empty #1899

Merged
merged 1 commit into from
Jul 26, 2018

Conversation

YaoZengzeng
Copy link
Contributor

Signed-off-by: YaoZengzeng yaozengzeng@zju.edu.cn

Ⅰ. Describe what this PR did

test case for PR #1745

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Signed-off-by: YaoZengzeng <yaozengzeng@zju.edu.cn>
// the container with default workdir successfully.
res := command.PouchRun("run", "--name", containerName, image, "ls")
defer DelContainerForceMultyTime(c, containerName)
res.Assert(c, icmd.Success)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to judge what content exits in the ls command's output?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No

If the content of /opt/cni in the image have not be copied

---> the workdir /opt/cni/bin will not exist

---> we could not be able to run the container successfully.

@codecov-io
Copy link

Codecov Report

Merging #1899 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1899      +/-   ##
==========================================
+ Coverage   62.63%   62.65%   +0.01%     
==========================================
  Files         200      200              
  Lines       15565    15565              
==========================================
+ Hits         9749     9752       +3     
+ Misses       4573     4566       -7     
- Partials     1243     1247       +4
Flag Coverage Δ
#criv1alpha1test 33.29% <ø> (+0.06%) ⬆️
#criv1alpha2test 33.74% <ø> (ø) ⬆️
#integrationtest 37.96% <ø> (+0.04%) ⬆️
#unittest 20.5% <ø> (+0.01%) ⬆️
Impacted Files Coverage Δ
cri/stream/portforward/httpstream.go 69.16% <0%> (-6.67%) ⬇️
apis/server/utils.go 61.9% <0%> (-4.77%) ⬇️
cri/stream/runtime.go 71.01% <0%> (-2.9%) ⬇️
cri/v1alpha1/cri.go 65.22% <0%> (+0.18%) ⬆️
daemon/mgr/container.go 54% <0%> (+0.54%) ⬆️
daemon/mgr/system.go 76.72% <0%> (+1.72%) ⬆️
ctrd/image.go 81.18% <0%> (+2.47%) ⬆️

@shaloulcy
Copy link
Contributor

LGTM

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Jul 26, 2018
@shaloulcy shaloulcy merged commit e42ceba into AliyunContainerService:master Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
areas/storage areas/test LGTM one maintainer or community participant agrees to merge the pull reuqest. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants