1
0
mirror of https://github.com/offen/docker-volume-backup.git synced 2025-11-23 21:44:40 +02:00

Bump github.com/docker/cli from 28.5.2+incompatible to 29.0.2+incompatible (#676)

* Bump github.com/docker/cli

Bumps [github.com/docker/cli](https://github.com/docker/cli) from 28.5.2+incompatible to 29.0.2+incompatible.
- [Commits](https://github.com/docker/cli/compare/v28.5.2...v29.0.2)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-version: 29.0.2+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* github.com/docker/docker has been superseded by moby packages

* Fix usage of new filter API

* Base test env off Docker 29

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Frederik Ring <frederik.ring@gmail.com>
This commit is contained in:
dependabot[bot]
2025-11-20 17:16:08 +01:00
committed by GitHub
parent 173f08fb58
commit 6010d61283
8 changed files with 121 additions and 227 deletions

View File

@@ -5,16 +5,17 @@ import (
"errors"
"testing"
"github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/api/types/system"
"github.com/moby/moby/api/types/swarm"
"github.com/moby/moby/api/types/system"
"github.com/moby/moby/client"
)
type mockInfoClient struct {
result system.Info
result client.SystemInfoResult
err error
}
func (m *mockInfoClient) Info(context.Context) (system.Info, error) {
func (m *mockInfoClient) Info(context.Context, client.InfoOptions) (client.SystemInfoResult, error) {
return m.result, m.err
}
@@ -28,10 +29,12 @@ func TestIsSwarm(t *testing.T) {
{
"swarm",
&mockInfoClient{
result: system.Info{
Swarm: swarm.Info{
LocalNodeState: swarm.LocalNodeStateActive,
ControlAvailable: true,
result: client.SystemInfoResult{
Info: system.Info{
Swarm: swarm.Info{
LocalNodeState: swarm.LocalNodeStateActive,
ControlAvailable: true,
},
},
},
},
@@ -41,9 +44,11 @@ func TestIsSwarm(t *testing.T) {
{
"worker",
&mockInfoClient{
result: system.Info{
Swarm: swarm.Info{
LocalNodeState: swarm.LocalNodeStateActive,
result: client.SystemInfoResult{
Info: system.Info{
Swarm: swarm.Info{
LocalNodeState: swarm.LocalNodeStateActive,
},
},
},
},
@@ -53,9 +58,11 @@ func TestIsSwarm(t *testing.T) {
{
"compose",
&mockInfoClient{
result: system.Info{
Swarm: swarm.Info{
LocalNodeState: swarm.LocalNodeStateInactive,
result: client.SystemInfoResult{
Info: system.Info{
Swarm: swarm.Info{
LocalNodeState: swarm.LocalNodeStateInactive,
},
},
},
},
@@ -65,9 +72,11 @@ func TestIsSwarm(t *testing.T) {
{
"balena",
&mockInfoClient{
result: system.Info{
Swarm: swarm.Info{
LocalNodeState: "",
result: client.SystemInfoResult{
Info: system.Info{
Swarm: swarm.Info{
LocalNodeState: "",
},
},
},
},