Search in sources :

Example 26 with IscsiBond

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

the class BackendIscsiBondStorageConnectionResourceTest method getIscsiBondWithNoMatchingStorages.

private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondWithNoMatchingStorages() {
    org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = new org.ovirt.engine.core.common.businessentities.IscsiBond();
    iscsiBond.setId(ISCSI_BOND_ID);
    iscsiBond.getStorageConnectionIds().add(GUIDS[0].toString());
    return iscsiBond;
}
Also used : IscsiBond(org.ovirt.engine.core.common.businessentities.IscsiBond) IscsiBond(org.ovirt.engine.core.common.businessentities.IscsiBond)

Example 27 with IscsiBond

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

the class BackendIscsiBondStorageConnectionResourceTest method getIscsiBond.

private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBond() {
    org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = new org.ovirt.engine.core.common.businessentities.IscsiBond();
    iscsiBond.setId(ISCSI_BOND_ID);
    return iscsiBond;
}
Also used : IscsiBond(org.ovirt.engine.core.common.businessentities.IscsiBond) IscsiBond(org.ovirt.engine.core.common.businessentities.IscsiBond)

Example 28 with IscsiBond

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

the class BackendIscsiBondStorageConnectionResourceTest method getIscsiBondContainingStorageConnection.

private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondContainingStorageConnection() {
    org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = new org.ovirt.engine.core.common.businessentities.IscsiBond();
    iscsiBond.setId(ISCSI_BOND_ID);
    iscsiBond.getStorageConnectionIds().add(STORAGE_CONNECTION_ID.toString());
    return iscsiBond;
}
Also used : IscsiBond(org.ovirt.engine.core.common.businessentities.IscsiBond) IscsiBond(org.ovirt.engine.core.common.businessentities.IscsiBond)

Example 29 with IscsiBond

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

the class BackendIscsiBondNetworkResourceTest method getIscsiBondContainingNetwork.

private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondContainingNetwork() {
    org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = new org.ovirt.engine.core.common.businessentities.IscsiBond();
    iscsiBond.setId(ISCSI_BOND_ID);
    iscsiBond.getNetworkIds().add(NETWORK_ID);
    return iscsiBond;
}
Also used : IscsiBond(org.ovirt.engine.core.common.businessentities.IscsiBond) IscsiBond(org.ovirt.engine.core.common.businessentities.IscsiBond)

Example 30 with IscsiBond

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

the class BackendIscsiBondNetworkResourceTest method getIscsiBondWithNoNetworks.

private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondWithNoNetworks() {
    org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = new org.ovirt.engine.core.common.businessentities.IscsiBond();
    iscsiBond.setId(ISCSI_BOND_ID);
    return iscsiBond;
}
Also used : IscsiBond(org.ovirt.engine.core.common.businessentities.IscsiBond) IscsiBond(org.ovirt.engine.core.common.businessentities.IscsiBond)

Aggregations

IscsiBond (org.ovirt.engine.core.common.businessentities.IscsiBond)36 ArrayList (java.util.ArrayList)13 Test (org.junit.Test)12 Guid (org.ovirt.engine.core.compat.Guid)9 ValidationResult (org.ovirt.engine.core.bll.ValidationResult)5 EditIscsiBondParameters (org.ovirt.engine.core.common.action.EditIscsiBondParameters)5 AbstractQueryTest (org.ovirt.engine.core.bll.AbstractQueryTest)4 StorageServerConnections (org.ovirt.engine.core.common.businessentities.StorageServerConnections)4 Network (org.ovirt.engine.core.common.businessentities.network.Network)4 NetworkCluster (org.ovirt.engine.core.common.businessentities.network.NetworkCluster)2 ConfirmationModel (org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel)2 ActionParametersBase (org.ovirt.engine.core.common.action.ActionParametersBase)1 RemoveIscsiBondParameters (org.ovirt.engine.core.common.action.RemoveIscsiBondParameters)1 StorageServerConnectionQueryParametersBase (org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase)1 UICommand (org.ovirt.engine.ui.uicommonweb.UICommand)1