Search in sources :

Example 16 with LogicalUnit

use of org.ovirt.engine.api.model.LogicalUnit in project ovirt-engine by oVirt.

the class StorageLogicalUnitMapperTest method postPopulate.

@Override
protected HostStorage postPopulate(HostStorage from) {
    from.setType(MappingTestHelper.shuffle(StorageType.class));
    LogicalUnit unit = new LogicalUnit();
    unit.setId(from.getId());
    from.getLogicalUnits().unsetLogicalUnits();
    from.getLogicalUnits().getLogicalUnits().add(unit);
    return from;
}
Also used : StorageType(org.ovirt.engine.api.model.StorageType) LogicalUnit(org.ovirt.engine.api.model.LogicalUnit)

Aggregations

LogicalUnit (org.ovirt.engine.api.model.LogicalUnit)16 LogicalUnits (org.ovirt.engine.api.model.LogicalUnits)7 Test (org.junit.Test)4 LUNs (org.ovirt.engine.core.common.businessentities.storage.LUNs)4 Action (org.ovirt.engine.api.model.Action)3 VolumeGroup (org.ovirt.engine.api.model.VolumeGroup)3 ArrayList (java.util.ArrayList)2 HostStorage (org.ovirt.engine.api.model.HostStorage)2 StorageDomain (org.ovirt.engine.api.model.StorageDomain)2 ExtendSANStorageDomainParameters (org.ovirt.engine.core.common.action.ExtendSANStorageDomainParameters)2 ReduceSANStorageDomainDevicesCommandParameters (org.ovirt.engine.core.common.action.ReduceSANStorageDomainDevicesCommandParameters)2 StorageServerConnections (org.ovirt.engine.core.common.businessentities.StorageServerConnections)2 HashSet (java.util.HashSet)1 LinkedList (java.util.LinkedList)1 Response (javax.ws.rs.core.Response)1 Disk (org.ovirt.engine.api.model.Disk)1 Host (org.ovirt.engine.api.model.Host)1 IscsiDetailss (org.ovirt.engine.api.model.IscsiDetailss)1 StorageType (org.ovirt.engine.api.model.StorageType)1