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 unit test for generateMountBindings and modifySandboxNamespaceOptions #1768

Merged
merged 1 commit into from
Aug 3, 2018

Conversation

ZouRui89
Copy link
Contributor

Signed-off-by: Zou Rui 21751189@zju.edu.cn

Ⅰ. Describe what this PR did

This pr add unit test for method generateMountBindings and modifySandboxNamespaceOptions .

Ⅱ. Does this pull request fix one issue?

fixes part of #1756

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-io
Copy link

codecov-io commented Jul 23, 2018

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1768      +/-   ##
==========================================
+ Coverage    54.4%   63.83%   +9.42%     
==========================================
  Files         200      200              
  Lines       15527    15527              
==========================================
+ Hits         8448     9912    +1464     
+ Misses       5962     4388    -1574     
- Partials     1117     1227     +110
Flag Coverage Δ
#criv1alpha1test 33.83% <ø> (+0.04%) ⬆️
#criv1alpha2test 34.31% <ø> (+0.03%) ⬆️
#integrationtest 38.45% <ø> (-6.63%) ⬇️
#unittest 22.59% <ø> (+0.57%) ⬆️
Impacted Files Coverage Δ
daemon/logger/jsonfile/utils.go 71.54% <0%> (-1.63%) ⬇️
cri/v1alpha1/cri.go 65.58% <0%> (+0.18%) ⬆️
cri/v1alpha2/cri_utils.go 80.79% <0%> (+0.63%) ⬆️
cri/v1alpha1/cri_utils.go 82.32% <0%> (+0.71%) ⬆️
daemon/daemon.go 58.1% <0%> (+1.67%) ⬆️
daemon/mgr/spec_mount.go 77.55% <0%> (+2.04%) ⬆️
pkg/meta/boltdb.go 68.67% <0%> (+2.4%) ⬆️
apis/opts/mountpoint.go 90% <0%> (+2.85%) ⬆️
ctrd/watch.go 75.75% <0%> (+3.03%) ⬆️
daemon/mgr/image_store.go 89.43% <0%> (+3.25%) ⬆️
... and 54 more

@allencloud
Copy link
Collaborator

Ping @YaoZengzeng @starnop PTAL. Thanks a lot.

@ZouRui89 ZouRui89 force-pushed the cri_test branch 3 times, most recently from 62b0d7f to 480552b Compare August 1, 2018 10:58
@ZouRui89 ZouRui89 force-pushed the cri_test branch 2 times, most recently from 6ae239a to 28a1499 Compare August 2, 2018 02:35
…aceOptions

Signed-off-by: Zou Rui <21751189@zju.edu.cn>
nsOpts: &runtime.NamespaceOption{
HostIpc: true,
HostPid: true,
HostNetwork: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

More test cases such as HostNetwork: true for higher test coverage ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the opinion of this comment from Starop? @ZouRui89

@ZouRui89 ZouRui89 merged commit 109b749 into AliyunContainerService:master Aug 3, 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.

6 participants