@ -104,10 +104,10 @@ type TestErrHandler interface {
}
const (
// singleNode TestStr is the string which is used as notation for Single node ObjectLayer in the unit tests.
singleNode TestStr string = "FS"
// x LTestStr is the string which is used as notation for XL ObjectLayer in the unit tests.
x LTestStr string = "XL"
// FS TestStr is the string which is used as notation for Single node ObjectLayer in the unit tests.
FS TestStr string = "FS"
// X LTestStr is the string which is used as notation for XL ObjectLayer in the unit tests.
X LTestStr string = "XL"
)
const letterBytes = "abcdefghijklmnopqrstuvwxyz01234569"
@ -1850,7 +1850,7 @@ func ExecObjectLayerAPITest(t *testing.T, objAPITest objAPITestType, endpoints [
}
credentials := serverConfig . GetCredential ( )
// Executing the object layer tests for single node setup.
objAPITest ( objLayer , singleNode TestStr, bucketFS , fsAPIRouter , credentials , t )
objAPITest ( objLayer , FS TestStr, bucketFS , fsAPIRouter , credentials , t )
objLayer , xlDisks , err := prepareXL ( )
if err != nil {
@ -1862,7 +1862,7 @@ func ExecObjectLayerAPITest(t *testing.T, objAPITest objAPITestType, endpoints [
}
credentials = serverConfig . GetCredential ( )
// Executing the object layer tests for XL.
objAPITest ( objLayer , x LTestStr, bucketXL , xlAPIRouter , credentials , t )
objAPITest ( objLayer , X LTestStr, bucketXL , xlAPIRouter , credentials , t )
// clean up the temporary test backend.
removeRoots ( append ( xlDisks , fsDir , rootPath ) )
}
@ -1893,14 +1893,14 @@ func ExecObjectLayerTest(t TestErrHandler, objTest objTestType) {
t . Fatalf ( "Initialization of object layer failed for single node setup: %s" , err )
}
// Executing the object layer tests for single node setup.
objTest ( objLayer , singleNode TestStr, t )
objTest ( objLayer , FS TestStr, t )
objLayer , fsDirs , err := prepareXL ( )
if err != nil {
t . Fatalf ( "Initialization of object layer failed for XL setup: %s" , err )
}
// Executing the object layer tests for XL.
objTest ( objLayer , x LTestStr, t )
objTest ( objLayer , X LTestStr, t )
defer removeRoots ( append ( fsDirs , fsDir ) )
}
@ -1912,7 +1912,7 @@ func ExecObjectLayerDiskAlteredTest(t *testing.T, objTest objTestDiskNotFoundTyp
t . Fatalf ( "Initialization of object layer failed for XL setup: %s" , err )
}
// Executing the object layer tests for XL.
objTest ( objLayer , x LTestStr, fsDirs , t )
objTest ( objLayer , X LTestStr, fsDirs , t )
defer removeRoots ( fsDirs )
}
@ -1936,7 +1936,7 @@ func ExecObjectLayerStaleFilesTest(t *testing.T, objTest objTestStaleFilesType)
t . Fatalf ( "Initialization of object layer failed for XL setup: %s" , err )
}
// Executing the object layer tests for XL.
objTest ( objLayer , x LTestStr, erasureDisks , t )
objTest ( objLayer , X LTestStr, erasureDisks , t )
defer removeRoots ( erasureDisks )
}