Add unit tests for BlobEnumerator

Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
This commit is contained in:
Guillaume Rose 2019-12-06 08:52:55 +01:00
parent 5538da4923
commit c9c3324300
2 changed files with 53 additions and 0 deletions

View file

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