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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user