Merge pull request #20977 from allencloud/fix-delete-response-status-code

return status code http.StatusNoContent in deleting network when OK
Upstream-commit: a04e16ac35e8dd9ec10462cccebf13cf29b49a51
Component: engine
This commit is contained in:
Brian Goff
2016-03-13 11:30:32 -04:00
3 changed files with 13 additions and 6 deletions
@@ -332,6 +332,6 @@ func deleteNetwork(c *check.C, id string, shouldSucceed bool) {
c.Assert(status, checker.Not(checker.Equals), http.StatusOK)
return
}
c.Assert(status, checker.Equals, http.StatusOK)
c.Assert(status, checker.Equals, http.StatusNoContent)
c.Assert(err, checker.IsNil)
}