manifest_url needs to take a single ContainerManifest.

This commit is contained in:
Daniel Smith
2014-06-23 15:06:28 -07:00
parent 11963ecf35
commit 77af24e7dc
2 changed files with 42 additions and 41 deletions

View File

@@ -835,7 +835,9 @@ func TestExtractFromHttp(t *testing.T) {
manifests := []api.ContainerManifest{
{Id: "foo"},
}
data, err := json.Marshal(manifests)
// TODO: provide a mechanism for taking arrays of
// manifests or a single manifest.
data, err := json.Marshal(manifests[0])
fakeHandler := util.FakeHandler{
StatusCode: 200,