vendor: update docker, api, client to master
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -6,7 +6,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/docker/cli/internal/test"
|
||||
"github.com/moby/moby/api/types"
|
||||
"github.com/moby/moby/client"
|
||||
"gotest.tools/v3/assert"
|
||||
is "gotest.tools/v3/assert/cmp"
|
||||
)
|
||||
@ -15,7 +15,7 @@ func TestPluginDisableErrors(t *testing.T) {
|
||||
testCases := []struct {
|
||||
args []string
|
||||
expectedError string
|
||||
pluginDisableFunc func(name string, disableOptions types.PluginDisableOptions) error
|
||||
pluginDisableFunc func(name string, disableOptions client.PluginDisableOptions) error
|
||||
}{
|
||||
{
|
||||
args: []string{},
|
||||
@ -28,7 +28,7 @@ func TestPluginDisableErrors(t *testing.T) {
|
||||
{
|
||||
args: []string{"plugin-foo"},
|
||||
expectedError: "error disabling plugin",
|
||||
pluginDisableFunc: func(name string, disableOptions types.PluginDisableOptions) error {
|
||||
pluginDisableFunc: func(name string, disableOptions client.PluginDisableOptions) error {
|
||||
return errors.New("error disabling plugin")
|
||||
},
|
||||
},
|
||||
@ -48,7 +48,7 @@ func TestPluginDisableErrors(t *testing.T) {
|
||||
|
||||
func TestPluginDisable(t *testing.T) {
|
||||
cli := test.NewFakeCli(&fakeClient{
|
||||
pluginDisableFunc: func(name string, disableOptions types.PluginDisableOptions) error {
|
||||
pluginDisableFunc: func(name string, disableOptions client.PluginDisableOptions) error {
|
||||
return nil
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user