summaryrefslogtreecommitdiffstats
path: root/mso-api-handlers/mso-api-handler-infra/src/test
diff options
context:
space:
mode:
authorElena Kuleshov <evn@att.com>2019-03-15 13:08:49 -0400
committerElena Kuleshov <evn@att.com>2019-03-15 13:56:31 -0400
commit2f2a07e0e5cd5f8ecc5a3fed71f296cb3896809a (patch)
tree7259cdedd6d4ae8166546427fa47233f6d03d993 /mso-api-handlers/mso-api-handler-infra/src/test
parentc5327d21bafbc8c0284a659704d70106bbd93c7e (diff)
Update Tasks API with additional fields
Update Tasks API with additional fields and new valid response Change-Id: I39d85ae599f9274373bbcf66dce4752ee75f16ed Issue-ID: SO-1594 Signed-off-by: Kuleshov, Elena <evn@att.com>
Diffstat (limited to 'mso-api-handlers/mso-api-handler-infra/src/test')
-rw-r--r--mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/TasksHandlerTest.java2
-rw-r--r--mso-api-handlers/mso-api-handler-infra/src/test/resources/__files/Camunda/GetTaskVariablesResponse.json8
2 files changed, 10 insertions, 0 deletions
diff --git a/mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/TasksHandlerTest.java b/mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/TasksHandlerTest.java
index c7b4cc0574..5c6fd31422 100644
--- a/mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/TasksHandlerTest.java
+++ b/mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/TasksHandlerTest.java
@@ -89,6 +89,8 @@ public class TasksHandlerTest extends BaseTest{
taskList1.setOriginalRequestorId("VID");
taskList1.setSubscriptionServiceType("PORT-MIRROR");
taskList1.setTaskId("b5fa707a-f55a-11e7-a796-005056856d52");
+ taskList1.setDescription("test task");
+ taskList1.setTimeout("PT3000S");
taskList1.setValidResponses(validEntries);
taskList.add(taskList1);
diff --git a/mso-api-handlers/mso-api-handler-infra/src/test/resources/__files/Camunda/GetTaskVariablesResponse.json b/mso-api-handlers/mso-api-handler-infra/src/test/resources/__files/Camunda/GetTaskVariablesResponse.json
index d5a26d714c..6b930089a3 100644
--- a/mso-api-handlers/mso-api-handler-infra/src/test/resources/__files/Camunda/GetTaskVariablesResponse.json
+++ b/mso-api-handlers/mso-api-handler-infra/src/test/resources/__files/Camunda/GetTaskVariablesResponse.json
@@ -101,6 +101,14 @@
"type": "String",
"value": "Configurationactivate SDNO Post-Check",
"valueInfo": {}
+ },"description": {
+ "type": "String",
+ "value": "test task",
+ "valueInfo": {}
+ },"timeout": {
+ "type": "String",
+ "value": "PT3000S",
+ "valueInfo": {}
},"type": {
"type": "String",
"value": "fallout",