diff options
author | michaere <michaere@amdocs.com> | 2018-08-06 11:40:10 +0100 |
---|---|---|
committer | michaere <michaere@amdocs.com> | 2018-08-06 11:52:55 +0100 |
commit | 2a4ac18fe8bd188c153944d8cc0e2c3ebe8558ce (patch) | |
tree | 54b3a5c8df6520c09c35ccf713aec3bd674bf2ee /spike-service/dynamic/conf/spike-beans.xml | |
parent | 8ef094da9c1ed7e03a3809acc8a6e294a39aa62b (diff) |
Add test-config for spike
Including beans.xml and app config and referenced in start shell and
docker compose yaml.
Issue-ID: AAI-1441
Change-Id: I77dfa98f36a6eea710775477c2cf03797c8dd8dd
Signed-off-by: michaere <michaere@amdocs.com>
Diffstat (limited to 'spike-service/dynamic/conf/spike-beans.xml')
-rw-r--r-- | spike-service/dynamic/conf/spike-beans.xml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/spike-service/dynamic/conf/spike-beans.xml b/spike-service/dynamic/conf/spike-beans.xml new file mode 100644 index 0000000..befeac2 --- /dev/null +++ b/spike-service/dynamic/conf/spike-beans.xml @@ -0,0 +1,49 @@ +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/util
+ http://www.springframework.org/schema/util/spring-util.xsd
+ ">
+
+ <!--
+ <bean id="eventConsumer" class="com.att.ecomp.event.client.KafkaEventConsumer" >
+ <constructor-arg name="topic" value="mytopic" />
+ <constructor-arg name="groupId" value="mygroupId" />
+ <constructor-arg name="hosts" ref="hosts" />
+ </bean>
+ -->
+
+ <bean id="eventPublisher" class="org.onap.aai.event.client.DMaaPEventPublisher">
+ <constructor-arg name="host" value="mr.api.simpledemo.openecomp.org:3904" />
+ <constructor-arg name="topic" value="SpikeRawEventsOnap" />
+ <constructor-arg name="username" value="test" />
+ <constructor-arg name="password" value="test" />
+ <constructor-arg name="maxBatchSize" value="100" />
+ <constructor-arg name="maxAgeMs" value="250" />
+ <constructor-arg name="delayBetweenBatchesMs" value="50" />
+ <constructor-arg name="transportType" value="HTTPAUTH" />
+ </bean>
+
+ <bean id="eventConsumer" class="org.onap.aai.event.client.DMaaPEventConsumer">
+ <constructor-arg name="host" value="mr.api.simpledemo.openecomp.org:3904" />
+ <constructor-arg name="topic" value="champRawEventsOnap" />
+ <constructor-arg name="username" value="test" />
+ <constructor-arg name="password" value="test" />
+ <constructor-arg name="consumerGroup" value="spike-onap" />
+ <constructor-arg name="consumerId" value="spike-onap" />
+ <constructor-arg name="timeoutMs" value="1000" />
+ <constructor-arg name="messageLimit" value="100" />
+ <constructor-arg name="transportType" value="HTTPAUTH" />
+ <constructor-arg name="protocol" value="http" />
+ <constructor-arg name="filter">
+ <null />
+ </constructor-arg>
+ </bean>
+
+ <bean id="spikeService" class="org.onap.aai.spike.service.SpikeService" init-method="startup">
+ <constructor-arg ref="eventConsumer" />
+ <constructor-arg ref="eventPublisher" />
+ </bean>
+</beans>
\ No newline at end of file |