Search in sources :

Example 21 with Provider

use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.

the class BackendExternalProviderHelperTest method setUpProvider.

private Provider setUpProvider(Guid id) {
    Provider provider = mock(Provider.class);
    when(provider.getId()).thenReturn(id);
    return provider;
}
Also used : Provider(org.ovirt.engine.core.common.businessentities.Provider) ExternalProvider(org.ovirt.engine.api.model.ExternalProvider)

Example 22 with Provider

use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.

the class BackendOpenStackImageProvidersResourceTest method getEntity.

@Override
protected Provider getEntity(int index) {
    Provider provider = mock(Provider.class);
    when(provider.getId()).thenReturn(GUIDS[index]);
    when(provider.getName()).thenReturn(NAMES[index]);
    when(provider.getDescription()).thenReturn(DESCRIPTIONS[index]);
    return provider;
}
Also used : OpenStackImageProvider(org.ovirt.engine.api.model.OpenStackImageProvider) Provider(org.ovirt.engine.core.common.businessentities.Provider)

Example 23 with Provider

use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.

the class BackendOpenStackNetworkProviderResourceTest method getEntity.

@Override
protected Provider getEntity(int index) {
    Provider provider = mock(Provider.class);
    when(provider.getId()).thenReturn(GUIDS[index]);
    when(provider.getName()).thenReturn(NAMES[index]);
    when(provider.getDescription()).thenReturn(DESCRIPTIONS[index]);
    when(provider.getType()).thenReturn(ProviderType.OPENSTACK_NETWORK);
    return provider;
}
Also used : OpenStackNetworkProvider(org.ovirt.engine.api.model.OpenStackNetworkProvider) Provider(org.ovirt.engine.core.common.businessentities.Provider)

Example 24 with Provider

use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.

the class BackendOpenStackVolumeProviderResourceTest method getEntity.

@Override
protected Provider getEntity(int index) {
    Provider provider = mock(Provider.class);
    when(provider.getId()).thenReturn(GUIDS[index]);
    when(provider.getName()).thenReturn(NAMES[index]);
    when(provider.getDescription()).thenReturn(DESCRIPTIONS[index]);
    return provider;
}
Also used : Provider(org.ovirt.engine.core.common.businessentities.Provider) OpenStackVolumeProvider(org.ovirt.engine.api.model.OpenStackVolumeProvider)

Example 25 with Provider

use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.

the class BackendExternalComputeResourceResourceTest method getProvider.

private Provider getProvider() {
    Provider provider = mock(Provider.class);
    when(provider.getId()).thenReturn(GUIDS[0]);
    when(provider.getName()).thenReturn(NAMES[0]);
    return provider;
}
Also used : Provider(org.ovirt.engine.core.common.businessentities.Provider)

Aggregations

Provider (org.ovirt.engine.core.common.businessentities.Provider)63 ExternalHostProvider (org.ovirt.engine.api.model.ExternalHostProvider)10 ArrayList (java.util.ArrayList)7 ProviderQueryParameters (org.ovirt.engine.core.common.queries.ProviderQueryParameters)7 AsyncDataProvider (org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider)7 ProviderParameters (org.ovirt.engine.core.common.action.ProviderParameters)6 Test (org.junit.Test)5 VDS (org.ovirt.engine.core.common.businessentities.VDS)5 IdQueryParameters (org.ovirt.engine.core.common.queries.IdQueryParameters)5 Guid (org.ovirt.engine.core.compat.Guid)5 List (java.util.List)4 OpenStackNetworkProvider (org.ovirt.engine.api.model.OpenStackNetworkProvider)4 OpenStackVolumeProvider (org.ovirt.engine.api.model.OpenStackVolumeProvider)4 Cluster (org.ovirt.engine.core.common.businessentities.Cluster)4 ExternalDiscoveredHost (org.ovirt.engine.core.common.businessentities.ExternalDiscoveredHost)4 ExternalHostGroup (org.ovirt.engine.core.common.businessentities.ExternalHostGroup)4 QueryReturnValue (org.ovirt.engine.core.common.queries.QueryReturnValue)4 ExternalProvider (org.ovirt.engine.api.model.ExternalProvider)3 OpenstackNetworkProviderProperties (org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties)3 ApplicationMode (org.ovirt.engine.core.common.mode.ApplicationMode)3