summaryrefslogtreecommitdiffstats
path: root/src/test/resources
diff options
context:
space:
mode:
authoremartin <ephraim.martin@est.tech>2019-01-29 12:21:51 +0000
committeremartin <ephraim.martin@est.tech>2019-01-29 12:21:51 +0000
commit4751cb9d3db83a1e54d078c9b3416d6f3fb76494 (patch)
tree4c22f2dd16476023c90d08b4663d81ffe30e6ba2 /src/test/resources
parentbecd8eebb1079e8cb970824ef704f5eebfdbdd42 (diff)
Fetch mapper config from configbinding service
Change-Id: I69e654719969f2d0ef6e7c8adb4806aac9c1e898 Issue-ID: DCAEGEN2-1081 Signed-off-by: emartin <ephraim.martin@est.tech>
Diffstat (limited to 'src/test/resources')
-rw-r--r--src/test/resources/incomplete_mapper_config.json24
-rw-r--r--src/test/resources/valid_cbs_config.json23
-rw-r--r--src/test/resources/valid_mapper_config.json20
3 files changed, 67 insertions, 0 deletions
diff --git a/src/test/resources/incomplete_mapper_config.json b/src/test/resources/incomplete_mapper_config.json
new file mode 100644
index 0000000..aec0aca
--- /dev/null
+++ b/src/test/resources/incomplete_mapper_config.json
@@ -0,0 +1,24 @@
+{
+ "_comment": "This mapper config is missing the messagerouter feed name",
+ "pm-mapper-filter": {
+ "filters": "{[]}"
+ },
+ "3GPP.schema.file": "{\"3GPP_Schema\":\"./etc/3GPP_relaxed_schema.xsd\"}",
+ "streams_subscribes": {},
+ "streams_publishes": {
+ "pm_mapper_handle_out": {
+ "type": "message_router",
+ "aaf_password": null,
+ "dmaap_info": {
+ "topic_url": "https://we-are-message-router.us:3905/events/some-topic",
+ "client_role": null,
+ "location": null,
+ "client_id": null
+ },
+ "aaf_username": null
+ }
+ },
+ "some parameter": "unauthenticated.PM_VES_OUTPUT",
+ "some field": "1",
+ "services_calls": {}
+} \ No newline at end of file
diff --git a/src/test/resources/valid_cbs_config.json b/src/test/resources/valid_cbs_config.json
new file mode 100644
index 0000000..e2fc650
--- /dev/null
+++ b/src/test/resources/valid_cbs_config.json
@@ -0,0 +1,23 @@
+[
+ {
+ "ID": "6e331b82-6563-3bf7-4acc-d02d1e042c9b",
+ "Node": "dcae-bootstrap",
+ "Address": "10.42.249.191",
+ "Datacenter": "dc1",
+ "TaggedAddresses": {
+ "lan": "10.42.249.191",
+ "wan": "10.42.249.191"
+ },
+ "NodeMeta": {
+ "consul-network-segment": ""
+ },
+ "ServiceID": "dcae-cbs0",
+ "ServiceName": "pm-mapper-service-name",
+ "ServiceTags": [],
+ "ServiceAddress": "config-binding-service",
+ "ServicePort": 10000,
+ "ServiceEnableTagOverride": false,
+ "CreateIndex": 124,
+ "ModifyIndex": 124
+ }
+] \ No newline at end of file
diff --git a/src/test/resources/valid_mapper_config.json b/src/test/resources/valid_mapper_config.json
new file mode 100644
index 0000000..7106141
--- /dev/null
+++ b/src/test/resources/valid_mapper_config.json
@@ -0,0 +1,20 @@
+{
+ "pm-mapper-filter": "{ \"filters\":[]}",
+ "3GPP.schema.file": "{\"3GPP_Schema\":\"./etc/3GPP_relaxed_schema.xsd\"}",
+ "streams_subscribes": {},
+ "streams_publishes": {
+ "pm_mapper_handle_out": {
+ "type": "message_router",
+ "aaf_password": null,
+ "dmaap_info": {
+ "topic_url": "https://we-are-message-router.us:3905/events/some-topic",
+ "client_role": null,
+ "location": null,
+ "client_id": null
+ },
+ "aaf_username": null
+ }
+ },
+ "streams_subscribes.pm_mapper_handle_out.message_router_topic": "unauthenticated.PM_VES_OUTPUT",
+ "services_calls": {}
+} \ No newline at end of file