use of com.emc.storageos.db.client.upgrade.callbacks.XtremioBlockSnapshotDeviceLabelMigration in project coprhd-controller by CoprHD.
the class XtremioBlockSnapshotDeviceLabelMigrationTest method setup.
@BeforeClass
public static void setup() throws IOException {
customMigrationCallbacks.put("2.3", new ArrayList<BaseCustomMigrationCallback>() {
{
add(new XtremioBlockSnapshotDeviceLabelMigration());
}
});
// Adding this, which is typically executed in the base class
// call, as it is needed to clear the DB file between runs.
_dataDir = new File(dataDir);
if (_dataDir.exists() && _dataDir.isDirectory()) {
cleanDirectory(_dataDir);
}
_dataDir.mkdir();
// Commenting this out as it prevents the migration callback
// from being executed when the test is executed.
// DbsvcTestBase.setup();
log.info("completed setup");
}
Aggregations