Commit efeac792 authored by Matt Butcher's avatar Matt Butcher

fix(manager): add unmarshal test on delete deployment

Deleting a deployment returns the deployment object. This adds an
unmarshal test on that.
parent 5263995b
......@@ -160,4 +160,14 @@ func TestDeleteDeployments(t *testing.T) {
if res.StatusCode != 200 {
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)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment