-
Notifications
You must be signed in to change notification settings - Fork 949
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
bugfix: change container create output #1034
Conversation
LGTM |
CI failed, you may also need to change the corresponding tests:
|
Codecov Report
@@ Coverage Diff @@
## master #1034 +/- ##
=======================================
Coverage 15.71% 15.71%
=======================================
Files 139 139
Lines 8483 8483
=======================================
Hits 1333 1333
Misses 7050 7050
Partials 100 100
Continue to review full report at Codecov.
|
test/cli_create_test.go
Outdated
res := command.PouchRun("create", "--name", name, busyboxImage) | ||
|
||
res.Assert(c, icmd.Success) | ||
if out := res.Combined(); !strings.Contains(out, name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to remove all the test case. Maybe we just remove the string comparing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds reasonable. Thx.
test/cli_create_test.go
Outdated
res = command.PouchRun("create", "--name", name, imageID) | ||
|
||
res.Assert(c, icmd.Success) | ||
if out := res.Combined(); !strings.Contains(out, name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as the following review comment.
Signed-off-by: Zou Rui <[email protected]>
LGTM |
Signed-off-by: Zou Rui [email protected]
Ⅰ. Describe what this PR did
change the output of container create
old way:
Ⅱ. Does this pull request fix one issue?
Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews