use of org.ovirt.engine.core.common.businessentities.StorageServerConnections in project ovirt-engine by oVirt.
the class ConnectStorageToVdsCommandTest method createConnection.
private StorageServerConnections createConnection(StorageType storageType, String mountOptions) {
StorageServerConnections conn = new StorageServerConnections();
conn.setStorageType(storageType);
conn.setMountOptions(mountOptions);
return conn;
}
use of org.ovirt.engine.core.common.businessentities.StorageServerConnections in project ovirt-engine by oVirt.
the class RemoveStorageServerConnectionCommandTest method populateBasicConnectionDetails.
private static StorageServerConnections populateBasicConnectionDetails(Guid id, String connection, StorageType type) {
StorageServerConnections connectionDetails = new StorageServerConnections();
connectionDetails.setId(id.toString());
connectionDetails.setConnection(connection);
connectionDetails.setStorageType(type);
return connectionDetails;
}
use of org.ovirt.engine.core.common.businessentities.StorageServerConnections in project ovirt-engine by oVirt.
the class RemoveStorageServerConnectionCommandTest method createNFSConnection.
private static StorageServerConnections createNFSConnection(String connection, StorageType type, NfsVersion version, int timeout, int retrans) {
Guid id = Guid.newGuid();
StorageServerConnections connectionDetails = populateBasicConnectionDetails(id, connection, type);
connectionDetails.setNfsVersion(version);
connectionDetails.setNfsTimeo((short) timeout);
connectionDetails.setNfsRetrans((short) retrans);
return connectionDetails;
}
use of org.ovirt.engine.core.common.businessentities.StorageServerConnections in project ovirt-engine by oVirt.
the class RemoveStorageServerConnectionCommandTest method createIscsiConnection.
private static StorageServerConnections createIscsiConnection(String connection, StorageType type, String iqn, String userName, String password, String portal) {
Guid id = Guid.newGuid();
StorageServerConnections connectionDetails = populateBasicConnectionDetails(id, connection, type);
connectionDetails.setIqn(iqn);
connectionDetails.setUserName(userName);
connectionDetails.setPassword(password);
connectionDetails.setPortal(portal);
return connectionDetails;
}
use of org.ovirt.engine.core.common.businessentities.StorageServerConnections in project ovirt-engine by oVirt.
the class StorageServerConnectionTestCommon method testISCSIEmptyIqn.
@Test
public void testISCSIEmptyIqn() {
StorageServerConnections newISCSIConnection = createISCSIConnection("10.35.16.25", StorageType.ISCSI, "", "3650", "user1", "mypassword123");
parameters.setStorageServerConnection(newISCSIConnection);
parameters.setVdsId(Guid.Empty);
ValidateTestUtils.runAndAssertValidateFailure(command, EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_IQN);
}
Aggregations