Donut mode will now take multiple paths as argument, updated docs as well

This commit is contained in:
Harshavardhana
2015-04-23 11:26:47 -07:00
parent 7c17a60d1f
commit 5ae8d34f76
4 changed files with 67 additions and 27 deletions

View File

@@ -32,13 +32,14 @@ type MySuite struct{}
var _ = Suite(&MySuite{})
func (s *MySuite) TestAPISuite(c *C) {
// c.Skip("Not Implemented")
var storageList []string
create := func() drivers.Driver {
path, err := ioutil.TempDir(os.TempDir(), "minio-fs-")
var paths []string
p, err := ioutil.TempDir(os.TempDir(), "minio-fs-")
c.Check(err, IsNil)
storageList = append(storageList, path)
_, _, store := Start(path) // TODO Make InMemory driver
storageList = append(storageList, p)
paths = append(paths, p)
_, _, store := Start(paths)
return store
}
drivers.APITestSuite(c, create)