add unit test for ValidateLayout function#310
add unit test for ValidateLayout function#310xiekeyang wants to merge 2 commits intoopencontainers:masterfrom xiekeyang:test
Conversation
image/image_test.go
Outdated
| "config": { | ||
| "AttachStderr": false, | ||
| "AttachStdin": false, | ||
| "AttachStdout": false, |
There was a problem hiding this comment.
I don't see anything about these in serialization.md. Can we remove them?
There was a problem hiding this comment.
removed, I adapt spec patten as serialization.md#image-json-description
|
@wking |
It is reused on many place, so should be built a function. Signed-off-by: xiekeyang <xiekeyang@huawei.com>
Signed-off-by: xiekeyang <xiekeyang@huawei.com>
|
are we merging this here? or does this need to be moved (and possibly merged) in image-tools? |
|
On Thu, Sep 15, 2016 at 07:07:52AM -0700, Antonio Murdaca wrote:
It can be merged on the command line, just add an image-spec remote. |
and that's is awful to me given we have another repo and the code here is just for image-tools, do we want to cherry-pick/merge every outstanding PR from image-spec once merged here - anyway whatever |
|
On Thu, Sep 15, 2016 at 07:24:40AM -0700, Antonio Murdaca wrote:
You have to migrate them over somehow. image-tools has preserved the |
|
Are these sources just for image-tools though? |
they're seem to be just used in |
|
On Thu, Sep 15, 2016 at 07:35:12AM -0700, Antonio Murdaca wrote:
And I expect image-tools to eventually expose this sort of thing in Go |
|
i guess i meant, like runtime-spec has ./specs-go/ that are used by the runtime-tools and runc, I figured there would be a similar relationship here. I could likely be wrong though. |
@vbatts I left |
|
ah. my bad. you're right. On Thu, Sep 15, 2016 at 10:47 AM, Antonio Murdaca notifications@github.com
|
|
On Thu, Sep 15, 2016 at 07:47:35AM -0700, Antonio Murdaca wrote:
Yeah. +1 for leaving dead stuff (JSON Schema, Go types) in image-spec |
Signed-off-by: xiekeyang xiekeyang@huawei.com