-
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.
vendor: github.com/docker/docker 66a2e2d16fe8 (master, v28.0.0-rc.2)
full diff: moby/moby@v28.0.0-rc.1...66a2e2d Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information
Showing
25 changed files
with
234 additions
and
161 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.