Redefine Routing 51/83351/2
authorFilip Krzywka <filip.krzywka@nokia.com>
Tue, 26 Mar 2019 13:30:01 +0000 (14:30 +0100)
committerFilip Krzywka <filip.krzywka@nokia.com>
Thu, 28 Mar 2019 13:21:12 +0000 (14:21 +0100)
This change follows related changes in DCAEGEN2-1347

- routing is no longer read from configuration file
- routing format kept in CBS have been adjusted to platform
definitions

Change-Id: I5f6c53325d5ea04d2f5ab13a7ff134932f7edeb0
Issue-ID: DCAEGEN2-1347
Signed-off-by: Filip Krzywka <filip.krzywka@nokia.com>
plans/dcaegen2-collectors-hv-ves/testsuites/collector/configuration/insecure.json
plans/dcaegen2-collectors-hv-ves/testsuites/collector/configuration/secure.json
tests/dcaegen2-collectors-hv-ves/testcases/__init__.robot
tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration.json [new file with mode: 0644]
tests/dcaegen2-collectors-hv-ves/testcases/resources/ves-hv-configuration.json [deleted file]

index 9af02ff..3df8e6e 100644 (file)
   "security": {
     "sslDisable": true
   },
-  "collector": {
-    "maxRequestSizeBytes": 1048576,
-    "kafkaServers": [
-      "kafka:9092"
-    ],
-    "routing": [
-      {
-        "fromDomain": "perf3gpp",
-        "toTopic": "TEST_HV_VES_PERF3GPP"
-      }
-    ],
-    "dummyMode": false
-  },
   "logLevel": "DEBUG"
 }
\ No newline at end of file
index 5aa2b0a..60ac236 100644 (file)
       "trustStorePassword": "onaponap"
     }
   },
-  "collector": {
-    "maxRequestSizeBytes": 1048576,
-    "kafkaServers": [
-      "kafka:9092"
-    ],
-    "routing": [
-      {
-        "fromDomain": "perf3gpp",
-        "toTopic": "TEST_HV_VES_PERF3GPP"
-      }
-    ],
-    "dummyMode": false
-  },
   "logLevel": "DEBUG"
 }
\ No newline at end of file
index 1ac9150..1e574b0 100644 (file)
@@ -71,4 +71,4 @@ ${DCAE_APP_API_MESSAGES_VALIDATION_PATH}       ${DCAE_APP_API_MESSAGES_PATH}/val
 ${ROUTED_MESSAGES_TOPIC}                       TEST_HV_VES_PERF3GPP
 
 ${HV_VES_RESOURCES}                            %{WORKSPACE}/tests/dcaegen2-collectors-hv-ves/testcases/resources
-${HV_VES_CONFIGURATION_JSON_FILEPATH}          ${HV_VES_RESOURCES}/ves-hv-configuration.json
+${HV_VES_CONFIGURATION_JSON_FILEPATH}          ${HV_VES_RESOURCES}/hv-ves-configuration.json
diff --git a/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration.json b/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration.json
new file mode 100644 (file)
index 0000000..1c4e343
--- /dev/null
@@ -0,0 +1,12 @@
+{
+  "streams_publishes": {
+    "perf3gpp": {
+      "type": "kafka",
+      "kafka_info": {
+        "bootstrap_servers": "kafka:9092",
+        "topic_name": "TEST_HV_VES_PERF3GPP"
+      }
+    }
+  }
+}
+
diff --git a/tests/dcaegen2-collectors-hv-ves/testcases/resources/ves-hv-configuration.json b/tests/dcaegen2-collectors-hv-ves/testcases/resources/ves-hv-configuration.json
deleted file mode 100644 (file)
index 1a65cf1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-{
-  "collector.routing": [
-    {
-      "fromDomain": "perf3gpp",
-      "toTopic": "TEST_HV_VES_PERF3GPP"
-    }
-  ]
-}
-