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: modify the env test #2872

Merged
merged 1 commit into from
Jun 2, 2019

Conversation

lang710
Copy link
Contributor

@lang710 lang710 commented May 29, 2019

Signed-off-by: Lang Chi 21860405@zju.edu.cn

Ⅰ. Describe what this PR did

Modify the env test in test/cli_create_test.go

Ⅱ. Does this pull request fix one issue?

NONE

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

No need!

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Signed-off-by: Lang Chi <21860405@zju.edu.cn>
@codecov
Copy link

codecov bot commented May 29, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2872      +/-   ##
==========================================
- Coverage   69.09%   69.04%   -0.06%     
==========================================
  Files         285      285              
  Lines       17844    17844              
==========================================
- Hits        12330    12321       -9     
- Misses       4114     4117       +3     
- Partials     1400     1406       +6
Flag Coverage Δ
#criv1alpha2_test 39% <ø> (ø) ⬆️
#integration_test_0 36.55% <ø> (-0.02%) ⬇️
#integration_test_1 35.75% <ø> (ø) ⬆️
#integration_test_2 36.5% <ø> (+0.03%) ⬆️
#integration_test_3 35.45% <ø> (ø) ⬆️
#node_e2e_test 34.7% <ø> (-0.08%) ⬇️
#unittest 28.53% <ø> (ø) ⬆️
Impacted Files Coverage Δ
ctrd/watch.go 72.97% <0%> (-5.41%) ⬇️
pkg/meta/store.go 67.44% <0%> (-1.56%) ⬇️
daemon/mgr/container_utils.go 76.76% <0%> (-1.02%) ⬇️
daemon/mgr/container.go 59.72% <0%> (-0.63%) ⬇️
ctrd/container.go 53.91% <0%> (ø) ⬆️
ctrd/supervisord/daemon.go 50.67% <0%> (+1.35%) ⬆️
daemon/logger/jsonfile/utils.go 73.17% <0%> (+1.62%) ⬆️

@@ -305,7 +305,7 @@ func (suite *PouchCreateSuite) TestCreateWithEnv(c *check.C) {
env3 := "TEST3" // should not in container's real env
env4 := "TEST4=a b" // valid
env5 := "TEST5=a=b" // valid
res := command.PouchRun("run", "-d",
Copy link
Contributor

Choose a reason for hiding this comment

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

why change to create here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is "create" test, So I feel "create+start" is more suitable than "run".

@allencloud
Copy link
Collaborator

LGTM

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

Successfully merging this pull request may close these issues.

None yet

4 participants