- To update aai-resources with new snapshot version(1.17.0-SNAPSHOT) of aai-common
Issue-ID: AAI-4211
Change-Id: Ia0c4cf60935c7202fcfb7a2f4130796a7c98fd64
Signed-off-by: mithun.menon@t-systems.com <mithun.menon@t-systems.com>
<parent>
<groupId>org.onap.aai.resources</groupId>
<artifactId>resources</artifactId>
- <version>1.16.1-SNAPSHOT</version>
+ <version>1.17.0-SNAPSHOT</version>
</parent>
<properties>
<java.version>17</java.version>
# Location of the cadi properties file should be specified here
aaf.cadi.file=${server.local.startpath}/cadi.properties
-delta.events.enabled=false
-
# Specifies what type of request should it be: one-way-ssl, two-way-ssl, no-auth
validation.service.client=one-way-ssl
# Base url for the validation service
aai.basic-auth.enabled=true
aai.basic-auth.users[0].username=AAI
aai.basic-auth.users[0].password=AAI
+
+# Delta Events Filters
+# These are used to make decisions :-
+# - if delta events should be sent
+# - what delta events should be sent
+
+#delta events enabling flag
+delta.events.enabled=false
+#Node types to be present in the delta events
+delta.events.node-types=
+#Delta event configurable topic name
+delta.events.topic.name=DELTA
+#Relationship delta inclusion flag
+delta.events.relationship-enabled=true
+#Actions for which events should be sent
+delta.events.actions=CREATE,UPDATE,DELETE
\ No newline at end of file
import org.onap.aai.introspection.MoxyLoader;
import org.onap.aai.nodes.NodeIngestor;
import org.onap.aai.rest.db.HttpEntry;
+import org.onap.aai.rest.notification.DeltaEventsService;
+import org.onap.aai.util.delta.DeltaEventsConfig;
import org.onap.aai.rest.notification.NotificationService;
import org.onap.aai.serialization.db.EdgeSerializer;
import org.onap.aai.setup.AAIConfigTranslator;
import org.onap.aai.setup.SchemaVersion;
import org.onap.aai.setup.SchemaVersions;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
@SpringJUnitConfig(
classes = {ConfigConfiguration.class, AAIConfigTranslator.class, NodeIngestor.class, EdgeIngestor.class,
EdgeSerializer.class, SpringContextAware.class, IntrospectionConfig.class,
- XmlFormatTransformerConfiguration.class, RestBeanConfig.class, LoaderFactory.class, NotificationService.class, KafkaConfig.class})
+ XmlFormatTransformerConfiguration.class, RestBeanConfig.class, LoaderFactory.class, NotificationService.class, KafkaConfig.class, DeltaEventsService.class})
@TestPropertySource(
properties = {"schema.uri.base.path = /aai",
"schema.ingest.file = src/test/resources/application-test.properties"})
+@EnableConfigurationProperties(DeltaEventsConfig.class)
public abstract class AAISetup {
@Autowired
<parent>
<groupId>org.onap.aai.aai-common</groupId>
<artifactId>aai-parent</artifactId>
- <version>1.16.1</version>
+ <version>1.17.0-SNAPSHOT</version>
</parent>
<groupId>org.onap.aai.resources</groupId>
<artifactId>resources</artifactId>
- <version>1.16.1-SNAPSHOT</version>
+ <version>1.17.0-SNAPSHOT</version>
<name>aai-resources</name>
<packaging>pom</packaging>
<modules>
<staging.path>/content/repositories/staging/</staging.path>
<!-- GMaven plugin uses this property to figure out the name of the docker tag -->
<aai.project.version>${project.version}</aai.project.version>
- <aai.common.version>1.16.1</aai.common.version>
- <aai.schema.service.version>1.13.1-SNAPSHOT</aai.schema.service.version>
+ <aai.common.version>1.17.0-SNAPSHOT</aai.common.version>
+ <aai.schema.service.version>1.13.1</aai.schema.service.version>
<sonar.scanner.version>3.11.0.3922</sonar.scanner.version>
</properties>
<build>