update local code for updated modules

Some tests had to be skipped as there's some issues to address, and
some of the result-types cannot be mocked / stubbed.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-10-24 10:28:54 +02:00
parent aeb78091a0
commit 4f7c07cfc2
190 changed files with 3019 additions and 2584 deletions
+4 -3
View File
@@ -6,13 +6,14 @@ import (
"testing"
"github.com/docker/cli/internal/test"
"github.com/moby/moby/client"
"gotest.tools/v3/assert"
)
func TestNodeRemoveErrors(t *testing.T) {
testCases := []struct {
args []string
nodeRemoveFunc func() error
nodeRemoveFunc func() (client.NodeRemoveResult, error)
expectedError string
}{
{
@@ -20,8 +21,8 @@ func TestNodeRemoveErrors(t *testing.T) {
},
{
args: []string{"nodeID"},
nodeRemoveFunc: func() error {
return errors.New("error removing the node")
nodeRemoveFunc: func() (client.NodeRemoveResult, error) {
return client.NodeRemoveResult{}, errors.New("error removing the node")
},
expectedError: "error removing the node",
},