-
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
test: add test cases about CRI image #2030
test: add test cases about CRI image #2030
Conversation
ed387e4
to
947ad03
Compare
CI fails:
|
947ad03
to
636692f
Compare
636692f
to
ea1ec36
Compare
Codecov Report
@@ Coverage Diff @@
## master #2030 +/- ##
==========================================
+ Coverage 59.63% 64.77% +5.14%
==========================================
Files 208 208
Lines 16482 16482
==========================================
+ Hits 9829 10677 +848
+ Misses 5453 4474 -979
- Partials 1200 1331 +131
|
any update and review? @YaoZengzeng |
cri/v1alpha2/cri_utils_test.go
Outdated
Username: "foo", | ||
Volumes: parseVolumesFromPouch(map[string]interface{}{"foo": "foo"}), | ||
}, | ||
wantErr: nil, |
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 type of wantErr
is bool
, we could not assign nil to it.
CI has found this mistake but not failed.
cri/v1alpha2/cri_utils_test.go
Outdated
imageUser: "", | ||
}, | ||
want: nil, | ||
want1: "", |
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.
Use a better name, other than want1
:)
cri/v1alpha2/cri_utils_test.go
Outdated
args: args{ | ||
imageUser: "", | ||
}, | ||
want: nil, |
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.
We should check whether the value is equal other then the pointer.
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.
Thanks for your comment. All above mentioned has been done.
b598225
to
f195bae
Compare
CRI unit test fails, @starnop :
|
36be0d5
to
efd1dbd
Compare
Signed-off-by: Starnop <[email protected]>
efd1dbd
to
796d025
Compare
LGTM |
Signed-off-by: Starnop [email protected]
Ⅰ. Describe what this PR did
Ⅱ. 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