Examples of PoolTemplate


Examples of com.axemblr.provisionr.core.templates.PoolTemplate

        command.execute(session);
    }

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

        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

Examples of com.axemblr.provisionr.core.templates.PoolTemplate

        final Software software = Software.builder()
            .baseOperatingSystem("ubuntu-12.04")
            .file("http://axemblr.com", destinationPath)
            .createSoftware();

        PoolTemplate jenkins = XmlTemplate.newXmlTemplate(Resources.toString(Resources
            .getResource(PoolTemplate.class, DEFAULT_JENKINS_TEMPLATE_PATH), Charsets.UTF_8));

        final Pool pool = jenkins.apply(Pool.builder()
            .provider(provider)
            .network(network)
            .adminAccess(adminAccess)
            .software(software)
            .hardware(hardware)
View Full Code Here

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

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

        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
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.