Search in sources :

Example 1 with SMICommunicationInterface

use of com.emc.storageos.volumecontroller.impl.plugins.SMICommunicationInterface in project coprhd-controller by CoprHD.

the class SMICommunicationInterfaceTest method testVNXBlockPlugin.

// Need to start coordinator & DB service, before running this test
@Test
public void testVNXBlockPlugin() {
    try {
        final SMICommunicationInterface _smiplugin = (SMICommunicationInterface) _context.getBean("block");
        Map<String, Object> map1 = new ConcurrentHashMap<String, Object>();
        Set<String> idset = new HashSet<String>();
        idset.add("SYMMETRIX+000194900404+VOLUME+00000");
        map1.put("000194900404-block-Volumes", idset);
        _smiplugin.injectCache(map1);
        _smiplugin.injectDBClient(new DbClientImpl());
        _smiplugin.scan(createAccessProfile());
    // sleeptest(_smiplugin);
    } catch (Exception e) {
        _LOGGER.error(e.getMessage(), e);
    }
}
Also used : DbClientImpl(com.emc.storageos.db.client.impl.DbClientImpl) SMICommunicationInterface(com.emc.storageos.volumecontroller.impl.plugins.SMICommunicationInterface) StorageSystemViewObject(com.emc.storageos.plugins.StorageSystemViewObject) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) BaseCollectionException(com.emc.storageos.plugins.BaseCollectionException) HashSet(java.util.HashSet) Test(org.junit.Test)

Aggregations

DbClientImpl (com.emc.storageos.db.client.impl.DbClientImpl)1 BaseCollectionException (com.emc.storageos.plugins.BaseCollectionException)1 StorageSystemViewObject (com.emc.storageos.plugins.StorageSystemViewObject)1 SMICommunicationInterface (com.emc.storageos.volumecontroller.impl.plugins.SMICommunicationInterface)1 HashSet (java.util.HashSet)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 Test (org.junit.Test)1