Java Code Examples for org.ops4j.pax.exam.karaf.options.KarafDistributionOption#editConfigurationFilePut()

The following examples show how to use org.ops4j.pax.exam.karaf.options.KarafDistributionOption#editConfigurationFilePut() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JmsAppenderTest.java    From karaf-decanter with Apache License 2.0 6 votes vote down vote up
@Configuration
public Option[] config() {
    String karafVersion = MavenUtils.getArtifactVersion("org.apache.karaf", "apache-karaf");
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version")),
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "activemq.version", System.getProperty("activemq.version")),
            KarafDistributionOption.editConfigurationFilePut("etc/org.apache.karaf.features.cfg", "featuresRepositories",
                    "mvn:org.apache.karaf.features/framework/" + karafVersion + "/xml/features," +
                            "mvn:org.apache.karaf.features/spring/" + karafVersion + "/xml/features," +
                            "mvn:org.apache.karaf.features/spring-legacy/" + karafVersion + "/xml/features," +
                            "mvn:org.apache.karaf.features/enterprise/" + karafVersion + "/xml/features," +
                            "mvn:org.apache.karaf.features/enterprise-legacy/" + karafVersion + "/xml/features," +
                            "mvn:org.apache.karaf.features/standard/" + karafVersion + "/xml/features," +
                            "mvn:org.apache.activemq/activemq-karaf/" + System.getProperty("activemq.version") + "/xml/features," +
                            "mvn:org.apache.karaf.decanter/apache-karaf-decanter/" + System.getProperty("decanter.version") + "/xml/features"),
            KarafDistributionOption.editConfigurationFileExtend("etc/org.apache.karaf.features.cfg", "featuresBoot", "aries-blueprint,activemq-broker-noweb"),
            KarafDistributionOption.replaceConfigurationFile("etc/activemq.xml", getConfigFile("/etc/activemq.xml"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 2
Source File: MqttCollectorTest.java    From karaf-decanter with Apache License 2.0 6 votes vote down vote up
@Configuration
public Option[] config() {
    String karafVersion = MavenUtils.getArtifactVersion("org.apache.karaf", "apache-karaf");
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version")),
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "activemq.version", System.getProperty("activemq.version")),
            KarafDistributionOption.editConfigurationFilePut("etc/org.apache.karaf.features.cfg", "featuresRepositories",
                    "mvn:org.apache.karaf.features/framework/" + karafVersion + "/xml/features," +
                            "mvn:org.apache.karaf.features/spring/" + karafVersion + "/xml/features," +
                            "mvn:org.apache.karaf.features/spring-legacy/" + karafVersion + "/xml/features," +
                            "mvn:org.apache.karaf.features/enterprise/" + karafVersion + "/xml/features," +
                            "mvn:org.apache.karaf.features/enterprise-legacy/" + karafVersion + "/xml/features," +
                            "mvn:org.apache.karaf.features/standard/" + karafVersion + "/xml/features," +
                            "mvn:org.apache.activemq/activemq-karaf/" + System.getProperty("activemq.version") + "/xml/features," +
                            "mvn:org.apache.karaf.decanter/apache-karaf-decanter/" + System.getProperty("decanter.version") + "/xml/features"),
            KarafDistributionOption.editConfigurationFileExtend("etc/org.apache.karaf.features.cfg", "featuresBoot", "aries-blueprint,activemq-broker-noweb"),
            KarafDistributionOption.replaceConfigurationFile("etc/activemq.xml", getConfigFile("/etc/activemq.xml")),
            mavenBundle().groupId("org.eclipse.paho").artifactId("org.eclipse.paho.client.mqttv3").version(System.getProperty("paho.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 3
Source File: FileCollectorTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/org.apache.karaf.decanter.collector.file-test.cfg", "type", "file-test"),
            KarafDistributionOption.editConfigurationFilePut("etc/org.apache.karaf.decanter.collector.file-test.cfg", "path", "test.log"),
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 4
Source File: InfluxdbAppenderTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 5
Source File: ElasticsearchAppenderTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 6
Source File: WebsocketAppenderTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    String karafVersion = MavenUtils.getArtifactVersion("org.apache.karaf", "apache-karaf");
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version")),
            KarafDistributionOption.features("mvn:org.apache.karaf.features/standard/" + karafVersion + "/xml/features", "http", "jetty")
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 7
Source File: KafkaAppenderTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 8
Source File: SocketCollectorTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 9
Source File: Log4jSocketCollectorTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 10
Source File: JdbcAppenderTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version")),
            KarafDistributionOption.editConfigurationFilePut("etc/org.ops4j.datasource-decanter.cfg", "osgi.jdbc.driver.name", "derby"),
            KarafDistributionOption.editConfigurationFilePut("etc/org.ops4j.datasource-decanter.cfg", "osgi.jndi.service.name", "jdbc/decanter"),
            KarafDistributionOption.editConfigurationFilePut("etc/org.ops4j.datasource-decanter.cfg", "osgi.jdbc.driver.class", "org.apache.derby.jdbc.EmbeddedDriver"),
            KarafDistributionOption.editConfigurationFilePut("etc/org.ops4j.datasource-decanter.cfg", "url", "jdbc:derby:data/decanter/test;create=true"),
            KarafDistributionOption.editConfigurationFilePut("etc/org.ops4j.datasource-decanter.cfg", "user", "sa"),
            KarafDistributionOption.editConfigurationFilePut("etc/org.ops4j.datasource-decanter.cfg", "password", "")
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 11
Source File: JdbcCollectorTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version")),
            KarafDistributionOption.editConfigurationFilePut("etc/org.ops4j.datasource-derby.cfg", "osgi.jdbc.driver.name", "derby"),
            KarafDistributionOption.editConfigurationFilePut("etc/org.ops4j.datasource-derby.cfg", "osgi.jndi.service.name", "derby"),
            KarafDistributionOption.editConfigurationFilePut("etc/org.ops4j.datasource-derby.cfg", "osgi.jdbc.driver.class", "org.apache.derby.jdbc.EmbeddedDriver"),
            KarafDistributionOption.editConfigurationFilePut("etc/org.ops4j.datasource-derby.cfg", "url", "jdbc:derby:data/derby/test;create=true"),
            KarafDistributionOption.editConfigurationFilePut("etc/org.ops4j.datasource-derby.cfg", "user", "sa"),
            KarafDistributionOption.editConfigurationFilePut("etc/org.ops4j.datasource-derby.cfg", "password", ""),
            KarafDistributionOption.editConfigurationFilePut("etc/org.apache.karaf.decanter.collector.jdbc.cfg", "dataSource.target", "(osgi.jndi.service.name=derby)"),
            KarafDistributionOption.editConfigurationFilePut("etc/org.apache.karaf.decanter.collector.jdbc.cfg", "query", "select * from TEST")
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 12
Source File: LogCollectorTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 13
Source File: SocketAppenderTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 14
Source File: SoapCollectorTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    String karafVersion = MavenUtils.getArtifactVersion("org.apache.karaf", "apache-karaf");
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version")),
            KarafDistributionOption.features("mvn:org.apache.karaf.features/standard/" + karafVersion + "/xml/features", "http")
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 15
Source File: EventAdminCollectorTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 16
Source File: RestServletCollectorTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 17
Source File: MongodbAppenderTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 18
Source File: RestAppenderTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    String karafVersion = MavenUtils.getArtifactVersion("org.apache.karaf", "apache-karaf");
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version")),
            KarafDistributionOption.features("mvn:org.apache.karaf.features/standard/" + karafVersion + "/xml/features", "http")
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 19
Source File: KafkaCollectorTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}
 
Example 20
Source File: FileAppenderTest.java    From karaf-decanter with Apache License 2.0 5 votes vote down vote up
@Configuration
public Option[] config() {
    Option[] options = new Option[]{
            KarafDistributionOption.editConfigurationFilePut("etc/system.properties", "decanter.version", System.getProperty("decanter.version"))
    };
    return Stream.of(super.config(), options).flatMap(Stream::of).toArray(Option[]::new);
}