From 30794f9184dc2220a557ba5610a434c2a2bac801 Mon Sep 17 00:00:00 2001 From: Bartosz Gardziejewski Date: Mon, 25 Mar 2019 10:07:38 +0100 Subject: Sending workflow data from UI to SO Change-Id: I39c78584c61eb317d4eaf2861ece810c1b60ab01 Issue-ID: VID-401 Signed-off-by: Bartosz Gardziejewski --- .../get_aai_services_by_customer.json | 6 ++--- .../get_aai_vlb_service_instances.json | 2 +- .../changeManagement/mso_invoke_workflow01.json | 27 ++++++++++++++++++++ .../changeManagement/mso_invoke_workflow02.json | 28 +++++++++++++++++++++ .../changeManagement/mso_invoke_workflow03.json | 29 ++++++++++++++++++++++ .../src/main/resources/simulator.properties | 2 +- 6 files changed, 89 insertions(+), 5 deletions(-) create mode 100644 vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow01.json create mode 100644 vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow02.json create mode 100644 vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/mso_invoke_workflow03.json (limited to 'vid-ext-services-simulator/src/main') 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 -- cgit 1.2.3-korg