Sending workflow data from UI to SO
Change-Id: I39c78584c61eb317d4eaf2861ece810c1b60ab01
Issue-ID: VID-401
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
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 cb2dc7c..a780126 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 5e998e3..91a596b 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 0000000..94fc543
--- /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 0000000..f5018f5
--- /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 0000000..a9daa7c
--- /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 922e7b1..5f1a90c 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 proprietary
simulator.enablePresetRegistration=false
-simulator.enableCentralizedRoleAccess=false
+simulator.enableCentralizedRoleAccess=false
\ No newline at end of file