-
Notifications
You must be signed in to change notification settings - Fork 950
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: update the existing tag image case #2547
test: update the existing tag image case #2547
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2547 +/- ##
==========================================
+ Coverage 69.11% 69.11% +<.01%
==========================================
Files 278 278
Lines 18528 18528
==========================================
+ Hits 12805 12806 +1
+ Misses 4259 4256 -3
- Partials 1464 1466 +2
|
resp, err := suite.sendRequest(busyboxImage, repo, tag) | ||
c.Assert(err, check.IsNil) | ||
CheckRespStatus(c, resp, 201) | ||
defer DelImageForceOk(c, tagRef) |
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.
why delete tagRef image?
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 tagRef
image is created by the case. If we don't delete it, re-run this case will fail. It just is used to clean up.
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.
But the busyboxImage
also will be remain, dont need to delele it?
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.
busyboxImage
is created for the case suite and basically, all suites are related to this image. Therefore, we don't need to delete it.
The TestImageTagFailToOverrideExistingTag tests the case that it will fail to use existing tag name to override existing tag. Signed-off-by: Wei Fu <fuweid89@gmail.com>
LGTM |
Signed-off-by: Wei Fu fuweid89@gmail.com
Ⅰ. Describe what this PR did
The TestImageTagFailToOverrideExistingTag tests the case that it will
fail to use existing tag name to override existing tag.
Ⅱ. Does this pull request fix one issue?
NONE
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
update existing case
Ⅳ. Describe how to verify it
wait for CI
Ⅴ. Special notes for reviews