Merge pull request #35033 from chchliang/viservice

Add `namespace method` conver in `TestV1IDService` 
Upstream-commit: c6378920e14638cc281c5513a989fdff82562426
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2018-01-06 14:37:48 +01:00
committed by GitHub

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