mirror of
https://github.com/containers/skopeo.git
synced 2025-07-20 17:39:49 +00:00
Replace TestCopyFailWithManifestList by a test which expects success
This commit is contained in:
parent
e8fb01e1ed
commit
c1a0084bb3
@ -90,9 +90,11 @@ func (s *CopySuite) TearDownSuite(c *check.C) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *CopySuite) TestCopyFailsWithManifestList(c *check.C) {
|
func (s *CopySuite) TestCopyWithManifestList(c *check.C) {
|
||||||
c.ExpectFailure("manifest-list-hotfix sacrificed hotfixes for being able to copy images")
|
dir, err := ioutil.TempDir("", "copy-manifest-list")
|
||||||
assertSkopeoFails(c, ".*can not copy docker://estesp/busybox:latest: manifest contains multiple images.*", "copy", "docker://estesp/busybox:latest", "dir:somedir")
|
c.Assert(err, check.IsNil)
|
||||||
|
defer os.RemoveAll(dir)
|
||||||
|
assertSkopeoSucceeds(c, "", "copy", "docker://estesp/busybox:latest", "dir:"+dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *CopySuite) TestCopyFailsWhenImageOSDoesntMatchRuntimeOS(c *check.C) {
|
func (s *CopySuite) TestCopyFailsWhenImageOSDoesntMatchRuntimeOS(c *check.C) {
|
||||||
|
Loading…
Reference in New Issue
Block a user