summaryrefslogtreecommitdiffstats
path: root/vid-ext-services-simulator
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-02-21 14:59:57 +0000
committerGerrit Code Review <gerrit@onap.org>2019-02-21 14:59:57 +0000
commitf6784c3d4da1b0b70e2f153e4dad8400e6dc55e7 (patch)
tree1a21d391699da8de1163e2d944fcdd285c0eee26 /vid-ext-services-simulator
parent135fc9d006c5923d4a1ca4822c5a71362f5db573 (diff)
parentc79087597e1861d12b691d1db4011641a78ab3c1 (diff)
Merge "workflow parameters API"
Diffstat (limited to 'vid-ext-services-simulator')
-rw-r--r--vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters.json41
-rw-r--r--vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters_1.json20
-rw-r--r--vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters_2.json27
-rw-r--r--vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters_3.json34
4 files changed, 122 insertions, 0 deletions
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters.json b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters.json
new file mode 100644
index 000000000..0bc683c41
--- /dev/null
+++ b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters.json
@@ -0,0 +1,41 @@
+{
+ "simulatorRequest": {
+ "method": "GET",
+ "path": "/so/workflow-parameters"
+ },
+ "simulatorResponse": {
+ "responseCode": 200,
+ "body": {
+ "parameterDefinitions": [
+ {
+ "id": 1,
+ "name": "general param 1",
+ "required": true,
+ "type": "STRING",
+ "pattern": "[0-9]*"
+ },
+ {
+ "id": 2,
+ "name": "general param 2",
+ "required": false,
+ "type": "STRING",
+ "pattern": "[-+]?[0-9]*\\.?[0-9]*"
+ },
+ {
+ "id": 3,
+ "name": "general param 3",
+ "required": true,
+ "type": "STRING",
+ "pattern": "[a-zA-Z0-9]{7}"
+ },
+ {
+ "id": 4,
+ "name": "general param 4",
+ "required": true,
+ "type": "STRING",
+ "pattern": "[0-9]{3}"
+ }
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters_1.json b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters_1.json
new file mode 100644
index 000000000..8dd5ad8f4
--- /dev/null
+++ b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters_1.json
@@ -0,0 +1,20 @@
+{
+ "simulatorRequest": {
+ "method": "GET",
+ "path": "/so/workflow-parameters/1"
+ },
+ "simulatorResponse": {
+ "responseCode": 200,
+ "body": {
+ "parameterDefinitions": [
+ {
+ "id": 1,
+ "name": "[FIRST]parameter 1",
+ "required": true,
+ "type": "STRING",
+ "pattern": "[0-9]*"
+ }
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters_2.json b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters_2.json
new file mode 100644
index 000000000..8ce37bc04
--- /dev/null
+++ b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters_2.json
@@ -0,0 +1,27 @@
+{
+ "simulatorRequest": {
+ "method": "GET",
+ "path": "/so/workflow-parameters/2"
+ },
+ "simulatorResponse": {
+ "responseCode": 200,
+ "body": {
+ "parameterDefinitions": [
+ {
+ "id": 1,
+ "name": "[SECOND] parameter 1",
+ "required": true,
+ "type": "STRING",
+ "pattern": "[0-9]*"
+ },
+ {
+ "id": 2,
+ "name": "[SECOND] parameter 2",
+ "required": false,
+ "type": "STRING",
+ "pattern": "[a-zA-Z0-9]*"
+ }
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters_3.json b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters_3.json
new file mode 100644
index 000000000..6815d5b58
--- /dev/null
+++ b/vid-ext-services-simulator/src/main/resources/preset_registration/changeManagement/workflow_parameters_3.json
@@ -0,0 +1,34 @@
+{
+ "simulatorRequest": {
+ "method": "GET",
+ "path": "/so/workflow-parameters/3"
+ },
+ "simulatorResponse": {
+ "responseCode": 200,
+ "body": {
+ "parameterDefinitions": [
+ {
+ "id": 1,
+ "name": "[THIRD] parameter 1",
+ "required": true,
+ "type": "STRING",
+ "pattern": "[0-9]*"
+ },
+ {
+ "id": 2,
+ "name": "[THIRD] parameter 2",
+ "required": false,
+ "type": "STRING",
+ "pattern": "[a-zA-Z]*"
+ },
+ {
+ "id": 3,
+ "name": "[THIRD] parameter 3",
+ "required": true,
+ "type": "STRING",
+ "pattern": "[0-9]{3}"
+ }
+ ]
+ }
+ }
+} \ No newline at end of file