mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 21:21:42 +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:
@@ -23,7 +23,7 @@ func TestContainerApiGetAll(t *testing.T) {
|
||||
t.Fatalf("Error on container creation: %v, output: %q", err, out)
|
||||
}
|
||||
|
||||
body, err := sockRequest("GET", "/containers/json?all=1")
|
||||
body, err := sockRequest("GET", "/containers/json?all=1", nil)
|
||||
if err != nil {
|
||||
t.Fatalf("GET all containers sockRequest failed: %v", err)
|
||||
}
|
||||
@@ -56,7 +56,7 @@ func TestContainerApiGetExport(t *testing.T) {
|
||||
t.Fatalf("Error on container creation: %v, output: %q", err, out)
|
||||
}
|
||||
|
||||
body, err := sockRequest("GET", "/containers/"+name+"/export")
|
||||
body, err := sockRequest("GET", "/containers/"+name+"/export", nil)
|
||||
if err != nil {
|
||||
t.Fatalf("GET containers/export sockRequest failed: %v", err)
|
||||
}
|
||||
@@ -92,7 +92,7 @@ func TestContainerApiGetChanges(t *testing.T) {
|
||||
t.Fatalf("Error on container creation: %v, output: %q", err, out)
|
||||
}
|
||||
|
||||
body, err := sockRequest("GET", "/containers/"+name+"/changes")
|
||||
body, err := sockRequest("GET", "/containers/"+name+"/changes", nil)
|
||||
if err != nil {
|
||||
t.Fatalf("GET containers/changes sockRequest failed: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user