1.return status code http.StatusNoContent in deleting network when successful

2.modify docker_api_network_test.go
3.modify docker_remote_api_v1.23.md

Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 94c929099fdfd200eda90529ae8d2ed90c8e3c97
Component: engine
This commit is contained in:
allencloud
2016-03-10 00:28:55 +08:00
parent dfd9e32dcf
commit 9810cad289
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)
}