Search in sources :

Example 1 with XtremioBlockSnapshotDeviceLabelMigration

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");
}
Also used : BaseCustomMigrationCallback(com.emc.storageos.db.client.upgrade.BaseCustomMigrationCallback) XtremioBlockSnapshotDeviceLabelMigration(com.emc.storageos.db.client.upgrade.callbacks.XtremioBlockSnapshotDeviceLabelMigration) File(java.io.File) BeforeClass(org.junit.BeforeClass)

Aggregations

BaseCustomMigrationCallback (com.emc.storageos.db.client.upgrade.BaseCustomMigrationCallback)1 XtremioBlockSnapshotDeviceLabelMigration (com.emc.storageos.db.client.upgrade.callbacks.XtremioBlockSnapshotDeviceLabelMigration)1 File (java.io.File)1 BeforeClass (org.junit.BeforeClass)1