Remove scsi non portable code, instead "donut make" implements functionality to instantiate a donut

This commit is contained in:
Harshavardhana
2015-07-15 11:55:49 -07:00
parent 49c705da99
commit 4498662c16
20 changed files with 40 additions and 563 deletions

View File

@@ -43,25 +43,6 @@ func (s *MyRPCSuite) TearDownSuite(c *C) {
testRPCServer.Close()
}
func (s *MyRPCSuite) TestDiskInfo(c *C) {
op := controller.RPCOps{
Method: "DiskInfo.Get",
Request: rpc.Args{Request: ""},
}
req, err := controller.NewRequest(testRPCServer.URL+"/rpc", op, http.DefaultTransport)
c.Assert(err, IsNil)
c.Assert(req.Get("Content-Type"), Equals, "application/json")
resp, err := req.Do()
c.Assert(err, IsNil)
c.Assert(resp.StatusCode, Equals, http.StatusOK)
var reply rpc.DiskInfoReply
err = jsonrpc.DecodeClientResponse(resp.Body, &reply)
c.Assert(err, IsNil)
resp.Body.Close()
c.Assert(reply, Not(DeepEquals), rpc.DiskInfoReply{})
}
func (s *MyRPCSuite) TestMemStats(c *C) {
op := controller.RPCOps{
Method: "MemStats.Get",