reg v1 setup wip

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca
2016-03-04 13:02:52 +01:00
parent 51c104bde0
commit 370f1bc685
2 changed files with 8 additions and 3 deletions

View File

@@ -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

View File

@@ -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 {