mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Merge pull request #40476 from cpuguy83/19.03_fix_exec_id_client
[19.03] Exec inspect field should be "ID" not "ExecID"
This commit is contained in:
@@ -50,7 +50,7 @@ type ContainerCommitOptions struct {
|
||||
|
||||
// ContainerExecInspect holds information returned by exec inspect.
|
||||
type ContainerExecInspect struct {
|
||||
ExecID string
|
||||
ExecID string `json:"ID"`
|
||||
ContainerID string
|
||||
Running bool
|
||||
ExitCode int
|
||||
|
||||
@@ -102,6 +102,10 @@ func TestExec(t *testing.T) {
|
||||
)
|
||||
assert.NilError(t, err)
|
||||
|
||||
inspect, err := client.ContainerExecInspect(ctx, id.ID)
|
||||
assert.NilError(t, err)
|
||||
assert.Check(t, is.Equal(inspect.ExecID, id.ID))
|
||||
|
||||
resp, err := client.ContainerExecAttach(ctx, id.ID,
|
||||
types.ExecStartCheck{
|
||||
Detach: false,
|
||||
|
||||
Reference in New Issue
Block a user