Remove tag latest from docker image, adapt VES to the new location of file ves-dmaap... 64/122064/1 ves_synchronous
authorMaciej Malewski <maciej.malewski@nokia.com>
Mon, 21 Jun 2021 07:31:58 +0000 (09:31 +0200)
committerMaciej Malewski <maciej.malewski@nokia.com>
Mon, 21 Jun 2021 07:31:58 +0000 (09:31 +0200)
Issue-ID: DCAEGEN2-1483
Signed-off-by: Maciej Malewski <maciej.malewski@nokia.com>
Change-Id: Ib6b428c974ecec17ebc0722f3e236ee2b05c5be6

README.md
etc/collector.properties
pom.xml
src/main/java/org/onap/dcae/ApplicationSettings.java
src/test/java/org/onap/dcae/ApplicationSettingsTest.java

index a1733a2..0a2d68d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -154,6 +154,15 @@ To fetch configuration from Consul, VES collector uses CBS client from DCAE SDK.
 
 Sample configuration of VESCollector K-V store can be found under /dpo/data-formats/ConsulConfig.json
 
+### How to send event locally
+
+1. In /etc/hosts add: 127.0.0.1 onap-dmaap
+2. Go into: ./src/test/resources/dmaap-msg-router
+3. Run: docker-compose -f message-router-compose.yml up -d
+4. Run ves application
+5. Now you can send events to ves
+6. Check topics on message-router: curl http://127.0.0.1:3904/topics
+
 
 ### Testing
 
index 75ebf76..e810761 100755 (executable)
@@ -63,7 +63,7 @@ event.externalSchema.stndDefinedDataPath=$.event.stndDefinedFields.data
 \r
 ## List all streamid per domain to be supported. The streamid should match to channel name on dmaapfile\r
 collector.dmaap.streamid=fault=ves-fault|syslog=ves-syslog|heartbeat=ves-heartbeat|measurementsForVfScaling=ves-measurement|mobileFlow=ves-mobileflow|other=ves-other|stateChange=ves-statechange|thresholdCrossingAlert=ves-thresholdCrossingAlert|voiceQuality=ves-voicequality|sipSignaling=ves-sipsignaling|notification=ves-notification|pnfRegistration=ves-pnfRegistration|3GPP-FaultSupervision=ves-3gpp-fault-supervision|3GPP-Heartbeat=ves-3gpp-heartbeat|3GPP-Provisioning=ves-3gpp-provisioning|3GPP-PerformanceAssurance=ves-3gpp-performance-assurance\r
-collector.dmaapfile=./dpo/data-formats/ves-dmaap-config.json\r
+collector.dmaapfile=./etc/ves-dmaap-config.json\r
 \r
 ## Path to the file containing description of api versions\r
 collector.description.api.version.location=etc/api_version_description.json\r
diff --git a/pom.xml b/pom.xml
index 665c5b3..dae4fbd 100644 (file)
--- a/pom.xml
+++ b/pom.xml
           <imageTags>\r
             <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>\r
             <imageTag>${project.version}</imageTag>\r
-            <imageTag>latest</imageTag>\r
           </imageTags>\r
           <baseImage>openjdk:11-jre-slim</baseImage>\r
           <user>vescollector</user>\r
index 7b8c3ff..0acbbe2 100644 (file)
@@ -161,7 +161,7 @@ public class ApplicationSettings {
     }
 
     public String dMaaPConfigurationFileLocation() {
-        return prependWithUserDirOnRelative(properties.getString("collector.dmaapfile", "dpo/data-formats/ves-dmaap-config.json"));
+        return prependWithUserDirOnRelative(properties.getString("collector.dmaapfile", "etc/ves-dmaap-config.json"));
     }
 
     public String certSubjectMatcher(){
index 7acfdc2..d587761 100644 (file)
@@ -385,11 +385,11 @@ public class ApplicationSettingsTest {
     public void shouldReturnConfigurationFileLocation() throws IOException {
         // when
         String configurationFileLocation = fromTemporaryConfiguration(
-                "collector.dmaapfile=/somewhere/data-formats/ves-dmaap-config.json")
+                "collector.dmaapfile=/somewhere/etc/ves-dmaap-config.json")
                 .dMaaPConfigurationFileLocation();
 
         // then
-        assertEquals(sanitizePath("/somewhere/data-formats/ves-dmaap-config.json"), configurationFileLocation);
+        assertEquals(sanitizePath("/somewhere/etc/ves-dmaap-config.json"), configurationFileLocation);
     }
 
     @Test
@@ -399,7 +399,7 @@ public class ApplicationSettingsTest {
                 .dMaaPConfigurationFileLocation();
 
         // then
-        assertEquals(sanitizePath("dpo/data-formats/ves-dmaap-config.json"), configurationFileLocation);
+        assertEquals(sanitizePath("etc/ves-dmaap-config.json"), configurationFileLocation);
     }
 
     @Test