Search in sources :

Example 1 with IsilonApiFactory

use of com.emc.storageos.isilon.restapi.IsilonApiFactory in project coprhd-controller by CoprHD.

the class IsilonSimulatorTest method setUp.

@Before
public void setUp() throws Exception {
    // start up simulator server
    // Main.main(new String[]{ "/" + getClass().getResource("/simulator-config.xml").getPath() } );
    _isi = new IsilonFileStorageDevice();
    IsilonApiFactory factory = new IsilonApiFactory();
    factory.init();
    _isi.setIsilonApiFactory(factory);
    // storage device object for tests to use
    _device = new StorageSystem();
    _device.setSystemType("isilon");
    _device.setIpAddress(ip);
    _device.setPortNumber(Integer.parseInt(portNumber));
    _device.setUsername(userName);
    _device.setPassword(password);
    _pool = new StoragePool();
}
Also used : IsilonApiFactory(com.emc.storageos.isilon.restapi.IsilonApiFactory) Before(org.junit.Before)

Example 2 with IsilonApiFactory

use of com.emc.storageos.isilon.restapi.IsilonApiFactory in project coprhd-controller by CoprHD.

the class IsilonFileStorageDeviceTest method setUp.

@Before
public void setUp() throws Exception {
    _isi = new IsilonFileStorageDevice();
    IsilonApiFactory factory = new IsilonApiFactory();
    factory.init();
    _isi.setIsilonApiFactory(factory);
    // storage device object for tests to use
    _device = new StorageSystem();
    _device.setSystemType("isilon");
    _device.setIpAddress(ip);
    _device.setPortNumber(Integer.parseInt(portNumber));
    _device.setUsername(userName);
    _device.setPassword(password);
    _pool = new StoragePool();
}
Also used : IsilonStoragePool(com.emc.storageos.isilon.restapi.IsilonStoragePool) IsilonApiFactory(com.emc.storageos.isilon.restapi.IsilonApiFactory) Before(org.junit.Before)

Example 3 with IsilonApiFactory

use of com.emc.storageos.isilon.restapi.IsilonApiFactory in project coprhd-controller by CoprHD.

the class BiosCommandResultTest method setUp.

@Before
public void setUp() throws Exception {
    _isi = new IsilonFileStorageDevice();
    IsilonApiFactory factory = new IsilonApiFactory();
    factory.init();
    _isi.setIsilonApiFactory(factory);
    _isi.setDbClient(new DummyDbClient() {

        @Override
        public List<URI> queryByConstraint(Constraint constraint) throws DatabaseException {
            return new ArrayList<>();
        }
    });
    // storage device object for tests to use
    _device = new StorageSystem();
    _device.setIpAddress(ip);
    _device.setPortNumber(Integer.parseInt(portNumber));
    _device.setUsername(userName);
    _device.setPassword(password);
    _pool = new StoragePool();
}
Also used : StoragePool(com.emc.storageos.db.client.model.StoragePool) IsilonApiFactory(com.emc.storageos.isilon.restapi.IsilonApiFactory) Constraint(com.emc.storageos.db.client.constraint.Constraint) DummyDbClient(com.emc.storageos.util.DummyDbClient) ArrayList(java.util.ArrayList) List(java.util.List) DatabaseException(com.emc.storageos.db.exceptions.DatabaseException) StorageSystem(com.emc.storageos.db.client.model.StorageSystem) Before(org.junit.Before)

Example 4 with IsilonApiFactory

use of com.emc.storageos.isilon.restapi.IsilonApiFactory in project coprhd-controller by CoprHD.

the class IsilonReplicationTest method setUp.

public static void setUp() {
    _isi = new IsilonFileStorageDevice();
    IsilonApiFactory factory = new IsilonApiFactory();
    factory.init();
    _isi.setIsilonApiFactory(factory);
    _device = new StorageSystem();
    _device.setSystemType("isilon");
    _device.setIpAddress(ip);
    _device.setPortNumber(8080);
    _device.setUsername(userName);
    _device.setPassword(password);
}
Also used : IsilonApiFactory(com.emc.storageos.isilon.restapi.IsilonApiFactory) StorageSystem(com.emc.storageos.db.client.model.StorageSystem)

Aggregations

IsilonApiFactory (com.emc.storageos.isilon.restapi.IsilonApiFactory)4 Before (org.junit.Before)3 StorageSystem (com.emc.storageos.db.client.model.StorageSystem)2 Constraint (com.emc.storageos.db.client.constraint.Constraint)1 StoragePool (com.emc.storageos.db.client.model.StoragePool)1 DatabaseException (com.emc.storageos.db.exceptions.DatabaseException)1 IsilonStoragePool (com.emc.storageos.isilon.restapi.IsilonStoragePool)1 DummyDbClient (com.emc.storageos.util.DummyDbClient)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1