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: make test more robust #1279

Merged
merged 1 commit into from
May 9, 2018
Merged

Conversation

Letty5411
Copy link
Contributor

@Letty5411 Letty5411 commented May 8, 2018

Signed-off-by: letty letty.ll@alibaba-inc.com

Ⅰ. Describe what this PR did

This PR mainly fixed some potential failure when tests run in no-travis-CI environment.
For example:

  • if the homedir of pouch daemon is not default value, we need to get it dynamically.
  • If there is legacy volumes, tests like TestVolumeListOk may fail as it checks there are totally and exactly two volumes.
  • If users set test images instead of using default ones, test TestImagesWorks may fail.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Signed-off-by: letty <letty.ll@alibaba-inc.com>
@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1279      +/-   ##
==========================================
- Coverage   15.59%   15.57%   -0.02%     
==========================================
  Files         173      178       +5     
  Lines       10819    10454     -365     
==========================================
- Hits         1687     1628      -59     
+ Misses       9013     8706     -307     
- Partials      119      120       +1
Impacted Files Coverage Δ
daemon/mgr/image_utils.go 0% <0%> (-40%) ⬇️
pkg/reference/def.go 33.33% <0%> (-11.12%) ⬇️
pkg/bytefmt/bytefmt.go 88.88% <0%> (-0.95%) ⬇️
daemon/mgr/cri_utils.go 28.85% <0%> (-0.46%) ⬇️
daemon/mgr/network.go 3.47% <0%> (-0.01%) ⬇️
daemon/mgr/spec.go 0% <0%> (ø) ⬆️
cli/pull.go 0% <0%> (ø) ⬆️
ctrd/container.go 0% <0%> (ø) ⬆️
cli/cli.go 0% <0%> (ø) ⬆️
apis/server/container_bridge.go 0% <0%> (ø) ⬆️
... and 41 more

@fuweid
Copy link
Contributor

fuweid commented May 9, 2018

LGTM

@fuweid fuweid merged commit e9d1af8 into AliyunContainerService:master May 9, 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.

4 participants