Exemplo n.º 1
0
func (s *MySuite) TestAPISuite(c *C) {
	create := func() drivers.Driver {
		_, _, store := Start(1000000, 3*time.Hour)
		return store
	}
	drivers.APITestSuite(c, create)
}
Exemplo n.º 2
0
func (s *MySuite) TestAPISuite(c *C) {
	create := func() drivers.Driver {
		store, err := NewDriver(1000000, 3*time.Hour)
		c.Check(err, IsNil)
		return store
	}
	drivers.APITestSuite(c, create)
}
Exemplo n.º 3
0
func (s *MySuite) TestAPISuite(c *C) {
	var storageList []string
	create := func() drivers.Driver {
		path, err := ioutil.TempDir(os.TempDir(), "minio-fs-")
		c.Check(err, IsNil)
		storageList = append(storageList, path)
		_, _, store := Start(path)
		return store
	}
	drivers.APITestSuite(c, create)
	defer removeRoots(c, storageList)
}
Exemplo n.º 4
0
func (s *MySuite) TestAPISuite(c *C) {
	var storageList []string
	create := func() drivers.Driver {
		var paths []string
		p, err := ioutil.TempDir(os.TempDir(), "minio-donut-")
		c.Check(err, IsNil)
		storageList = append(storageList, p)
		paths = append(paths, p)
		store, err := NewDriver(paths, 1000000, 3*time.Hour)
		c.Check(err, IsNil)
		return store
	}
	drivers.APITestSuite(c, create)
	removeRoots(c, storageList)
}