diff options
author | 2018-08-15 11:46:10 -0400 | |
---|---|---|
committer | 2018-08-16 11:09:15 -0400 | |
commit | 7a2c23b3ad83eab0eed5b990c70a1603447d5ee5 (patch) | |
tree | 24293333fd3cc566c1d77f9c9eedeb034dce9c6c /dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock | |
parent | 9650bd18f6b88721628ebedac2575b44e1b0028e (diff) |
Standalone TCA with EELF Logger
Issue-ID: DCAEGEN2-633
Change-Id: I4da76b532021c0d6248455e7bd6e77f4614c35a7
Signed-off-by: Singla, Rajiv (rs153v) <rs153v@att.com>
Diffstat (limited to 'dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock')
16 files changed, 309 insertions, 0 deletions
diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-aai-vnf-enrichment.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-aai-vnf-enrichment.json new file mode 100644 index 0000000..f19143c --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-aai-vnf-enrichment.json @@ -0,0 +1,39 @@ +{ + "vnf-id": "63b31229-9a3a-444f-9159-04ce2dca3be9", + "vnf-name": "SCL01081", + "vnf-type": "vCPEInfraService10/vCPEInfraService10 0", + "service-id": "e8cb8968-5411-478b-906a-f28747de72cd", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1504896046185", + "relationship-list": { + "relationship": [ + { + "related-to": "service-instance", + "related-link": "/aai/v11/business/customers/customer/Demonstration3/service-subscriptions/service-subscription/vCPE/service-instances/service-instance/e8feceb6-28ae-480a-bfbc-1985ce333526", + "relationship-data": [ + { + "relationship-key": "customer.global-customer-id", + "relationship-value": "Demonstration3" + }, + { + "relationship-key": "service-subscription.service-type", + "relationship-value": "vCPE" + }, + { + "relationship-key": "service-instance.service-instance-id", + "relationship-value": "e8feceb6-28ae-480a-bfbc-1985ce333526" + } + ], + "related-to-property": [ + { + "property-key": "service-instance.service-instance-name", + "property-value": "vCPEInfraSI13" + } + ] + } + ] + } +} diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-aai-vserver-enrichment.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-aai-vserver-enrichment.json new file mode 100644 index 0000000..28f13d2 --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-aai-vserver-enrichment.json @@ -0,0 +1,10 @@ +{ + "vserver-id": "testVserver", + "vserver-name": "example-vserver-name-val-2", + "vserver-name2": "example-vserver-name2-val-2", + "prov-status": "example-prov-status-val-2", + "vserver-selflink": "example-vserver-selflink-val-2", + "in-maint": true, + "is-closed-loop-disabled": true, + "resource-version": "1504912891060" +} diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-aai-vserver-resource-data.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-aai-vserver-resource-data.json new file mode 100644 index 0000000..59904f5 --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-aai-vserver-resource-data.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "vserver", + "resource-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/DFW/tenants/tenant/1031120/vservers/vserver/testVserver" + } + ] +} diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-configservice-binding.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-configservice-binding.json new file mode 100644 index 0000000..a3be3f7 --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-configservice-binding.json @@ -0,0 +1,26 @@ +[ + { + "ID": "81bc2a17-8cfa-3f6f-30a9-a545a9b6ac2f", + "Node": "zldcrdm5bdcc2dokr00", + "Address": "135.25.108.161", + "Datacenter": "zldcrdm5bdcc2", + "TaggedAddresses": { + "lan": "135.25.108.161", + "wan": "135.25.108.161" + }, + "NodeMeta": { + "fqdn": "zldcrdm5bdcc2dokr00.2f3fb3.rdm5b.tci.att.com" + }, + "ServiceID": "20299a144716:config_binding_service:10000", + "ServiceName": "config_binding_service", + "ServiceTags": [ + "config_binding_service", + "no-op" + ], + "ServiceAddress": "localhost", + "ServicePort": 8080, + "ServiceEnableTagOverride": false, + "CreateIndex": 2991593, + "ModifyIndex": 2997835 + } +] diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-configservice-tca.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-configservice-tca.json new file mode 100644 index 0000000..88d8619 --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-configservice-tca.json @@ -0,0 +1,63 @@ +{ + "application.name": "dcae-analytics", + "application.description": "DCAE Analytics Threshold Crossing Alert Application", + "application.tca_policy": "{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"Mfvs_eNodeB_RANKPI\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"resource=vFirewall;type=configuration\",\"policyName\":\"configuration.dcae.microservice.tca.xml\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":4000,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\"},{\"closedLoopControlName\":\"CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":20000,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\"},{\"closedLoopControlName\":\"CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09\",\"closedLoopEventStatus\":\"ABATED\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"CRITICAL\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"resource=vLoadBalancer;type=configuration\",\"policyName\":\"configuration.dcae.microservice.tca.xml\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":500,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\"},{\"closedLoopControlName\":\"CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":5000,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\"}]},{\"eventName\":\"virtualVMEventName\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"resource=virtualVM;type=configuration\",\"policyName\":\"configuration.dcae.microservice.tca.xml\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":500,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\"}]}]}", + "application.tca_batch_size": 10000, + "streams_subscribes.tca_handle_in.consumer_group": "cg1", + "streams_subscribes.tca_handle_in.consumer_ids[0]": "c0", + "streams_subscribes.tca_handle_in.consumer_ids[1]": "c1", + "streams_subscribes.tca_handle_in.message_limit": 50000, + "streams_subscribes.tca_handle_in.timeout": -1, + "streams_subscribes.tca_handle_in.polling.fixed_rate": 0, + "streams_subscribes.tca_handle_in.polling.auto_adjusting.min": 30000, + "streams_subscribes.tca_handle_in.polling.auto_adjusting.step_up": 20000, + "streams_subscribes.tca_handle_in.polling.auto_adjusting.max": 60000, + "streams_subscribes.tca_handle_in.polling.auto_adjusting.step_down": 40000, + "aai.enable_tca_enrichment": true, + "aai.url": "http://localhost:8443", + "aai.username": "DCAE", + "aai.password": "DCAE", + "aai.generic_vnf_path": "aai/v11/network/generic-vnfs/generic-vnf", + "aai.node_query_path": "aai/v11/search/nodes-query", + "service_calls": { + "aai_broker_handle": [ + "135.205.226.128:32768" + ] + }, + "streams_publishes": { + "tca_handle_out": { + "type": "message_router", + "aaf_username": "USER", + "aaf_password": "PASSWORD", + "dmaap_info": { + "client_role": "publisher", + "client_id": "tca-pub-0", + "location": "ecomp", + "topic_url": "http://localhost:8080/events/PubTopic" + } + } + }, + "streams_subscribes": { + "tca_handle_in": { + "type": "message_router", + "aaf_username": "USER", + "aaf_password": "PASSWORD", + "dmaap_info": { + "client_role": "subscriber", + "client_id": "tca-sub-0", + "location": "ecomp", + "topic_url": "http://localhost:8080/events/SubTopic" + } + } + }, + "spring": { + "main": { + "banner-mode": "off" + }, + "data": { + "mongodb": { + "uri": "mongodb://localhost:27017/analytics-tca" + } + } + } +} diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-pubTopic.txt b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-pubTopic.txt new file mode 100644 index 0000000..ee6e620 --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-pubTopic.txt @@ -0,0 +1 @@ +{"testResponseMessage" : "Accepted messages"} diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-subTopic-cg1-c0.txt b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-subTopic-cg1-c0.txt new file mode 100644 index 0000000..0752e5e --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-subTopic-cg1-c0.txt @@ -0,0 +1 @@ +[{"event":{"commonEventHeader":{"domain":"measurementsForVfScaling","eventId":"UC1-SCL01081-1492639920787","eventName":"Mfvs_eNodeB_RANKPI","lastEpochMicrosec":1492639920787,"nfNamingCode":"ENBE","priority":"Normal","reportingEntityId":"","reportingEntityName":"vtc2e7admn2","sequence":0,"sourceId":"SCL01081_9B_1","sourceName":"SCL01081","startEpochMicrosec":1492639920787,"version":3.0},"measurementsForVfScalingFields":{"additionalFields":[{"name":"software_version ","value":"version1"},{"name":"vendor ","value":"Ericsson "}],"additionalMeasurements":[{"name":"OaaS_UC1_EricssonSleepingCell","arrayOfFields":[{"name":"PMRAATTCBRA","value":"1353"},{"name":"PMRASUCCCBRA","value":"1351"},{"name":"PMCELLDOWNTIMEAUTO","value":"0"},{"name":"PMCELLDOWNTIMEMAN","value":"0"},{"name":"PMRRCCONNESTABATT","value":"297"},{"name":"PMRRCCONNESTABSUCC","value":"297"}]}],"vNicPerformanceArray":[{"receivedBroadcastPacketsAccumulated":5000,"receivedBroadcastPacketsDelta":5,"receivedDiscardedPacketsAccumulated":12,"receivedDiscardedPacketsDelta":2,"receivedErrorPacketsAccumulated":2,"receivedErrorPacketsDelta":1,"valuesAreSuspect":false,"vNicIdentifier":"someVNicIdentifier"}],"measurementInterval":900,"measurementsForVfScalingVersion":2.0}}},{"event":{"commonEventHeader":{"domain":"measurementsForVfScaling","eventId":"UC1-SCL01081-1492639920787","eventName":"Mfvs_eNodeB_RANKPI","lastEpochMicrosec":1492639920787,"nfNamingCode":"ENBE","priority":"Normal","reportingEntityId":"","reportingEntityName":"vtc2e7admn2","sequence":0,"sourceId":"SCL01081_9B_1","sourceName":"SCL01081","startEpochMicrosec":1492639920787,"version":3.0},"measurementsForVfScalingFields":{"additionalFields":[{"name":"software_version ","value":"version1"},{"name":"vendor ","value":"Ericsson "}],"additionalMeasurements":[{"name":"OaaS_UC1_EricssonSleepingCell","arrayOfFields":[{"name":"PMRAATTCBRA","value":"1353"},{"name":"PMRASUCCCBRA","value":"1351"},{"name":"PMCELLDOWNTIMEAUTO","value":"0"},{"name":"PMCELLDOWNTIMEMAN","value":"0"},{"name":"PMRRCCONNESTABATT","value":"297"},{"name":"PMRRCCONNESTABSUCC","value":"297"}]}],"vNicPerformanceArray":[{"receivedBroadcastPacketsAccumulated":21000,"receivedBroadcastPacketsDelta":5,"receivedDiscardedPacketsAccumulated":12,"receivedDiscardedPacketsDelta":2,"receivedErrorPacketsAccumulated":2,"receivedErrorPacketsDelta":1,"valuesAreSuspect":false,"vNicIdentifier":"someVNicIdentifier"}],"measurementInterval":900,"measurementsForVfScalingVersion":2.0}}},{"event":{"commonEventHeader":{"domain":"measurementsForVfScaling","eventId":"UC1-SCL01081-1492639920787","eventName":"Mfvs_eNodeB_RANKPI","lastEpochMicrosec":1492639920787,"nfNamingCode":"ENBE","priority":"Normal","reportingEntityId":"","reportingEntityName":"vtc2e7admn2","sequence":0,"sourceId":"SCL01081_9B_1","sourceName":"SCL01081","startEpochMicrosec":1492639920787,"version":3.0},"measurementsForVfScalingFields":{"additionalFields":[{"name":"software_version ","value":"version1"},{"name":"vendor ","value":"Ericsson "}],"additionalMeasurements":[{"name":"OaaS_UC1_EricssonSleepingCell","arrayOfFields":[{"name":"PMRAATTCBRA","value":"1353"},{"name":"PMRASUCCCBRA","value":"1351"},{"name":"PMCELLDOWNTIMEAUTO","value":"0"},{"name":"PMCELLDOWNTIMEMAN","value":"0"},{"name":"PMRRCCONNESTABATT","value":"297"},{"name":"PMRRCCONNESTABSUCC","value":"297"}]}],"vNicPerformanceArray":[{"receivedBroadcastPacketsAccumulated":0,"receivedBroadcastPacketsDelta":5,"receivedDiscardedPacketsAccumulated":12,"receivedDiscardedPacketsDelta":2,"receivedErrorPacketsAccumulated":2,"receivedErrorPacketsDelta":1,"valuesAreSuspect":false,"vNicIdentifier":"someVNicIdentifier"}],"measurementInterval":900,"measurementsForVfScalingVersion":2.0}}},{"event":{"commonEventHeader":{"domain":"measurementsForVfScaling","eventId":"UC1-SCL01081-1492639920787","eventName":"Mfvs_eNodeB_RANKPI","lastEpochMicrosec":1492639920787,"nfNamingCode":"ENBE","priority":"Normal","reportingEntityId":"","reportingEntityName":"vtc2e7admn2","sequence":0,"sourceId":"SCL01081_9B_1","sourceName":"SCL01081","startEpochMicrosec":1492639920787,"version":3.0},"measurementsForVfScalingFields":{"additionalFields":[{"name":"software_version ","value":"version1"},{"name":"vendor ","value":"Ericsson "}],"additionalMeasurements":[{"name":"OaaS_UC1_EricssonSleepingCell","arrayOfFields":[{"name":"PMRAATTCBRA","value":"1353"},{"name":"PMRASUCCCBRA","value":"1351"},{"name":"PMCELLDOWNTIMEAUTO","value":"0"},{"name":"PMCELLDOWNTIMEMAN","value":"0"},{"name":"PMRRCCONNESTABATT","value":"297"},{"name":"PMRRCCONNESTABSUCC","value":"297"}]}],"vNicPerformanceArray":[{"receivedBroadcastPacketsAccumulated":0,"receivedBroadcastPacketsDelta":5,"receivedDiscardedPacketsAccumulated":12,"receivedDiscardedPacketsDelta":2,"receivedErrorPacketsAccumulated":2,"receivedErrorPacketsDelta":1,"valuesAreSuspect":false,"vNicIdentifier":"someVNicIdentifier"}],"measurementInterval":900,"measurementsForVfScalingVersion":2.0}}},{"event":{"commonEventHeader":{"domain":"measurementsForVfScaling","eventId":"UC1-SCL01081-1492639920787","eventName":"virtualVMEventName","lastEpochMicrosec":1492639920787,"nfNamingCode":"ENBE","priority":"Normal","reportingEntityId":"","reportingEntityName":"vtc2e7admn2","sequence":0,"sourceId":"testVserver","sourceName":"testVserver","startEpochMicrosec":1492639920787,"version":3.0},"measurementsForVfScalingFields":{"additionalFields":[{"name":"software_version ","value":"version1"},{"name":"vendor ","value":"Ericsson "}],"additionalMeasurements":[{"name":"OaaS_UC1_EricssonSleepingCell","arrayOfFields":[{"name":"PMRAATTCBRA","value":"1353"},{"name":"PMRASUCCCBRA","value":"1351"},{"name":"PMCELLDOWNTIMEAUTO","value":"0"},{"name":"PMCELLDOWNTIMEMAN","value":"0"},{"name":"PMRRCCONNESTABATT","value":"297"},{"name":"PMRRCCONNESTABSUCC","value":"297"}]}],"vNicPerformanceArray":[{"receivedBroadcastPacketsAccumulated":200,"receivedBroadcastPacketsDelta":5,"receivedDiscardedPacketsAccumulated":12,"receivedDiscardedPacketsDelta":2,"receivedErrorPacketsAccumulated":2,"receivedErrorPacketsDelta":1,"valuesAreSuspect":false,"vNicIdentifier":"someVNicIdentifier"}],"measurementInterval":900,"measurementsForVfScalingVersion":2.0}}}] diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-subTopic-cg1-c1.txt b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-subTopic-cg1-c1.txt new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/__files/body-subTopic-cg1-c1.txt @@ -0,0 +1 @@ +[]
\ No newline at end of file diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-aai-vnf-enrichment.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-aai-vnf-enrichment.json new file mode 100644 index 0000000..f2869e9 --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-aai-vnf-enrichment.json @@ -0,0 +1,21 @@ +{ + "id": "e4a02fea-17d7-3090-a443-56384f45c101", + "request": { + "url": "/aai/v11/network/generic-vnfs/generic-vnf?vnf-name=SCL01081", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "body-aai-vnf-enrichment.json", + "headers": { + "Date": "Tue, 12 Dec 2017 02:54:22 GMT", + "Server": "Apache/2.2.22", + "Vary": "Accept-Encoding", + "Keep-Alive": "timeout=5, max=100", + "Connection": "Keep-Alive", + "Transfer-Encoding": "chunked", + "Content-Type": "application/json;charset=UTF-8" + } + }, + "uuid": "e4a02fea-17d7-3090-a443-56384f45c101" +} diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-aai-vserver-enrichment.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-aai-vserver-enrichment.json new file mode 100644 index 0000000..1ad6192 --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-aai-vserver-enrichment.json @@ -0,0 +1,21 @@ +{ + "id": "e4a02fea-17d7-3090-a443-56384f45c101", + "request": { + "url": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/DFW/tenants/tenant/1031120/vservers/vserver/testVserver", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "body-aai-vserver-enrichment.json", + "headers": { + "Date": "Tue, 12 Dec 2017 02:54:22 GMT", + "Server": "Apache/2.2.22", + "Vary": "Accept-Encoding", + "Keep-Alive": "timeout=5, max=100", + "Connection": "Keep-Alive", + "Transfer-Encoding": "chunked", + "Content-Type": "application/json;charset=UTF-8" + } + }, + "uuid": "e4a02fea-17d7-3090-a443-56384f45c101" +} diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-aai-vserver-resource-data.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-aai-vserver-resource-data.json new file mode 100644 index 0000000..764c32f --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-aai-vserver-resource-data.json @@ -0,0 +1,21 @@ +{ + "id": "e4a02fea-17d7-3090-a443-56384f45c101", + "request": { + "url": "/aai/v11/search/nodes-query?search-node-type=vserver&filter=vserver-name:EQUALS:testVserver", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "body-aai-vserver-resource-data.json", + "headers": { + "Date": "Tue, 12 Dec 2017 02:54:22 GMT", + "Server": "Apache/2.2.22", + "Vary": "Accept-Encoding", + "Keep-Alive": "timeout=5, max=100", + "Connection": "Keep-Alive", + "Transfer-Encoding": "chunked", + "Content-Type": "application/json;charset=UTF-8" + } + }, + "uuid": "e4a02fea-17d7-3090-a443-56384f45c101" +} diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-configservice-binding.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-configservice-binding.json new file mode 100644 index 0000000..454292c --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-configservice-binding.json @@ -0,0 +1,17 @@ +{ + "id": "e4a02fea-17d7-3090-a443-56384f45c111", + "request": { + "url": "/v1/catalog/service/config_binding_service", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "body-configservice-binding.json", + "headers": { + "Content-Type": "application/json", + "Server": "Apache/2.2.22", + "Date": "Tue, 02 Jan 2018 19:13:42 GMT" + } + }, + "uuid": "e4a02fea-17d7-3090-a443-56384f45c111" +} diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-configservice-tca.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-configservice-tca.json new file mode 100644 index 0000000..de528d8 --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-configservice-tca.json @@ -0,0 +1,17 @@ +{ + "id": "e4a02fea-17d7-3090-a443-56384f45c111", + "request": { + "url": "/service_component/tca_dev", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "body-configservice-tca.json", + "headers": { + "Content-Type": "application/json", + "Server": "Apache/2.2.22", + "Date": "Tue, 02 Jan 2018 19:13:42 GMT" + } + }, + "uuid": "e4a02fea-17d7-3090-a443-56384f45c111" +} diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-pubTopic.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-pubTopic.json new file mode 100644 index 0000000..9613803 --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-pubTopic.json @@ -0,0 +1,21 @@ +{ + "id": "e4a02fea-17d7-3090-a443-56384f45c102", + "request": { + "url": "/events/PubTopic", + "method": "POST" + }, + "response": { + "status": 200, + "bodyFileName": "body-pubTopic.txt", + "headers": { + "Date": "Tue, 12 Dec 2017 02:54:22 GMT", + "Server": "Apache/2.2.22", + "Vary": "Accept-Encoding", + "Keep-Alive": "timeout=5, max=100", + "Connection": "Keep-Alive", + "Transfer-Encoding": "chunked", + "Content-Type": "application/json;charset=UTF-8" + } + }, + "uuid": "e4a02fea-17d7-3090-a443-56384f45c102" +} diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-subTopic-cg1-c0.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-subTopic-cg1-c0.json new file mode 100644 index 0000000..f6795a7 --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-subTopic-cg1-c0.json @@ -0,0 +1,21 @@ +{ + "id": "e4a02fea-17d7-3090-a443-56384f45c101", + "request": { + "url": "/events/SubTopic/cg1/c0", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "body-subTopic-cg1-c0.txt", + "headers": { + "Date": "Tue, 12 Dec 2017 02:54:22 GMT", + "Server": "Apache/2.2.22", + "Vary": "Accept-Encoding", + "Keep-Alive": "timeout=5, max=100", + "Connection": "Keep-Alive", + "Transfer-Encoding": "chunked", + "Content-Type": "application/json;charset=UTF-8" + } + }, + "uuid": "e4a02fea-17d7-3090-a443-56384f45c101" +} diff --git a/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-subTopic-cg1-c1.json b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-subTopic-cg1-c1.json new file mode 100644 index 0000000..0411f5d --- /dev/null +++ b/dcae-analytics/dcae-analytics-test/src/main/resources/data/wiremock/mappings/mapping-subTopic-cg1-c1.json @@ -0,0 +1,21 @@ +{ + "id": "e4a02fea-17d7-3090-a443-56384f45c101", + "request": { + "url": "/events/SubTopic/cg1/c1", + "method": "GET" + }, + "response": { + "status": 500, + "bodyFileName": "body-subTopic-cg1-c1.txt", + "headers": { + "Date": "Tue, 12 Dec 2017 02:54:22 GMT", + "Server": "Apache/2.2.22", + "Vary": "Accept-Encoding", + "Keep-Alive": "timeout=5, max=100", + "Connection": "Keep-Alive", + "Transfer-Encoding": "chunked", + "Content-Type": "application/json;charset=UTF-8" + } + }, + "uuid": "e4a02fea-17d7-3090-a443-56384f45c101" +} |