Search in sources :

Example 1 with Glance

use of com.woorea.openstack.glance.Glance in project ovirt-engine by oVirt.

the class OpenStackImageProviderProxy method getClient.

@Override
protected Glance getClient() {
    if (client == null) {
        client = new Glance(getProvider().getUrl() + API_VERSION);
        client.setTokenProvider(getTokenProvider());
    }
    return client;
}
Also used : Glance(com.woorea.openstack.glance.Glance)

Example 2 with Glance

use of com.woorea.openstack.glance.Glance in project AJSC by att.

the class TestGlanceConnector method testGlanceConnector.

@Test
@Ignore
public void testGlanceConnector() throws ZoneException {
    OpenStackContext context = login();
    GlanceConnector connector = context.getGlanceConnector();
    assertNotNull(connector);
    Access access = connector.getAccess();
    assertNotNull(access);
    Glance client = connector.getClient();
    assertNotNull(client);
    logout(context);
}
Also used : OpenStackContext(com.att.cdp.openstack.OpenStackContext) Glance(com.woorea.openstack.glance.Glance) Access(com.woorea.openstack.keystone.model.Access) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

Glance (com.woorea.openstack.glance.Glance)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