From 8f848c65ee0000bb4211b228cf66ace774a8d9c6 Mon Sep 17 00:00:00 2001 From: "Sonsino, Ofir (os0695)" Date: Sun, 12 Aug 2018 15:23:14 +0300 Subject: vid-simulator dev and test tool Change-Id: I38e7eead042bde3beeebbdf4e05a7f62f174fd1e Issue-ID: VID-281 Signed-off-by: Sonsino, Ofir (os0695) --- ..._filter_service_instance_by_id_network-vl .json | 21 +++++++ ...filter_service_instance_by_name_network-vl.json | 21 +++++++ ..._named_query_for_view_edit_test_network-vl.json | 69 ++++++++++++++++++++++ .../get_sdc_catalog_services_SInetwork11.json | 38 ++++++++++++ 4 files changed, 149 insertions(+) create mode 100644 vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/aai_filter_service_instance_by_id_network-vl .json create mode 100644 vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/aai_filter_service_instance_by_name_network-vl.json create mode 100644 vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/aai_named_query_for_view_edit_test_network-vl.json create mode 100644 vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/get_sdc_catalog_services_SInetwork11.json (limited to 'vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl') diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/aai_filter_service_instance_by_id_network-vl .json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/aai_filter_service_instance_by_id_network-vl .json new file mode 100644 index 000000000..0a0f8e52f --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/aai_filter_service_instance_by_id_network-vl .json @@ -0,0 +1,21 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../search/nodes-query", + "queryParams": { + "search-node-type": "service-instance", + "filter": "service-instance-id:EQUALS:d198cc45-158b-480e-8d2c-03943c51268e" + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Mobility/service-instances/service-instance/d198cc45-158b-480e-8d2c-03943c51268e" + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/aai_filter_service_instance_by_name_network-vl.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/aai_filter_service_instance_by_name_network-vl.json new file mode 100644 index 000000000..60013726a --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/aai_filter_service_instance_by_name_network-vl.json @@ -0,0 +1,21 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../search/nodes-query", + "queryParams": { + "search-node-type": "service-instance", + "filter": "service-instance-name:EQUALS:" + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Mobility/service-instances/service-instance/d198cc45-158b-480e-8d2c-03943c51268e" + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/aai_named_query_for_view_edit_test_network-vl.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/aai_named_query_for_view_edit_test_network-vl.json new file mode 100644 index 000000000..e5a625acf --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/aai_named_query_for_view_edit_test_network-vl.json @@ -0,0 +1,69 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/aai/search/named-query", + "body": { + "instance-filters": { + "instance-filter": [ + { + "customer": { + "global-customer-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb" + }, + "service-instance": { + "service-instance-id": "d198cc45-158b-480e-8d2c-03943c51268e" + }, + "service-subscription": { + "service-type": "Mobility" + } + } + ] + }, + "query-parameters": { + "named-query": { + "named-query-uuid": "0367193e-c785-4d5f-9cb8-7bc89dc9ddb7" + } + } + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "inventory-response-item": [ + { + "model-name": "0eOHz2Yh8WJcBYzKy079", + "service-instance": { + "service-instance-id": "c187e9fe-40c3-4862-b73e-84ff056205f6", + "service-instance-name": "test_sssdad" + }, + "extra-properties": {}, + "inventory-response-items": { + "inventory-response-item": [ + { + "model-name": "AutonGfXd6QC2vPUrgg", + "generic-vnf": { + "vnf-id": "8715ea55-6fcf-45b5-b42b-2ca37ec3cb39", + "vnf-name": "sedawsdsda", + "vnf-type": "0eOHz2Yh8WJcBYzKy079/AutonGfXd6QC2vPUrgg 0", + "service-id": "e433710f-9217-458d-a79d-1c7aff376d89", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1503919965335", + "model-invariant-id": "451bdde0-7dd5-4ef4-a0a7-9c0f5a717ae3", + "model-version-id": "a67150f4-8eeb-4b84-a8d1-8060d181eeaa", + "model-customization-id": "368c50f4-5b5c-46a9-b976-1393cd96ce22", + "nf-type": "", + "nf-function": "", + "nf-role": "", + "nf-naming-code": "" + }, + "extra-properties": {} + } + ] + } + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/get_sdc_catalog_services_SInetwork11.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/get_sdc_catalog_services_SInetwork11.json new file mode 100644 index 000000000..23f926b04 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-network-vl/get_sdc_catalog_services_SInetwork11.json @@ -0,0 +1,38 @@ +[ + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/b75e0d22-05ff-4448-9266-5f0d4e1dbbd6/toscaModel" + }, + "simulatorResponse": { + "responseCode": 200, + "file": "service-network-vl.zip" + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/b75e0d22-05ff-4448-9266-5f0d4e1dbbd6/metadata" + }, + "simulatorResponse": { + "responseCode": 200, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "uuid": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "invariantUUID": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "name": "Using VID for VoIP Network Instantiations Shani", + "version": "1.0", + "toscaModelURL": "./service-network-vl.zip", + "category": "VoIP Call Control", + "lifecycleState": "CERTIFIED", + "lastUpdaterUserId": "sf266t", + "lastUpdaterFullName": "SHANI FRANCO DE-CAFE", + "distributionStatus": "DISTRIBUTED", + "artifacts": null, + "resources": null + } + } + } +] \ No newline at end of file -- cgit 1.2.3-korg