summaryrefslogtreecommitdiffstats
path: root/src/test/resources
diff options
context:
space:
mode:
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