Package org.apache.cloudstack.storage.datastore.util.NexentaStorAppliance

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


            "17\\n";

    @Test
    public void testCreateIscsiTarget() {
        final String targetName = NexentaStorAppliance.getTargetName("volume1");
        final CreateIscsiTargetRequestParams p = new CreateIscsiTargetRequestParams(targetName);

        appliance.createIscsiTarget(targetName);
        verify(client).execute(NmsResponse.class, "iscsitarget", "create_target", p);

        final String error = String.format(ISCSI_TARGET_ALREADY_CONFIGURED_ERROR, targetName);
View Full Code Here


    }

    @Test
    public void testCreateIscsiTargetFails() {
        final String targetName = NexentaStorAppliance.getTargetName("volume1");
        final CreateIscsiTargetRequestParams p = new CreateIscsiTargetRequestParams(targetName);
        exception.expect(CloudRuntimeException.class);
        exception.expectMessage("any exception");
        when(client.execute(NmsResponse.class, "iscsitarget", "create_target", p)).thenThrow(new CloudRuntimeException("any exception"));
        appliance.createIscsiTarget(targetName);
    }
View Full Code Here

TOP

Related Classes of org.apache.cloudstack.storage.datastore.util.NexentaStorAppliance.CreateIscsiTargetRequestParams

Copyright © 2018 www.massapicom. 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.