Search in sources :

Example 6 with VNXeStorageSystem

use of com.emc.storageos.vnxe.models.VNXeStorageSystem in project coprhd-controller by CoprHD.

the class VNXUnityFileStorageDeviceTest method testDiscoverUnity.

/**
 * Tests Unity discovery
 *
 * @throws Exception
 */
@Test
public void testDiscoverUnity() {
    try {
        VNXeApiClient apiclient = _unity.getVnxUnityClient(_device);
        VNXeStorageSystem storageSystem = apiclient.getStorageSystem();
        Assert.assertTrue("Unity discovery failed " + storageSystem.getId(), true);
    } catch (VNXeException uex) {
        System.out.println("Unity discovery failed: " + uex.getCause());
    }
}
Also used : VNXeStorageSystem(com.emc.storageos.vnxe.models.VNXeStorageSystem) VNXeApiClient(com.emc.storageos.vnxe.VNXeApiClient) VNXeException(com.emc.storageos.vnxe.VNXeException) Test(org.junit.Test)

Aggregations

VNXeStorageSystem (com.emc.storageos.vnxe.models.VNXeStorageSystem)6 VNXeApiClient (com.emc.storageos.vnxe.VNXeApiClient)4 VNXeException (com.emc.storageos.vnxe.VNXeException)4 DatabaseException (com.emc.storageos.db.exceptions.DatabaseException)3 BaseCollectionException (com.emc.storageos.plugins.BaseCollectionException)3 Test (org.junit.Test)3 URIQueryResultList (com.emc.storageos.db.client.constraint.URIQueryResultList)2 StoragePool (com.emc.storageos.db.client.model.StoragePool)2 StoragePort (com.emc.storageos.db.client.model.StoragePort)2 StorageSystem (com.emc.storageos.db.client.model.StorageSystem)2 StringSet (com.emc.storageos.db.client.model.StringSet)2 BasicSystemInfo (com.emc.storageos.vnxe.models.BasicSystemInfo)2 URI (java.net.URI)2 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 List (java.util.List)2 StorageProvider (com.emc.storageos.db.client.model.StorageProvider)1 StorageSystemViewObject (com.emc.storageos.plugins.StorageSystemViewObject)1