fix(manager): add unmarshal test on delete deployment

Deleting a deployment returns the deployment object. This adds an
unmarshal test on that.
pull/490/head
Matt Butcher 9 years ago
parent 5263995b14
commit efeac79288

@ -160,4 +160,14 @@ func TestDeleteDeployments(t *testing.T) {
if res.StatusCode != 200 { if res.StatusCode != 200 {
t.Errorf("Expected status code 200, got %d", res.StatusCode) t.Errorf("Expected status code 200, got %d", res.StatusCode)
} }
var out common.Deployment
if err := json.NewDecoder(res.Body).Decode(&out); err != nil {
t.Errorf("Failed to parse results: %s", err)
return
}
if out.Name != "portunes" {
t.Errorf("Unexpected name %q", out.Name)
}
} }

Loading…
Cancel
Save