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: api_network_test: add new check points #2349

Merged

Conversation

chuanchang
Copy link
Contributor

As summary.

Signed-off-by: Alex Jia chuanchang.jia@gmail.com

Ⅰ. Describe what this PR did

As summary.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

Ⅳ. Describe how to verify it

go test

Ⅴ. Special notes for reviews

@codecov
Copy link

codecov bot commented Oct 23, 2018

Codecov Report

Merging #2349 into master will increase coverage by 1.57%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2349      +/-   ##
==========================================
+ Coverage   66.57%   68.15%   +1.57%     
==========================================
  Files         265      265              
  Lines       18209    18236      +27     
==========================================
+ Hits        12123    12428     +305     
+ Misses       4682     4380     -302     
- Partials     1404     1428      +24
Flag Coverage Δ
#criv1alpha1test 31.41% <0%> (+0.04%) ⬆️
#criv1alpha2test 35.62% <0%> (?)
#integrationtest 39.48% <0%> (-0.01%) ⬇️
#nodee2etest 32.97% <0%> (-0.02%) ⬇️
#unittest 25.52% <100%> (+0.2%) ⬆️
Impacted Files Coverage Δ
apis/opts/networks.go 96.92% <100%> (+53.17%) ⬆️
apis/opts/mountpoint.go 88.63% <0%> (-8.55%) ⬇️
apis/server/utils.go 71.15% <0%> (-3.85%) ⬇️
ctrd/client.go 63.7% <0%> (-2.17%) ⬇️
daemon/mgr/container.go 58.78% <0%> (ø) ⬆️
ctrd/container.go 58.33% <0%> (ø) ⬆️
cri/v1alpha1/cri.go 60.7% <0%> (+0.32%) ⬆️
daemon/mgr/container_utils.go 84.04% <0%> (+1.22%) ⬆️
pkg/meta/store.go 64.06% <0%> (+1.56%) ⬆️
daemon/containerio/container_io.go 75.95% <0%> (+2.18%) ⬆️
... and 11 more

@CLAassistant
Copy link

CLAassistant commented Oct 23, 2018

CLA assistant check
All committers have signed the CLA.

@chuanchang chuanchang force-pushed the add_network_test branch 3 times, most recently from 5013265 to caf69f4 Compare October 23, 2018 13:48
@@ -94,7 +95,8 @@ func ValidateNetworks(nwConfig *types.NetworkingConfig) error {
for k := range nwConfig.EndpointsConfig {
l = append(l, k)
}

// make sure l is sorted
sort.Strings(l)
Copy link
Contributor

Choose a reason for hiding this comment

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

why we sort this....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the same questions to previous ulimit testing ...

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
@allencloud
Copy link
Collaborator

LGTM

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Oct 28, 2018
@allencloud allencloud merged commit 5ad887d into AliyunContainerService:master Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
areas/network areas/test LGTM one maintainer or community participant agrees to merge the pull reuqest. size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants