Examples of MappingEntry


Examples of org.apache.cloudstack.storage.datastore.util.NexentaStorAppliance.MappingEntry

    @Test
    public void testAddLuMappingEntry() {
        final String luName = appliance.getVolumeName("volume1");
        final String targetGroupName = NexentaStorAppliance.getTargetGroupName("volume1");
        final MappingEntry mappingEntry = new MappingEntry(targetGroupName, "0");
        appliance.addLuMappingEntry(luName, targetGroupName);
        verify(client).execute(AddMappingEntryNmsResponse.class, "scsidisk", "add_lun_mapping_entry", luName, mappingEntry);

        String error = String.format(ADD_LUN_MAPPING_ENTRY_ERROR, luName);
        when(client.execute(AddMappingEntryNmsResponse.class, "scsidisk", "add_lun_mapping_entry", luName, mappingEntry)).thenThrow(new CloudRuntimeException(error));
View Full Code Here

Examples of org.apache.cloudstack.storage.datastore.util.NexentaStorAppliance.MappingEntry

    @Test
    public void testAddLuMappingEntryTest() {
        final String luName = appliance.getVolumeName("volume1");
        final String targetGroupName = NexentaStorAppliance.getTargetGroupName("volume1");
        final MappingEntry mappingEntry = new MappingEntry(targetGroupName, "0");
        when(client.execute(AddMappingEntryNmsResponse.class, "scsidisk", "add_lun_mapping_entry", luName, mappingEntry)).thenThrow(new CloudRuntimeException("any exception"));
        exception.expect(CloudRuntimeException.class);
        exception.expectMessage("any exception");
        appliance.addLuMappingEntry(luName, targetGroupName);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.