-
Notifications
You must be signed in to change notification settings - Fork 771
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
Modify skopeo tests #399
Modify skopeo tests #399
Conversation
859d507
to
751abd9
Compare
@mtrmac PTAL |
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.
ACK modulo a minor point
integration/copy_test.go
Outdated
|
||
// docker v2s2 -> OCI image layout without image name | ||
ociDest = "busybox-latest-noimage" | ||
assertSkopeoFails(c, ".*Error writing manifest: cannot save image with empty image.ref.name.*", "copy", "docker://busybox:latest", "oci:"+ociDest) |
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.
Testing this scenario might detect problems earlier if it were a unit test in the oci
transport; testing that here doesn’t hurt, sure; but shouldn’t the busybox-latest-noimage
directory also be cleaned up? The error is reported in PutManifest
, which means PutBlob
has already written files into the directory AFAICS.
(Even the old code should have used ioutil.TempDir
instead of writing to the current directory, but that’s of course independent of this PR and not a blocker for 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.
Fixed.
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.
LGTM
vendor.conf
Outdated
@@ -1,5 +1,6 @@ | |||
github.com/urfave/cli v1.17.0 | |||
github.com/containers/image master | |||
# github.com/containers/image master |
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.
Nit: please drop this comment.
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.
whoops, my bad. Fixed.
@umohnani8 Please update the expected error message:
|
The oci name changes in containers/image caused the skopeo test to fail Signed-off-by: umohnani8 <umohnani@redhat.com>
Thanks! |
The oci name changes in containers/image containers/image#318 caused the skopeo test to fail
Signed-off-by: umohnani8 umohnani@redhat.com