forked from TrueCloudLab/distribution
Add unit tests for BlobEnumerator
Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
This commit is contained in:
parent
5538da4923
commit
c9c3324300
2 changed files with 53 additions and 0 deletions
|
@ -83,6 +83,10 @@ func TestPathMapper(t *testing.T) {
|
|||
},
|
||||
expected: "/docker/registry/v2/repositories/foo/bar/_uploads/asdf-asdf-asdf-adsf/startedat",
|
||||
},
|
||||
{
|
||||
spec: layersPathSpec{name: "foo/bar"},
|
||||
expected: "/docker/registry/v2/repositories/foo/bar/_layers",
|
||||
},
|
||||
} {
|
||||
p, err := pathFor(testcase.spec)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue