Search in sources :

Example 1 with ScaleIORestClientFactory

use of com.emc.storageos.scaleio.api.restapi.ScaleIORestClientFactory in project coprhd-controller by CoprHD.

the class ScaleIORestClientTest method setUp.

@BeforeClass
public static void setUp() {
    ScaleIORestClientFactory factory = new ScaleIORestClientFactory();
    factory.setMaxConnections(100);
    factory.setMaxConnectionsPerHost(100);
    factory.setNeedCertificateManager(false);
    factory.setSocketConnectionTimeoutMs(3600000);
    factory.setConnectionTimeoutMs(3600000);
    factory.init();
    String endpoint = ScaleIOConstants.getAPIBaseURI(HOST, PORT);
    restClient = (ScaleIORestClient) factory.getRESTClient(URI.create(endpoint), USER, PASSWORD, true);
}
Also used : ScaleIORestClientFactory(com.emc.storageos.scaleio.api.restapi.ScaleIORestClientFactory) BeforeClass(org.junit.BeforeClass)

Example 2 with ScaleIORestClientFactory

use of com.emc.storageos.scaleio.api.restapi.ScaleIORestClientFactory in project coprhd-controller by CoprHD.

the class StorageSystemDataCollectionServiceTest method setUp.

@BeforeClass
public static void setUp() {
    service = new StorageSystemDataCollectionService();
    factory = new ScaleIORestClientFactory();
    factory.setMaxConnections(100);
    factory.setMaxConnectionsPerHost(100);
    factory.setNeedCertificateManager(false);
    factory.setSocketConnectionTimeoutMs(3600000);
    factory.setConnectionTimeoutMs(3600000);
    factory.init();
}
Also used : StorageSystemDataCollectionService(com.emc.storageos.api.service.impl.resource.StorageSystemDataCollectionService) ScaleIORestClientFactory(com.emc.storageos.scaleio.api.restapi.ScaleIORestClientFactory) BeforeClass(org.junit.BeforeClass)

Aggregations

ScaleIORestClientFactory (com.emc.storageos.scaleio.api.restapi.ScaleIORestClientFactory)2 BeforeClass (org.junit.BeforeClass)2 StorageSystemDataCollectionService (com.emc.storageos.api.service.impl.resource.StorageSystemDataCollectionService)1