diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-03-11 15:50:07 +0200 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-03-11 16:05:19 +0200 |
commit | cb8baa2054a427becd39e4031798375efcc9027c (patch) | |
tree | aad2b6cc0a6afcc2627a84868d74ffb736210e24 /vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf | |
parent | e2617e9d5b82f2605e1660750a0dae96a077d83f (diff) |
Merge simulator from ECOMP's repository
Reference commit in ECOMP: 8e92a8c6
Issue-ID: VID-378
Change-Id: Ifd87e07db55a760fc94c582758a7413103b5fdd8
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf')
4 files changed, 145 insertions, 0 deletions
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf/aai_filter_service_instance_by_id_test_fabric_conf.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf/aai_filter_service_instance_by_id_test_fabric_conf.json new file mode 100644 index 000000000..429a2ad2b --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf/aai_filter_service_instance_by_id_test_fabric_conf.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-84ff056205f61234" + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d891234/service-subscriptions/service-subscription/VIRTUAL%20USP/service-instances/service-instance/c187e9fe-40c3-4862-b73e-84ff056205f61234" + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf/aai_filter_service_instance_by_name_test_fabric_conf.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf/aai_filter_service_instance_by_name_test_fabric_conf.json new file mode 100644 index 000000000..70d8b599d --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf/aai_filter_service_instance_by_name_test_fabric_conf.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_fabric_config" + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d891234/service-subscriptions/service-subscription/VIRTUAL%20USP/service-instances/service-instance/c187e9fe-40c3-4862-b73e-84ff056205f61234" + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf/aai_named_query_for_view_edit_test_fabric_conf.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf/aai_named_query_for_view_edit_test_fabric_conf.json new file mode 100644 index 000000000..917ef4d5f --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf/aai_named_query_for_view_edit_test_fabric_conf.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-1c7aff376d891234" + }, + "service-instance": { + "service-instance-id": "c187e9fe-40c3-4862-b73e-84ff056205f61234" + }, + "service-subscription": { + "service-type": "TYLER SILVIA" + } + } + ] + }, + "query-parameters": { + "named-query": { + "named-query-uuid": "0367193e-c785-4d5f-9cb8-7bc89dc9ddb7" + } + } + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "inventory-response-item": [ + { + "model-name": "0eOHz2Yh8WJcBYzKy0791234", + "service-instance": { + "service-instance-id": "c187e9fe-40c3-4862-b73e-84ff056205f61234", + "service-instance-name": "test_fabric_config" + }, + "extra-properties": {}, + "inventory-response-items": { + "inventory-response-item": [ + { + "model-name": "Fabric-Configuration-Instance", + "configuration": { + "configuration-id": "1234-fabric-config-LB1113", + "configuration-name": "dummy_instance", + "configuration-type": "fabric-configuration-type-1234", + "configuration-sub-type": "fabric-configuration-sub-type-1234", + "model-invariant-id": "model-invariant-id-1234", + "model-version-id": "model-version-id-1234", + "orchestration-status": "Assigned", + "operational-status": "", + "configuration-selflink": "", + "model-customization-id": "model-customization-id-1234", + "resource-version": "1504038855716" + }, + "extra-properties": { + } + } + ] + } + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf/get_sdc_catalog_services_fabric_conf.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf/get_sdc_catalog_services_fabric_conf.json new file mode 100644 index 000000000..4ce461212 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-test-fabric-conf/get_sdc_catalog_services_fabric_conf.json @@ -0,0 +1,38 @@ +[ + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/12344bb4-a416-4b4e-997e-0059973630b9/toscaModel" + }, + "simulatorResponse": { + "responseCode": 200, + "file": "service-fabric-configuration.zip" + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/12344bb4-a416-4b4e-997e-0059973630b9/metadata" + }, + "simulatorResponse": { + "responseCode": 200, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "uuid": "12344bb4-a416-4b4e-997e-0059973630b9", + "invariantUUID": "12343f9e-3244-4d8f-a8e0-0e5d7a29eda9", + "name": "PASQUALE vMX vPE_BV Service 488", + "version": "1.0", + "toscaModelURL": "./service-fabric-configuration.zip", + "category": "Emanuel", + "lifecycleState": "CERTIFIED", + "lastUpdaterUserId": "rg276b", + "lastUpdaterFullName": null, + "distributionStatus": "DISTRIBUTED", + "artifacts": null, + "resources": null + } + } + } +]
\ No newline at end of file |