From c1a0084bb32c19fde6cc691cfb85300dda381376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Sat, 16 Sep 2017 04:14:56 +0200 Subject: [PATCH] Replace TestCopyFailWithManifestList by a test which expects success --- integration/copy_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/integration/copy_test.go b/integration/copy_test.go index 506a1b3f..f7c416b9 100644 --- a/integration/copy_test.go +++ b/integration/copy_test.go @@ -90,9 +90,11 @@ func (s *CopySuite) TearDownSuite(c *check.C) { } } -func (s *CopySuite) TestCopyFailsWithManifestList(c *check.C) { - c.ExpectFailure("manifest-list-hotfix sacrificed hotfixes for being able to copy images") - assertSkopeoFails(c, ".*can not copy docker://estesp/busybox:latest: manifest contains multiple images.*", "copy", "docker://estesp/busybox:latest", "dir:somedir") +func (s *CopySuite) TestCopyWithManifestList(c *check.C) { + dir, err := ioutil.TempDir("", "copy-manifest-list") + 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) {