summaryrefslogtreecommitdiffstats
path: root/vid-ext-services-simulator/src/main/resources
diff options
context:
space:
mode:
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2019-03-25 10:07:38 +0100
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2019-04-01 15:58:25 +0200
commit30794f9184dc2220a557ba5610a434c2a2bac801 (patch)
tree31831476e0bbee7f9cd85ff20b30723c456905fd /vid-ext-services-simulator/src/main/resources
parent92c875958080d6e3039952b3ea3f8deab704ea51 (diff)
Sending workflow data from UI to SO
Change-Id: I39c78584c61eb317d4eaf2861ece810c1b60ab01 Issue-ID: VID-401 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Diffstat (limited to 'vid-ext-services-simulator/src/main/resources')
-rw-r--r--vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_aai_services_by_customer.json6
-rw-r--r--vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_aai_vlb_service_instances.json2
-rw-r--r--vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow01.json27
-rw-r--r--vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow02.json28
-rw-r--r--vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow03.json29
-rw-r--r--vid-ext-services-simulator/src/main/resources/simulator.properties2
6 files changed, 89 insertions, 5 deletions
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_aai_services_by_customer.json b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_aai_services_by_customer.json
index cb2dc7cf5..a7801268b 100644
--- a/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_aai_services_by_customer.json
+++ b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_aai_services_by_customer.json
@@ -1,7 +1,7 @@
{
"simulatorRequest": {
"method": "GET",
- "path": "/aai/v../business/customers/customer/MSO_1610_ST",
+ "path": "/aai/v../business/customers/customer/CAR_2020_ER",
"queryParams": {
"depth": [
"2"
@@ -11,8 +11,8 @@
"simulatorResponse": {
"responseCode": 200,
"body": {
- "global-customer-id": "MSO_1610_ST",
- "subscriber-name": "MSO_1610_ST",
+ "global-customer-id": "CAR_2020_ER",
+ "subscriber-name": "CAR_2020_ER",
"subscriber-type": "INFRA",
"resource-version": "1549008901724",
"service-subscriptions": {
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_aai_vlb_service_instances.json b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_aai_vlb_service_instances.json
index 5e998e3a8..91a596b4e 100644
--- a/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_aai_vlb_service_instances.json
+++ b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/get_aai_vlb_service_instances.json
@@ -5,7 +5,7 @@
"queryParams": {
"format": ["simple"]
},
- "body": {"start": ["business/customers/customer/MSO_1610_ST/service-subscriptions/service-subscription/vLB/service-instances"], "query": "query/vnf-topology-fromServiceInstance"}
+ "body": {"start": ["business/customers/customer/CAR_2020_ER/service-subscriptions/service-subscription/vLB/service-instances"], "query": "query/vnf-topology-fromServiceInstance"}
},
"simulatorResponse": {
"responseCode": 200,
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow01.json b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow01.json
new file mode 100644
index 000000000..94fc543b6
--- /dev/null
+++ b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow01.json
@@ -0,0 +1,27 @@
+{
+ "simulatorRequest": {
+ "method" : "POST",
+ "path" : "/onap/so/infra/instanceManagement/v1/serviceInstances/[a-fA-F0-9-]*/vnfs/[a-fA-F0-9-]*/workflows/[a-fA-F0-9-]*",
+ "body" : {
+ "requestDetails": {
+ "cloudConfiguration": {
+ "lcpCloudRegionId": "RegionOne",
+ "tenantId": "982c540f6e69488eb6be5664255e00c0"
+ },
+ "requestParameters": {
+ "userParams": [
+ {
+ "[FIRST]parameter 1": "011"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "simulatorResponse": {
+ "responseCode": 200,
+ "body": {
+ "inf": "workflow 1 invoked"
+ }
+ }
+} \ No newline at end of file
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow02.json b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow02.json
new file mode 100644
index 000000000..f5018f557
--- /dev/null
+++ b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow02.json
@@ -0,0 +1,28 @@
+{
+ "simulatorRequest": {
+ "method" : "POST",
+ "path" : "/onap/so/infra/instanceManagement/v1/serviceInstances/[a-fA-F0-9-]*/vnfs/[a-fA-F0-9-]*/workflows/[a-fA-F0-9-]*",
+ "body" : {
+ "requestDetails": {
+ "cloudConfiguration": {
+ "lcpCloudRegionId": "RegionOne",
+ "tenantId": "982c540f6e69488eb6be5664255e00c0"
+ },
+ "requestParameters": {
+ "userParams": [
+ {
+ "[SECOND] parameter 2": "022",
+ "[SECOND] parameter 1": "021"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "simulatorResponse": {
+ "responseCode": 200,
+ "body": {
+ "inf": "workflow 2 invoked"
+ }
+ }
+} \ No newline at end of file
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow03.json b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow03.json
new file mode 100644
index 000000000..a9daa7cf9
--- /dev/null
+++ b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow03.json
@@ -0,0 +1,29 @@
+{
+ "simulatorRequest": {
+ "method" : "POST",
+ "path" : "/onap/so/infra/instanceManagement/v1/serviceInstances/[a-fA-F0-9-]*/vnfs/[a-fA-F0-9-]*/workflows/[a-fA-F0-9-]*",
+ "body" : {
+ "requestDetails": {
+ "cloudConfiguration": {
+ "lcpCloudRegionId": "RegionOne",
+ "tenantId": "982c540f6e69488eb6be5664255e00c0"
+ },
+ "requestParameters": {
+ "userParams": [
+ {
+ "[THIRD] parameter 3": "033",
+ "[THIRD] parameter 2": "test",
+ "[THIRD] parameter 1": "031"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "simulatorResponse": {
+ "responseCode": 200,
+ "body": {
+ "inf": "workflow 3 invoked"
+ }
+ }
+} \ No newline at end of file
diff --git a/vid-ext-services-simulator/src/main/resources/simulator.properties b/vid-ext-services-simulator/src/main/resources/simulator.properties
index 922e7b19d..5f1a90c5e 100644
--- a/vid-ext-services-simulator/src/main/resources/simulator.properties
+++ b/vid-ext-services-simulator/src/main/resources/simulator.properties
@@ -6,4 +6,4 @@ simulator.mockserver.port = 1080
#Simulator proprietary
simulator.enablePresetRegistration=false
-simulator.enableCentralizedRoleAccess=false
+simulator.enableCentralizedRoleAccess=false \ No newline at end of file