Package org.apache.provisionr.core.templates

Examples of org.apache.provisionr.core.templates.PoolTemplate


        final Software software = Software.builder()
            .imageId("default")
            .file("http://provisionr.incubator.apache.org", destinationPath)
            .createSoftware();

        PoolTemplate template = getPoolTemplateWithId(TEST_POOL_TEMPLATE, 5000);
        final Pool pool = template.apply(Pool.builder()
            .provider(provider)
            .network(network)
            .adminAccess(adminAccess)
            .software(software)
            .hardware(hardware)
View Full Code Here


        command.execute(session);
    }

    @Test
    public void testCreatePoolWithTemplate() {
        final PoolTemplate template = XmlTemplate.newXmlTemplate(readDefaultTemplate("test-1"));

        CreatePoolCommand command = newPoolCommandWithMockedAdminAccess(template);

        command.setId("service");
        command.setKey("key");
        command.setTemplate(template.getId());

        Provisionr service = mock(Provisionr.class);
        Provider provider = newProviderMockWithBuilder();
        when(service.getDefaultProvider()).thenReturn(Optional.of(provider));
View Full Code Here

TOP

Related Classes of org.apache.provisionr.core.templates.PoolTemplate

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.