-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5820 from thaJeztah/bump_engine
vendor: github.com/docker/docker b570831cc3a3 (master, v28.0.0-rc.2)
- Loading branch information
Showing
26 changed files
with
290 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ import ( | |
"testing" | ||
|
||
"github.com/docker/cli/internal/test" | ||
"github.com/docker/docker/api/types" | ||
"github.com/docker/docker/api/types/container" | ||
"gotest.tools/v3/assert" | ||
is "gotest.tools/v3/assert/cmp" | ||
|
@@ -17,16 +16,16 @@ func TestRunCommit(t *testing.T) { | |
cli := test.NewFakeCli(&fakeClient{ | ||
containerCommitFunc: func( | ||
ctx context.Context, | ||
container string, | ||
ctr string, | ||
options container.CommitOptions, | ||
) (types.IDResponse, error) { | ||
) (container.CommitResponse, error) { | ||
assert.Check(t, is.Equal(options.Author, "Author Name <[email protected]>")) | ||
assert.Check(t, is.DeepEqual(options.Changes, []string{"EXPOSE 80"})) | ||
assert.Check(t, is.Equal(options.Comment, "commit message")) | ||
assert.Check(t, is.Equal(options.Pause, false)) | ||
assert.Check(t, is.Equal(container, "container-id")) | ||
assert.Check(t, is.Equal(ctr, "container-id")) | ||
|
||
return types.IDResponse{ID: "image-id"}, nil | ||
return container.CommitResponse{ID: "image-id"}, nil | ||
}, | ||
}) | ||
|
||
|
@@ -54,10 +53,10 @@ func TestRunCommitClientError(t *testing.T) { | |
cli := test.NewFakeCli(&fakeClient{ | ||
containerCommitFunc: func( | ||
ctx context.Context, | ||
container string, | ||
ctr string, | ||
options container.CommitOptions, | ||
) (types.IDResponse, error) { | ||
return types.IDResponse{}, clientError | ||
) (container.CommitResponse, error) { | ||
return container.CommitResponse{}, clientError | ||
}, | ||
}) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.