1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

add namespace method conver

Signed-off-by: chchliang <chen.chuanliang@zte.com.cn>
This commit is contained in:
chchliang 2017-09-29 15:23:54 +08:00
parent fff4232899
commit 0446b6a04e

View file

@ -7,6 +7,7 @@ import (
"testing"
"github.com/docker/docker/layer"
"github.com/stretchr/testify/require"
)
func TestV1IDService(t *testing.T) {
@ -22,6 +23,10 @@ func TestV1IDService(t *testing.T) {
}
v1IDService := NewV1IDService(metadataStore)
ns := v1IDService.namespace()
require.Equal(t, "v1id", ns)
testVectors := []struct {
registry string
v1ID string