mirror of
https://github.com/distribution/distribution.git
synced 2025-09-11 19:59:48 +00:00
Add unit tests for BlobEnumerator
Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user