metadata: validation and testing of image store#1583
metadata: validation and testing of image store#1583stevvooe merged 1 commit intocontainerd:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1583 +/- ##
==========================================
+ Coverage 42.44% 46.29% +3.85%
==========================================
Files 24 24
Lines 3362 3378 +16
==========================================
+ Hits 1427 1564 +137
+ Misses 1608 1456 -152
- Partials 327 358 +31
Continue to review full report at Codecov.
|
| Target ocispec.Descriptor | ||
| // Name of the image. | ||
| // | ||
| // To be pulled, it must be a reference comapitible with resovlers. |
|
One misspelling and LGTM |
4eb1add to
86037be
Compare
|
LGTM except typos |
86037be to
3377c61
Compare
There was a problem hiding this comment.
when I ran make test after pulling this I got a t.Helper undefined: should that happen?
There was a problem hiding this comment.
Why are we validating some, not all, of the Target fields?
There was a problem hiding this comment.
These are the ones we store. I've broken these off into another function and made a note of this.
Signed-off-by: Stephen J Day <[email protected]>
3377c61 to
698b6d1
Compare
|
@jessvalarezo Updated. PTAL. |
There was a problem hiding this comment.
Why do we check the timestamp fieldsUpdatedAt and CreatedAt in addition to checkImagesEqual
There was a problem hiding this comment.
@jessvalarezo The checkXXXTimestamps ensures temporal properties, such as updatedat after createdat and equal just does a straight equality check.
| return validateTarget(&image.Target) | ||
| } | ||
|
|
||
| func validateTarget(target *ocispec.Descriptor) error { |
|
LGTM |
…oveall_windows pkg/server: make ensureRemoveAll() an alias for os.RemoveAll() on Windows
Signed-off-by: Stephen J Day [email protected]