modify the configuration in consul for dfc 21/91621/1
authorYongchaoWu <yongchao.wu@est.tech>
Wed, 17 Jul 2019 17:15:59 +0000 (17:15 +0000)
committerYongchaoWu <yongchao.wu@est.tech>
Wed, 17 Jul 2019 17:15:59 +0000 (17:15 +0000)
modify the configuration in consul in order to support dfc
to fetch the merged configuration

Issue-ID: INT-1155
Change-Id: I6d73987183851ed38225796c9f426a1010376fd3
Signed-off-by: YongchaoWu <yongchao.wu@est.tech>
test/mocks/datafilecollector-testharness/simulator-group/consul/c12_feed1_PM.json
test/mocks/datafilecollector-testharness/simulator-group/consul/c12_feed1_PM_feed2_CTR.json
test/mocks/datafilecollector-testharness/simulator-group/consul/c12_feed2_CTR.json
test/mocks/datafilecollector-testharness/simulator-group/consul/c12_feed2_CTR_feed3_LOG_TEMP.json
test/mocks/datafilecollector-testharness/simulator-group/consul/c12_feed2_PM.json
test/mocks/datafilecollector-testharness/simulator-group/consul/c12_feed3_PM_CTR.json
test/mocks/datafilecollector-testharness/simulator-group/consul/c13_feed2_CTR.json
test/mocks/datafilecollector-testharness/simulator-group/consul/c14_feed3_LOG.json
test/mocks/datafilecollector-testharness/simulator-group/consul/c15_feed1_PM_feed4_TEST.json
test/mocks/datafilecollector-testharness/simulator-group/consul/c16_feed4_TEST_feed5_TEMP.json

