mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #35033 from chchliang/viservice
Add `namespace method` conver in `TestV1IDService`
This commit is contained in:
commit
c6378920e1
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/docker/docker/layer"
|
"github.com/docker/docker/layer"
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestV1IDService(t *testing.T) {
|
func TestV1IDService(t *testing.T) {
|
||||||
|
@ -22,6 +23,10 @@ func TestV1IDService(t *testing.T) {
|
||||||
}
|
}
|
||||||
v1IDService := NewV1IDService(metadataStore)
|
v1IDService := NewV1IDService(metadataStore)
|
||||||
|
|
||||||
|
ns := v1IDService.namespace()
|
||||||
|
|
||||||
|
require.Equal(t, "v1id", ns)
|
||||||
|
|
||||||
testVectors := []struct {
|
testVectors := []struct {
|
||||||
registry string
|
registry string
|
||||||
v1ID string
|
v1ID string
|
||||||
|
|
Loading…
Reference in a new issue