mirror of
https://github.com/containers/skopeo.git
synced 2025-09-05 16:50:45 +00:00
@@ -31,7 +31,7 @@ type SkopeoSuite struct {
|
|||||||
regV1 *testRegistryV1
|
regV1 *testRegistryV1
|
||||||
regV2 *testRegistryV2
|
regV2 *testRegistryV2
|
||||||
regV2Shema1 *testRegistryV2
|
regV2Shema1 *testRegistryV2
|
||||||
regV1WithAuth *testRegistryV1
|
regV1WithAuth *testRegistryV1 // does v1 support auth?
|
||||||
regV2WithAuth *testRegistryV2
|
regV2WithAuth *testRegistryV2
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ func (s *SkopeoSuite) SetUpTest(c *check.C) {
|
|||||||
_, err := exec.LookPath(skopeoBinary)
|
_, err := exec.LookPath(skopeoBinary)
|
||||||
c.Assert(err, check.IsNil)
|
c.Assert(err, check.IsNil)
|
||||||
|
|
||||||
s.regV1 = setupRegistryV1At(c, privateRegistryURL0, false) // not used
|
s.regV1 = setupRegistryV1At(c, privateRegistryURL0, false) // TODO:(runcom)
|
||||||
s.regV2 = setupRegistryV2At(c, privateRegistryURL1, false, false)
|
s.regV2 = setupRegistryV2At(c, privateRegistryURL1, false, false)
|
||||||
s.regV2Shema1 = setupRegistryV2At(c, privateRegistryURL2, false, true)
|
s.regV2Shema1 = setupRegistryV2At(c, privateRegistryURL2, false, true)
|
||||||
s.regV1WithAuth = setupRegistryV1At(c, privateRegistryURL3, true) // not used
|
s.regV1WithAuth = setupRegistryV1At(c, privateRegistryURL3, true) // not used
|
||||||
|
@@ -19,10 +19,15 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type testRegistryV1 struct {
|
type testRegistryV1 struct {
|
||||||
|
cmd *exec.Cmd
|
||||||
|
url string
|
||||||
|
dir string
|
||||||
}
|
}
|
||||||
|
|
||||||
func setupRegistryV1At(c *check.C, url string, auth bool) *testRegistryV1 {
|
func setupRegistryV1At(c *check.C, url string, auth bool) *testRegistryV1 {
|
||||||
return &testRegistryV1{}
|
return &testRegistryV1{
|
||||||
|
url: url,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type testRegistryV2 struct {
|
type testRegistryV2 struct {
|
||||||
|
Reference in New Issue
Block a user