Object layer tests revamp for individual execution (#2134)

This commit is contained in:
karthic rao
2016-07-08 03:35:51 +05:30
committed by Harshavardhana
parent 282044d454
commit 2c837128ef
8 changed files with 525 additions and 279 deletions
+2 -2
View File
@@ -601,14 +601,14 @@ func removeDiskN(disks []string, n int) {
}
// Regular object test type.
type objTestType func(obj ObjectLayer, instanceType string, t *testing.T)
type objTestType func(obj ObjectLayer, instanceType string, t TestErrHandler)
// Special object test type for disk not found situations.
type objTestDiskNotFoundType func(obj ObjectLayer, instanceType string, dirs []string, t *testing.T)
// ExecObjectLayerTest - executes object layer tests.
// Creates single node and XL ObjectLayer instance and runs test for both the layers.
func ExecObjectLayerTest(t *testing.T, objTest objTestType) {
func ExecObjectLayerTest(t TestErrHandler, objTest objTestType) {
objLayer, fsDir, err := getSingleNodeObjectLayer()
if err != nil {
t.Fatalf("Initialization of object layer failed for single node setup: %s", err)