mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 21:51:33 +00:00
Check for no Cmd on exec create endpoint
Fixes #9414 Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@ func TestResizeApiResponse(t *testing.T) {
|
||||
cleanedContainerID := stripTrailingCharacters(out)
|
||||
|
||||
endpoint := "/containers/" + cleanedContainerID + "/resize?h=40&w=40"
|
||||
_, err = sockRequest("POST", endpoint)
|
||||
_, err = sockRequest("POST", endpoint, nil)
|
||||
if err != nil {
|
||||
t.Fatalf("resize Request failed %v", err)
|
||||
}
|
||||
@@ -41,7 +41,7 @@ func TestResizeApiResponseWhenContainerNotStarted(t *testing.T) {
|
||||
}
|
||||
|
||||
endpoint := "/containers/" + cleanedContainerID + "/resize?h=40&w=40"
|
||||
body, err := sockRequest("POST", endpoint)
|
||||
body, err := sockRequest("POST", endpoint, nil)
|
||||
if err == nil {
|
||||
t.Fatalf("resize should fail when container is not started")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user