mirror of
https://github.com/containers/skopeo.git
synced 2025-09-02 23:26:29 +00:00
Add integration test for invalid reference
This change adds a couple of tests to prevent further regression introduced by https://github.com/containers/skopeo/pull/653 Signed-off-by: Tristan Cacqueray <tdecacqu@redhat.com>
This commit is contained in:
@@ -696,3 +696,7 @@ func (s *SkopeoSuite) TestFailureCopySrcWithMirrorAndPrefixUnavailable(c *check.
|
||||
assertSkopeoFails(c, ".*no such host.*", "--registries-conf="+regConfFixture, "copy",
|
||||
"docker://gcr.invalid/wrong/prefix/busybox", "dir:"+dir)
|
||||
}
|
||||
|
||||
func (s *CopySuite) TestCopyFailsWhenReferenceIsInvalid(c *check.C) {
|
||||
assertSkopeoFails(c, `.*Invalid image name.*`, "copy", "unknown:transport", "unknown:test")
|
||||
}
|
||||
|
Reference in New Issue
Block a user