Add new SDC service model to simulator 87/66587/2
authorJoanna Jeremicz <joanna.jeremicz@nokia.com>
Fri, 14 Sep 2018 08:52:35 +0000 (10:52 +0200)
committerJoanna Jeremicz <joanna.jeremicz@nokia.com>
Mon, 17 Sep 2018 05:16:01 +0000 (07:16 +0200)
Change-Id: I92ba14ef2c157abd130aa1eaaf9dc89aa5437a77
Issue-ID: VID-205
Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_sdc_catalog_services_83d587e1.json [new file with mode: 0644]
vid-ext-services-simulator/src/main/resources/preset_registration/service-design-and-creation.json

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 (file)
index 0000000..0bc179c
--- /dev/null
@@ -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
index 679c5d7..04b1f99 100644 (file)
               ]
             }
           }
+        },
+        {
+          "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"
+                }
+              ]
+            }
+          }
         }
       ]
     }