@@ -3,7 +3,7 @@ package cli
33import (
44 "testing"
55
6- pluginmanager "github.com/docker/cli/cli-plugins/manager "
6+ "github.com/docker/cli/cli-plugins/metadata "
77 "github.com/google/go-cmp/cmp/cmpopts"
88 "github.com/spf13/cobra"
99 "gotest.tools/v3/assert"
@@ -49,9 +49,9 @@ func TestVendorAndVersion(t *testing.T) {
4949 cmd := & cobra.Command {
5050 Use : "test" ,
5151 Annotations : map [string ]string {
52- pluginmanager .CommandAnnotationPlugin : "true" ,
53- pluginmanager .CommandAnnotationPluginVendor : tc .vendor ,
54- pluginmanager .CommandAnnotationPluginVersion : tc .version ,
52+ metadata .CommandAnnotationPlugin : "true" ,
53+ metadata .CommandAnnotationPluginVendor : tc .vendor ,
54+ metadata .CommandAnnotationPluginVersion : tc .version ,
5555 },
5656 }
5757 assert .Equal (t , vendorAndVersion (cmd ), tc .expected )
@@ -69,8 +69,8 @@ func TestInvalidPlugin(t *testing.T) {
6969 assert .Assert (t , is .Len (invalidPlugins (root ), 0 ))
7070
7171 sub1 .Annotations = map [string ]string {
72- pluginmanager .CommandAnnotationPlugin : "true" ,
73- pluginmanager .CommandAnnotationPluginInvalid : "foo" ,
72+ metadata .CommandAnnotationPlugin : "true" ,
73+ metadata .CommandAnnotationPluginInvalid : "foo" ,
7474 }
7575 root .AddCommand (sub1 , sub2 )
7676 sub1 .AddCommand (sub1sub1 , sub1sub2 )
@@ -100,6 +100,6 @@ func TestDecoratedName(t *testing.T) {
100100 topLevelCommand := & cobra.Command {Use : "pluginTopLevelCommand" }
101101 root .AddCommand (topLevelCommand )
102102 assert .Equal (t , decoratedName (topLevelCommand ), "pluginTopLevelCommand " )
103- topLevelCommand .Annotations = map [string ]string {pluginmanager .CommandAnnotationPlugin : "true" }
103+ topLevelCommand .Annotations = map [string ]string {metadata .CommandAnnotationPlugin : "true" }
104104 assert .Equal (t , decoratedName (topLevelCommand ), "pluginTopLevelCommand*" )
105105}
0 commit comments