mirror of
https://github.com/containers/skopeo.git
synced 2025-06-22 12:58:07 +00:00
re-enable and fix failing tests
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
143ff7165d
commit
3de433ea4a
@ -81,31 +81,23 @@ func (s *SkopeoSuite) TestVersion(c *check.C) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//func (s *SkopeoSuite) TestCanAuthToPrivateRegistryV2WithoutDockerCfg(c *check.C) {
|
func (s *SkopeoSuite) TestCanAuthToPrivateRegistryV2WithoutDockerCfg(c *check.C) {
|
||||||
//out, err := exec.Command(skopeoBinary, "--docker-cfg=''", "--username="+s.regV2WithAuth.username, "--password="+s.regV2WithAuth.password, fmt.Sprintf("%s/busybox:latest", s.regV2WithAuth.url)).CombinedOutput()
|
out, err := exec.Command(skopeoBinary, "--docker-cfg=''", "--username="+s.regV2WithAuth.username, "--password="+s.regV2WithAuth.password, fmt.Sprintf("%s/busybox:latest", s.regV2WithAuth.url)).CombinedOutput()
|
||||||
//c.Assert(err, check.NotNil, check.Commentf(string(out)))
|
c.Assert(err, check.NotNil, check.Commentf(string(out)))
|
||||||
//wanted := "falling back to --username and --password if needed"
|
wanted := "Error: image busybox not found"
|
||||||
//if !strings.Contains(string(out), wanted) {
|
if !strings.Contains(string(out), wanted) {
|
||||||
//c.Fatalf("wanted %s, got %s", wanted, string(out))
|
c.Fatalf("wanted %s, got %s", wanted, string(out))
|
||||||
//}
|
}
|
||||||
//wanted = "Error: image busybox not found"
|
}
|
||||||
//if !strings.Contains(string(out), wanted) {
|
|
||||||
//c.Fatalf("wanted %s, got %s", wanted, string(out))
|
|
||||||
//}
|
|
||||||
//}
|
|
||||||
|
|
||||||
//func (s *SkopeoSuite) TestNeedAuthToPrivateRegistryV2WithoutDockerCfg(c *check.C) {
|
func (s *SkopeoSuite) TestNeedAuthToPrivateRegistryV2WithoutDockerCfg(c *check.C) {
|
||||||
//out, err := exec.Command(skopeoBinary, "--docker-cfg=''", fmt.Sprintf("%s/busybox:latest", s.regV2WithAuth.url)).CombinedOutput()
|
out, err := exec.Command(skopeoBinary, "--docker-cfg=''", fmt.Sprintf("%s/busybox:latest", s.regV2WithAuth.url)).CombinedOutput()
|
||||||
//c.Assert(err, check.NotNil, check.Commentf(string(out)))
|
c.Assert(err, check.NotNil, check.Commentf(string(out)))
|
||||||
//wanted := "falling back to --username and --password if needed"
|
wanted := "no basic auth credentials"
|
||||||
//if !strings.Contains(string(out), wanted) {
|
if !strings.Contains(string(out), wanted) {
|
||||||
//c.Fatalf("wanted %s, got %s", wanted, string(out))
|
c.Fatalf("wanted %s, got %s", wanted, string(out))
|
||||||
//}
|
}
|
||||||
//wanted = "no basic auth credentials"
|
}
|
||||||
//if !strings.Contains(string(out), wanted) {
|
|
||||||
//c.Fatalf("wanted %s, got %s", wanted, string(out))
|
|
||||||
//}
|
|
||||||
//}
|
|
||||||
|
|
||||||
// TODO(runcom): as soon as we can push to registries ensure you can inspect here
|
// TODO(runcom): as soon as we can push to registries ensure you can inspect here
|
||||||
// not just get image not found :)
|
// not just get image not found :)
|
||||||
|
Loading…
Reference in New Issue
Block a user