index 282085c..29acb16 100644 (file)
@@ -1,23 +1,32 @@
 {
-   "dmaap.ftpesConfig.keyCert":"config/dfc.jks",
-   "dmaap.ftpesConfig.keyPassword":"secret",
-   "dmaap.ftpesConfig.trustedCa":"config/ftp.jks",
-   "dmaap.ftpesConfig.trustedCaPassword":"secret",
-   "dmaap.security.trustStorePath":"change it",
-   "dmaap.security.trustStorePasswordPath":"trustStorePasswordPath",
-   "dmaap.security.keyStorePath":"keyStorePath",
-   "dmaap.security.keyStorePasswordPath":"change it",
-   "dmaap.security.enableDmaapCertAuth":"false",
-   "dmaap.dmaapProducerConfiguration" : {
-         "changeIdentifier":"PM_MEAS_FILES",
-         "feedName":"feed01"
-    },
-    "streams_subscribes":{
-      "dmaap_subscriber":{
-         "dmmap_info":{
-            "topic_url":"http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12"
-         },
-         "type":"message_router"
+  "dmaap.ftpesConfig.keyCert":"config/dfc.jks",
+  "dmaap.ftpesConfig.keyPassword":"secret",
+  "dmaap.ftpesConfig.trustedCa":"config/ftp.jks",
+  "dmaap.ftpesConfig.trustedCaPassword":"secret",
+  "dmaap.security.trustStorePath":"change it",
+  "dmaap.security.trustStorePasswordPath":"trustStorePasswordPath",
+  "dmaap.security.keyStorePath":"keyStorePath",
+  "dmaap.security.keyStorePasswordPath":"change it",
+  "dmaap.security.enableDmaapCertAuth":"false",
+  "streams_publishes":{
+    "PM_MEAS_FILES":{
+      "type":"data_router",
+      "dmaap_info":{
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/1",
+        "publish_url": "https://drsim:3907/publish/1",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
       }
-   }
+    }
+  },
+  "streams_subscribes":{
+    "dmaap_subscriber":{
+      "dmaap_info":{
+        "topic_url":"http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12"
+      },
+      "type":"message_router"
+    }
+  }
 }
\ No newline at end of file
index 2e4f62c..a37c3be 100644 (file)
@@ -8,19 +8,33 @@
   "dmaap.security.keyStorePath": "keyStorePath",
   "dmaap.security.keyStorePasswordPath": "change it",
   "dmaap.security.enableDmaapCertAuth": "false",
-  "dmaap.dmaapProducerConfiguration": [
-    {
-      "changeIdentifier": "PM_MEAS_FILES",
-      "feedName": "feed01"
+  "streams_publishes": {
+    "PM_MEAS_FILES": {
+      "type": "data_router",
+      "username": "user",
+      "log_url": "https://drsim:3907/feedlog/1",
+      "publish_url": "https://drsim:3907/publish/1",
+      "location": "loc00",
+      "password": "password",
+      "publisher_id": "972.360gm"
     },
-    {
-      "changeIdentifier": "CTR_FILES",
-      "feedName": "feed02"
+    "CTR_FILES": {
+      "type": "data_router",
+      "dmaap_info": {
+        "feed02": {
+          "username": "user",
+          "log_url": "https://drsim:3907/feedlog/2",
+          "publish_url": "https://drsim:3907/publish/2",
+          "location": "loc00",
+          "password": "password",
+          "publisher_id": "972.360gm"
+        }
+      }
     }
-  ],
+  },
   "streams_subscribes": {
     "dmaap_subscriber": {
-      "dmmap_info": {
+      "dmaap_info": {
         "topic_url": "http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12"
       },
       "type": "message_router"
index 7eeed24..31d3a4b 100644 (file)
@@ -1,23 +1,34 @@
 {
-   "dmaap.ftpesConfig.keyCert":"config/dfc.jks",
-   "dmaap.ftpesConfig.keyPassword":"secret",
-   "dmaap.ftpesConfig.trustedCa":"config/ftp.jks",
-   "dmaap.ftpesConfig.trustedCaPassword":"secret",
-   "dmaap.security.trustStorePath":"change it",
-   "dmaap.security.trustStorePasswordPath":"trustStorePasswordPath",
-   "dmaap.security.keyStorePath":"keyStorePath",
-   "dmaap.security.keyStorePasswordPath":"change it",
-   "dmaap.security.enableDmaapCertAuth":"false",
-   "dmaap.dmaapProducerConfiguration" : {
-         "changeIdentifier":"CTR_MEAS_FILES",
-         "feedName":"feed02"
-    },
-    "streams_subscribes":{
-      "dmaap_subscriber":{
-         "dmmap_info":{
-            "topic_url":"http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12"
-         },
-         "type":"message_router"
+  "dmaap.ftpesConfig.keyCert": "config/dfc.jks",
+  "dmaap.ftpesConfig.keyPassword": "secret",
+  "dmaap.ftpesConfig.trustedCa": "config/ftp.jks",
+  "dmaap.ftpesConfig.trustedCaPassword": "secret",
+  "dmaap.security.trustStorePath": "change it",
+  "dmaap.security.trustStorePasswordPath": "trustStorePasswordPath",
+  "dmaap.security.keyStorePath": "keyStorePath",
+  "dmaap.security.keyStorePasswordPath": "change it",
+  "dmaap.security.enableDmaapCertAuth": "false",
+  "streams_subscribes": {
+    "dmaap_subscriber": {
+      "dmaap_info": {
+        "topic_url": "http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12"
+      },
+      "type": "message_router"
+    }
+  },
+  "streams_publishes": {
+    "CTR_MEAS_FILES": {
+      "type": "data_router",
+      "dmaap_info": {
+        "feed02": {
+          "username": "user",
+          "log_url": "https://drsim:3907/feedlog/2",
+          "publish_url": "https://drsim:3907/publish/2",
+          "location": "loc00",
+          "password": "password",
+          "publisher_id": "972.360gm"
+        }
       }
-   }
+    }
+  }
 }
\ No newline at end of file
index 83be949..b7b63cc 100644 (file)
@@ -8,23 +8,44 @@
   "dmaap.security.keyStorePath": "keyStorePath",
   "dmaap.security.keyStorePasswordPath": "change it",
   "dmaap.security.enableDmaapCertAuth": "false",
-  "dmaap.dmaapProducerConfiguration": [
-    {
-      "changeIdentifier": "CTR_MEAS_FILES",
-      "feedName": "feed02"
+  "streams_publishes": {
+    "CTR_MEAS_FILES": {
+      "type": "data_router",
+      "dmaap_info": {
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/2",
+        "publish_url": "https://drsim:3907/publish/2",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
+      }
     },
-    {
-      "changeIdentifier": "LOG_FILES",
-      "feedName": "feed03"
+    "LOG_FILES": {
+      "type": "data_router",
+      "dmaap_info": {
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/3",
+        "publish_url": "https://drsim:3907/publish/3",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
+      }
     },
-    {
-      "changeIdentifier": "TEMP_FILES",
-      "feedName": "feed03"
+    "TEMP_FILES": {
+      "type": "data_router",
+      "dmaap_info": {
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/3",
+        "publish_url": "https://drsim:3907/publish/3",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
+      }
     }
-  ],
+  },
   "streams_subscribes": {
     "dmaap_subscriber": {
-      "dmmap_info": {
+      "dmaap_info": {
         "topic_url": "http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12"
       },
       "type": "message_router"
index a366b4c..9974c18 100644 (file)
@@ -1,23 +1,32 @@
 {
-   "dmaap.ftpesConfig.keyCert":"config/dfc.jks",
-   "dmaap.ftpesConfig.keyPassword":"secret",
-   "dmaap.ftpesConfig.trustedCa":"config/ftp.jks",
-   "dmaap.ftpesConfig.trustedCaPassword":"secret",
-   "dmaap.security.trustStorePath":"change it",
-   "dmaap.security.trustStorePasswordPath":"trustStorePasswordPath",
-   "dmaap.security.keyStorePath":"keyStorePath",
-   "dmaap.security.keyStorePasswordPath":"change it",
-   "dmaap.security.enableDmaapCertAuth":"false",
-   "dmaap.dmaapProducerConfiguration" : {
-         "changeIdentifier":"PM_MEAS_FILES",
-         "feedName":"feed02"
-    },
-    "streams_subscribes":{
-      "dmaap_subscriber":{
-         "dmmap_info":{
-            "topic_url":"http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12"
-         },
-         "type":"message_router"
+  "dmaap.ftpesConfig.keyCert":"config/dfc.jks",
+  "dmaap.ftpesConfig.keyPassword":"secret",
+  "dmaap.ftpesConfig.trustedCa":"config/ftp.jks",
+  "dmaap.ftpesConfig.trustedCaPassword":"secret",
+  "dmaap.security.trustStorePath":"change it",
+  "dmaap.security.trustStorePasswordPath":"trustStorePasswordPath",
+  "dmaap.security.keyStorePath":"keyStorePath",
+  "dmaap.security.keyStorePasswordPath":"change it",
+  "dmaap.security.enableDmaapCertAuth":"false",
+  "streams_publishes":{
+    "PM_MEAS_FILES":{
+      "type":"data_router",
+      "dmaap_info":{
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/2",
+        "publish_url": "https://drsim:3907/publish/2",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
       }
-   }
+    }
+  },
+  "streams_subscribes":{
+    "dmaap_subscriber":{
+      "dmaap_info":{
+        "topic_url":"http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12"
+      },
+      "type":"message_router"
+    }
+  }
 }
index eca72be..6171268 100644 (file)
@@ -8,19 +8,33 @@
   "dmaap.security.keyStorePath": "keyStorePath",
   "dmaap.security.keyStorePasswordPath": "change it",
   "dmaap.security.enableDmaapCertAuth": "false",
-  "dmaap.dmaapProducerConfiguration": [
-    {
-      "changeIdentifier": "PM_MEAS_FILES",
-      "feedName": "feed03"
+  "streams_publishes":{
+    "PM_MEAS_FILES":{
+      "type":"data_router",
+      "dmaap_info":{
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/3",
+        "publish_url": "https://drsim:3907/publish/3",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
+      }
     },
-    {
-      "changeIdentifier": "CTR_MEAS_FILES",
-      "feedName": "feed03"
+    "CTR_FILES":{
+      "type":"data_router",
+      "dmaap_info":{
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/3",
+        "publish_url": "https://drsim:3907/publish/3",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
+      }
     }
-  ],
+  },
   "streams_subscribes": {
     "dmaap_subscriber": {
-      "dmmap_info": {
+      "dmaap_info": {
         "topic_url": "http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12"
       },
       "type": "message_router"
index c8e199d..ade30aa 100644 (file)
@@ -8,13 +8,22 @@
   "dmaap.security.keyStorePath": "keyStorePath",
   "dmaap.security.keyStorePasswordPath": "change it",
   "dmaap.security.enableDmaapCertAuth": "false",
-  "dmaap.dmaapProducerConfiguration": {
-    "changeIdentifier": "CTR_MEAS_FILES",
-    "feedName": "feed02"
+  "streams_publishes": {
+    "CTR_MEAS_FILES": {
+      "type": "data_router",
+      "dmaap_info": {
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/2",
+        "publish_url": "https://drsim:3907/publish/2",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
+      }
+    }
   },
   "streams_subscribes": {
     "dmaap_subscriber": {
-      "dmmap_info": {
+      "dmaap_info": {
         "topic_url": "http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c13/C13"
       },
       "type": "message_router"
index 1f91a38..b98a46f 100644 (file)
@@ -8,13 +8,22 @@
   "dmaap.security.keyStorePath": "keyStorePath",
   "dmaap.security.keyStorePasswordPath": "change it",
   "dmaap.security.enableDmaapCertAuth": "false",
-  "dmaap.dmaapProducerConfiguration": {
-    "changeIdentifier": "LOG_FILES",
-    "feedName": "feed03"
+    "streams_publishes": {
+    "LOG_FILES": {
+      "type": "data_router",
+      "dmaap_info": {
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/3",
+        "publish_url": "https://drsim:3907/publish/3",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
+      }
+    }
   },
   "streams_subscribes": {
     "dmaap_subscriber": {
-      "dmmap_info": {
+      "dmaap_info": {
         "topic_url": "http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c14/C14"
       },
       "type": "message_router"
index acef9b9..7ee78f5 100644 (file)
@@ -8,19 +8,33 @@
   "dmaap.security.keyStorePath": "keyStorePath",
   "dmaap.security.keyStorePasswordPath": "change it",
   "dmaap.security.enableDmaapCertAuth": "false",
-  "dmaap.dmaapProducerConfiguration": [
-    {
-      "changeIdentifier": "PM_MEAS_FILES",
-      "feedName": "feed01"
+  "streams_publishes": {
+    "PM_MEAS_FILES": {
+      "type": "data_router",
+      "dmaap_info": {
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/1",
+        "publish_url": "https://drsim:3907/publish/1",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
+      }
     },
-    {
-      "changeIdentifier": "TEST_FILES",
-      "feedName": "feed04"
+    "TEST_FILES": {
+      "type": "data_router",
+      "dmaap_info": {
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/4",
+        "publish_url": "https://drsim:3907/publish/4",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
+      }
     }
-  ],
+  },
   "streams_subscribes": {
     "dmaap_subscriber": {
-      "dmmap_info": {
+      "dmaap_info": {
         "topic_url": "http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c15/C15"
       },
       "type": "message_router"
index e10fe07..7c68d7a 100644 (file)
@@ -8,19 +8,33 @@
   "dmaap.security.keyStorePath": "keyStorePath",
   "dmaap.security.keyStorePasswordPath": "change it",
   "dmaap.security.enableDmaapCertAuth": "false",
-  "dmaap.dmaapProducerConfiguration": [
-    {
-      "changeIdentifier": "TEST_FILES",
-      "feedName": "feed04"
+  "streams_publishes": {
+    "TEST_FILES": {
+      "type": "data_router",
+      "dmaap_info": {
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/4",
+        "publish_url": "https://drsim:3907/publish/4",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
+      }
     },
-    {
-      "changeIdentifier": "TEMP_FILES",
-      "feedName": "feed05"
+    "TEMP_FILES": {
+      "type": "data_router",
+      "dmaap_info": {
+        "username": "user",
+        "log_url": "https://drsim:3907/feedlog/5",
+        "publish_url": "https://drsim:3907/publish/4",
+        "location": "loc00",
+        "password": "password",
+        "publisher_id": "972.360gm"
+      }
     }
-  ],
+  },
   "streams_subscribes": {
     "dmaap_subscriber": {
-      "dmmap_info": {
+      "dmaap_info": {
         "topic_url": "http://dradmin:dradmin@mrsim:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c15/C15"
       },
       "type": "message_router"