Package org.apache.provisionr.core.activities

Examples of org.apache.provisionr.core.activities.InstallRepositories


            .createRepository();

        Pool pool = mock(Pool.class);
        when(pool.getSoftware()).thenReturn(Software.builder().repository(repository).createSoftware());

        PuppetActivity activity = new InstallRepositories();
        String content = activity.createPuppetScript(pool, null);

        assertThat(content).contains("apt::repository { \"bigtop\":\n" +
            "  content => \"deb http://bigtop.s3.amazonaws.com/releases/0.5.0/ubuntu/lucid/x86_64  bigtop contrib\\n\",\n" +
            "  key => \"-----BEGIN PGP PUBLIC KEY BLOCK-----\\nVersion: GnuPG v1.4.10 (GNU/Linux)\\n\\n[....]\"\n" +
            "}");
View Full Code Here

TOP

Related Classes of org.apache.provisionr.core.activities.InstallRepositories

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.