diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-08-12 15:23:14 +0300 |
---|---|---|
committer | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-08-12 15:23:57 +0300 |
commit | 8f848c65ee0000bb4211b228cf66ace774a8d9c6 (patch) | |
tree | 8abec7471adb0cac4ba9ff0fbcbedc56ea792621 /vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad | |
parent | 91b057331b92ecf7f3c2d495681b05295dc8346c (diff) |
vid-simulator dev and test tool
Change-Id: I38e7eead042bde3beeebbdf4e05a7f62f174fd1e
Issue-ID: VID-281
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad')
4 files changed, 145 insertions, 0 deletions
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad/aai_filter_service_instance_by_id_test_sssdad.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad/aai_filter_service_instance_by_id_test_sssdad.json new file mode 100644 index 000000000..e5cabc754 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad/aai_filter_service_instance_by_id_test_sssdad.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:c187e9fe-40c3-4862-b73e-84ff056205f6" + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89/service-subscriptions/service-subscription/VIRTUAL%20USP/service-instances/service-instance/c187e9fe-40c3-4862-b73e-84ff056205f6" + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad/aai_filter_service_instance_by_name_test_sssdad.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad/aai_filter_service_instance_by_name_test_sssdad.json new file mode 100644 index 000000000..aff1359d6 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad/aai_filter_service_instance_by_name_test_sssdad.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:test_sssdad" + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89/service-subscriptions/service-subscription/VIRTUAL%20USP/service-instances/service-instance/c187e9fe-40c3-4862-b73e-84ff056205f6" + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad/aai_named_query_for_view_edit_test_sssdad.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad/aai_named_query_for_view_edit_test_sssdad.json new file mode 100644 index 000000000..e283e8744 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad/aai_named_query_for_view_edit_test_sssdad.json @@ -0,0 +1,65 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/aai/search/named-query", + "body": { + "instance-filters": { + "instance-filter": [ + { + "customer": { + "global-customer-id": "e433710f-9217-458d-a79d-1c7aff376d89" + }, + "service-instance": { + "service-instance-id": "c187e9fe-40c3-4862-b73e-84ff056205f6" + }, + "service-subscription": { + "service-type": "VIRTUAL USP" + } + } + ] + }, + "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": "Proxy-Config-Instance", + "configuration": { + "configuration-id": "9533-config-LB1113", + "configuration-name": "dummy_instance", + "configuration-type": "configuration-type-9533", + "configuration-sub-type": "configuration-sub-type-9533", + "model-invariant-id": "model-invariant-id-9533", + "model-version-id": "model-version-id-9533", + "orchestration-status": "Inactive", + "operational-status": "", + "configuration-selflink": "", + "model-customization-id": "model-customization-id-9533", + "resource-version": "1504038855716" + }, + "extra-properties": { + } + } + ] + } + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad/get_sdc_catalog_services_pm1111.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad/get_sdc_catalog_services_pm1111.json new file mode 100644 index 000000000..1058e6d0a --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-sssdad/get_sdc_catalog_services_pm1111.json @@ -0,0 +1,38 @@ +[ + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/ee6d61be-4841-4f98-8f23-5de9da846ca7/toscaModel" + }, + "simulatorResponse": { + "responseCode": 200, + "file": "pm1111.zip" + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/ee6d61be-4841-4f98-8f23-5de9da846ca7/metadata" + }, + "simulatorResponse": { + "responseCode": 200, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "uuid": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "invariantUUID": "b7d923c9-6175-41f1-91ba-4565c4953408", + "name": "Multiple pProbes", + "version": "1.0", + "toscaModelURL": "./pm1111.zip", + "category": "Mobility", + "lifecycleState": "CERTIFIED", + "lastUpdaterUserId": "rg276b", + "lastUpdaterFullName": null, + "distributionStatus": "DISTRIBUTED", + "artifacts": null, + "resources": null + } + } + } +]
\ No newline at end of file |