Examples of LuParams


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

            "zvol '%s':\\n stmfadm: filename /dev/zvol/rdsk/%s: in use\\n";

    @Test
    public void testCreateLu() {
        final String luName = appliance.getVolumeName("volume1");
        final LuParams p = new LuParams();

        appliance.createLu(luName);
        verify(client).execute(NmsResponse.class, "scsidisk", "create_lu", luName, p);

        String error = String.format(CREATE_LU_IN_USE_ERROR, luName, luName);
View Full Code Here

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

    }

    @Test
    public void testCreateLuFails() {
        final String luName = appliance.getVolumeName("volume1");
        when(client.execute(NmsResponse.class, "scsidisk", "create_lu", luName, new LuParams())).thenThrow(new CloudRuntimeException("any exception"));
        exception.expect(CloudRuntimeException.class);
        exception.expectMessage("any exception");
        appliance.createLu(luName);
    }
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.