From b756613d0ceba28142f83988c4bbc93caac1f7c1 Mon Sep 17 00:00:00 2001 From: Joanna Jeremicz Date: Fri, 14 Sep 2018 10:52:35 +0200 Subject: Add new SDC service model to simulator Change-Id: I92ba14ef2c157abd130aa1eaaf9dc89aa5437a77 Issue-ID: VID-205 Signed-off-by: Joanna Jeremicz --- .../get_sdc_catalog_services_83d587e1.json | 38 ++++++++++++++++++++++ .../service-design-and-creation.json | 18 ++++++++++ 2 files changed, 56 insertions(+) create mode 100644 vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_sdc_catalog_services_83d587e1.json (limited to 'vid-ext-services-simulator/src/main/resources') diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_sdc_catalog_services_83d587e1.json b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_sdc_catalog_services_83d587e1.json new file mode 100644 index 000000000..0bc179c64 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_sdc_catalog_services_83d587e1.json @@ -0,0 +1,38 @@ +[ + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/83d587e1-742d-4cb0-b087-3963b012dfe3/toscaModel" + }, + "simulatorResponse": { + "responseCode": 200, + "file": "csar15782222_instantiationTypeMacroWithPnf.zip" + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/83d587e1-742d-4cb0-b087-3963b012dfe3/metadata" + }, + "simulatorResponse": { + "responseCode": 200, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "uuid": "83d587e1-742d-4cb0-b087-3963b012dfe3", + "invariantUUID": "any-id", + "name": "test-pnf", + "version": "1.0", + "toscaModelURL": "./csar15782222_instantiationTypeMacroWithPnf.zip", + "category": "Mobility", + "lifecycleState": "CERTIFIED", + "lastUpdaterUserId": "rg276b", + "lastUpdaterFullName": null, + "distributionStatus": "DISTRIBUTED", + "artifacts": null, + "resources": null + } + } + } +] \ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/service-design-and-creation.json b/vid-ext-services-simulator/src/main/resources/preset_registration/service-design-and-creation.json index 679c5d771..04b1f995a 100644 --- a/vid-ext-services-simulator/src/main/resources/preset_registration/service-design-and-creation.json +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/service-design-and-creation.json @@ -428,6 +428,24 @@ ] } } + }, + { + "model": { + "model-invariant-id": "any-id", + "model-type": "resource", + "resource-version": "10001", + "model-vers": { + "model-ver": [ + { + "model-version-id": "83d587e1-742d-4cb0-b087-3963b012dfe3", + "model-name": "pnf-test", + "model-version": "1.0", + "model-description": "Should ask about CorrelationId", + "resource-version": "200021" + } + ] + } + } } ] } -- cgit 1.2.3-korg