Search in sources :

Example 6 with FileProperties

use of com.cloud.hypervisor.ovm3.objects.StoragePlugin.FileProperties in project cloudstack by apache.

the class StoragePluginTest method testStorageFileInfo.

@Test
public void testStorageFileInfo() throws Ovm3ResourceException {
    con.setResult(results.simpleResponseWrapWrapper(FILECREATEXML));
    FileProperties file = sPt.storagePluginGetFileInfo(FSMNTUUID, NFSHOST, FILE);
    file.getName();
    file.getUuid();
    file.getType();
    file.getSize();
}
Also used : FileProperties(com.cloud.hypervisor.ovm3.objects.StoragePlugin.FileProperties) Test(org.junit.Test)

Aggregations

FileProperties (com.cloud.hypervisor.ovm3.objects.StoragePlugin.FileProperties)6 Ovm3ResourceException (com.cloud.hypervisor.ovm3.objects.Ovm3ResourceException)3 StoragePlugin (com.cloud.hypervisor.ovm3.objects.StoragePlugin)3 Test (org.junit.Test)3 URISyntaxException (java.net.URISyntaxException)2 CreateAnswer (com.cloud.agent.api.storage.CreateAnswer)1 DataTO (com.cloud.agent.api.to.DataTO)1 StorageFilerTO (com.cloud.agent.api.to.StorageFilerTO)1 VolumeTO (com.cloud.agent.api.to.VolumeTO)1 Linux (com.cloud.hypervisor.ovm3.objects.Linux)1 GlobalLock (com.cloud.utils.db.GlobalLock)1 CloudRuntimeException (com.cloud.utils.exception.CloudRuntimeException)1 DiskProfile (com.cloud.vm.DiskProfile)1 File (java.io.File)1 URI (java.net.URI)1 ConfigurationException (javax.naming.ConfigurationException)1 CreateObjectAnswer (org.apache.cloudstack.storage.command.CreateObjectAnswer)1 VolumeObjectTO (org.apache.cloudstack.storage.to.VolumeObjectTO)1 XmlRpcException (org.apache.xmlrpc.XmlRpcException)1