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-vid-test-444 | |
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-vid-test-444')
4 files changed, 463 insertions, 0 deletions
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-vid-test-444/aai_filter_service_instance_by_id.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-vid-test-444/aai_filter_service_instance_by_id.json new file mode 100644 index 000000000..0d15e8ab4 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-vid-test-444/aai_filter_service_instance_by_id.json @@ -0,0 +1,21 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/search/nodes-query", + "queryParams": { + "search-node-type": "service-instance", + "filter": "service-instance-id:EQUALS:3f93c7cb-2fd0-4557-9514-e189b7b04f9d" + } + }, + "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/3f93c7cb-2fd0-4557-9514-e189b7b04f9d" + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-vid-test-444/aai_filter_service_instance_by_name.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-vid-test-444/aai_filter_service_instance_by_name.json new file mode 100644 index 000000000..03de297eb --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-vid-test-444/aai_filter_service_instance_by_name.json @@ -0,0 +1,21 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/search/nodes-query", + "queryParams": { + "search-node-type": "service-instance", + "filter": "service-instance-name:EQUALS:vid-test-444" + } + }, + "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/3f93c7cb-2fd0-4557-9514-e189b7b04f9d" + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-vid-test-444/aai_named_query_for_view_edit.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-vid-test-444/aai_named_query_for_view_edit.json new file mode 100644 index 000000000..a12f48734 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-vid-test-444/aai_named_query_for_view_edit.json @@ -0,0 +1,383 @@ +{ + "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":"3f93c7cb-2fd0-4557-9514-e189b7b04f9d" + }, + "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":"1707vidnf", + "service-instance":{ + "service-instance-id":"3f93c7cb-2fd0-4557-9514-e189b7b04f9d", + "service-instance-name":"vid-test-444" + }, + "extra-properties":{ + + }, + "inventory-response-items":{ + "inventory-response-item":[ + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"c015cc0f-0f37-4488-aabf-53795fd93cd3", + "vnf-name":"fsd", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1502299355826", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"null", + "nf-function":"null", + "nf-role":"null", + "nf-naming-code":"null" + }, + "extra-properties":{ + + }, + "inventory-response-items":{ + "inventory-response-item":[ + { + "volume-group":{ + "volume-group-id":"d9db0900-31f6-4880-8658-8c996c6123b4", + "volume-group-name":"f", + "heat-stack-id":"", + "vnf-type":"1707vidnf/null", + "orchestration-status":"Pending", + "vf-module-model-customization-id":"a06b0a2b-0cb5-401c-bf29-b64bb6a114b9", + "resource-version":"1508048984071" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VidPcrf051517..pcrf_base_template_v3_0..module-0", + "vf-module":{ + "vf-module-id":"f2805715-e24f-4c8a-9eb3-6c618da7691d", + "vf-module-name":"aa", + "orchestration-status":"PendingCreate", + "is-base-vf-module":true, + "resource-version":"1504770843380", + "model-invariant-id":"df35ebf5-880b-4052-b4dc-5fbf38a423ca", + "model-version-id":"bbf63386-42ec-4cae-a6a1-a8dade4e09e1", + "model-customization-id":"56f23f2a-de4b-4f72-a51c-439970350885", + "module-index":0 + }, + "extra-properties":{ + + } + }, + { + "model-name":"VidPcrf051517..pcrf_nimbus_pcm..module-4", + "vf-module":{ + "vf-module-id":"f91515e5-cf8d-4abf-aacc-5bc5c5a47f09", + "vf-module-name":"gg", + "orchestration-status":"PendingCreate", + "is-base-vf-module":false, + "resource-version":"1504694876599", + "model-invariant-id":"eb5a1e09-7f46-4f1c-ab7a-b017bad95261", + "model-version-id":"fa1c8558-006c-4fb6-82f2-4fc0646d6b06", + "model-customization-id":"222bd8f2-341d-4419-aa0e-98398fa34050", + "module-index":1 + }, + "extra-properties":{ + + } + }, + { + "model-name":"VidPcrf051517..pcrf_nimbus_pcm..module-4", + "vf-module":{ + "vf-module-id":"a231a99c-7e75-4d6d-a0fb-5c7d26f30f77", + "vf-module-name":"my_vfModule", + "orchestration-status":"pending-delete", + "is-base-vf-module":false, + "resource-version":"1505044772033", + "model-invariant-id":"eb5a1e09-7f46-4f1c-ab7a-b017bad95261", + "model-version-id":"fa1c8558-006c-4fb6-82f2-4fc0646d6b06", + "model-customization-id":"222bd8f2-341d-4419-aa0e-98398fa34050", + "module-index":0 + }, + "extra-properties":{ + + } + } + ] + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"0846287b-65bf-45a6-88f6-6a1af4149fac", + "vnf-name":"kjkjk", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1504008534044", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + }, + "inventory-response-items":{ + "inventory-response-item":[ + { + "volume-group":{ + "volume-group-id":"973cb0a6-f0b5-4a45-b995-db265bda182c", + "volume-group-name":"fdgfg", + "heat-stack-id":"", + "vnf-type":"1707vidnf/null", + "orchestration-status":"Pending", + "vf-module-model-customization-id":"a06b0a2b-0cb5-401c-bf29-b64bb6a114b9", + "resource-version":"1508413877324" + }, + "extra-properties":{ + + } + }, + { + "volume-group":{ + "volume-group-id":"09203a8b-29e7-4e76-8dd0-565f6a081f82", + "volume-group-name":"fdgfd", + "heat-stack-id":"", + "vnf-type":"1707vidnf/null", + "orchestration-status":"Pending", + "vf-module-model-customization-id":"a06b0a2b-0cb5-401c-bf29-b64bb6a114b9", + "resource-version":"1508413828948" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VidPcrf051517..pcrf_nimbus_pcm..module-4", + "vf-module":{ + "vf-module-id":"a9b70ac0-5917-4203-a308-0e6920e6d09b", + "vf-module-name":"vf_module2", + "orchestration-status":"PendingCreate", + "is-base-vf-module":false, + "resource-version":"1504694397912", + "model-invariant-id":"eb5a1e09-7f46-4f1c-ab7a-b017bad95261", + "model-version-id":"fa1c8558-006c-4fb6-82f2-4fc0646d6b06", + "model-customization-id":"222bd8f2-341d-4419-aa0e-98398fa34050", + "module-index":0 + }, + "extra-properties":{ + + } + } + ] + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"9908b762-136f-4b1f-8eb4-ef670ef58bb4", + "vnf-name":"uiui", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"vHNGWaas", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1504516218649", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"543931f5-e50e-45a2-a69f-ab727e4c7f2f", + "vnf-name":"sdfsdfdsf", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"LRSI-OSPF", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1506509961062", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"25e84884-22d5-44c9-8212-cb459f63e0ba", + "vnf-name":"sdada", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"VIPRaaS", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1506509479125", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"013fb0ba-977b-496c-9faa-7f8e5f083eec", + "vnf-name":"gvb", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1508048678134", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"06914296-cb46-4b62-9453-329a706a6cbb", + "vnf-name":"lkllll", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1504507099829", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"c55da606-cf38-42c7-bc3c-be8e23b19299", + "vnf-name":"ss", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1508048827342", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"27cc0914-70be-453e-b552-3df6b1d6cda9", + "vnf-name":"yh", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"db171b8f-115c-4992-a2e3-ee04cae357e0", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1504507324472", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + } + ] + } + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/SI-vid-test-444/get_sdc_catalog_services_vid-test-444.json b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-vid-test-444/get_sdc_catalog_services_vid-test-444.json new file mode 100644 index 000000000..80d4d7b76 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/SI-vid-test-444/get_sdc_catalog_services_vid-test-444.json @@ -0,0 +1,38 @@ +[ + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/240376de-870e-48df-915a-31f140eedd2c/toscaModel" + }, + "simulatorResponse": { + "responseCode": 200, + "file": "vid-test-444-demo-csar.zip" + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/240376de-870e-48df-915a-31f140eedd2c/metadata" + }, + "simulatorResponse": { + "responseCode": 200, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "uuid": "240376de-870e-48df-915a-31f140eedd2c", + "invariantUUID": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "name": "Demo Service", + "version": "1.0", + "toscaModelURL": "./vid-test-444-demo-csar.zip", + "category": "Mobility", + "lifecycleState": "CERTIFIED", + "lastUpdaterUserId": "rg276b", + "lastUpdaterFullName": null, + "distributionStatus": "DISTRIBUTED", + "artifacts": null, + "resources": null + } + } + } +]
\ No newline at end of file |