summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmichai Hemli <ah0398@intl.att.com>2018-09-26 07:58:43 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-26 07:58:43 +0000
commitc73702b2d2f4c029d9985389d776d6df5981c35e (patch)
tree9d01caf03cc38df7bb56acd04c2e36c0213175d4
parente42dd7fc12a590228effffc4b97ff8ef288aef48 (diff)
parentb756613d0ceba28142f83988c4bbc93caac1f7c1 (diff)
Merge "Add new SDC service model to simulator"
-rw-r--r--vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_sdc_catalog_services_83d587e1.json38
-rw-r--r--vid-ext-services-simulator/src/main/resources/preset_registration/service-design-and-creation.json18
2 files changed, 56 insertions, 0 deletions
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"
+ }
+ ]
+ }
+ }
}
]
}