Search in sources :

Example 1 with Cinder

use of com.woorea.openstack.cinder.Cinder in project ovirt-engine by oVirt.

the class OpenStackVolumeProviderProxy method getClient.

protected Cinder getClient(String tenantId) {
    if (client == null) {
        client = new Cinder(getProvider().getUrl().concat(API_VERSION).concat(tenantId));
        client.setTokenProvider(getTokenProvider());
    }
    return client;
}
Also used : Cinder(com.woorea.openstack.cinder.Cinder)

Example 2 with Cinder

use of com.woorea.openstack.cinder.Cinder in project AJSC by att.

the class TestCinderConnector method testCinderConnector.

@Test
@Ignore
public void testCinderConnector() throws ZoneException {
    OpenStackContext context = login();
    CinderConnector connector = context.getCinderConnector();
    assertNotNull(connector);
    Access access = connector.getAccess();
    assertNotNull(access);
    Cinder client = connector.getClient();
    assertNotNull(client);
    logout(context);
}
Also used : OpenStackContext(com.att.cdp.openstack.OpenStackContext) Cinder(com.woorea.openstack.cinder.Cinder) Access(com.woorea.openstack.keystone.model.Access) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

Cinder (com.woorea.openstack.cinder.Cinder)2 OpenStackContext (com.att.cdp.openstack.OpenStackContext)1 Access (com.woorea.openstack.keystone.model.Access)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1