diff options
Diffstat (limited to 'cmso-service/src/test/templates/changemanagement')
11 files changed, 315 insertions, 0 deletions
diff --git a/cmso-service/src/test/templates/changemanagement/MultipleVnfImmediate.json.template b/cmso-service/src/test/templates/changemanagement/MultipleVnfImmediate.json.template new file mode 100644 index 0000000..632d874 --- /dev/null +++ b/cmso-service/src/test/templates/changemanagement/MultipleVnfImmediate.json.template @@ -0,0 +1,24 @@ +{ + "domain" : "${domain}", + "scheduleId" : "${uuid}", + "userId" : "${userId}", + "domainData" : [{ + "CallbackUrl" : "${callbackUrl}", + "CallbackData" : "${callbackData}", + "WorkflowName" : "${workflow}" + } + ], + "schedulingInfo" : { + "normalDurationInSeconds" : ${normalDurationInSeconds}, + "additionalDurationInSeconds" : ${additionalDurationInSeconds}, + "vnfDetails" : [{ + "groupId" : "", + "node" : [ + "VNFName1${testid}", + "VNFName2${testid}", + "VNFName3${testid}" + ] + } + ] + } +} diff --git a/cmso-service/src/test/templates/changemanagement/OneGroupMultipleVNFsOneChangeWindow.json.template b/cmso-service/src/test/templates/changemanagement/OneGroupMultipleVNFsOneChangeWindow.json.template new file mode 100644 index 0000000..e08f33b --- /dev/null +++ b/cmso-service/src/test/templates/changemanagement/OneGroupMultipleVNFsOneChangeWindow.json.template @@ -0,0 +1,32 @@ +{ + "domain" : "ChangeManagement", + "scheduleId" : "${uuid}", + "scheduleName" : "${uuid}", + "userId" : "${userId}", + "domainData" : [{ + "CallbackUrl" : "${callbackUrl}", + "CallbackData" : "${callbackData}", + "WorkflowName" : "${workflow}" + } + ], + "schedulingInfo" : { + "normalDurationInSeconds" : 100, + "additionalDurationInSeconds" : 10, + "concurrencyLimit" : 10, + "policyId" : "SNIRO_CM.TimeLimitAndVerticalTopology_pserver", + "vnfDetails" : [{ + "groupId" : "", + "node" : [ + "VNFName1${testid}", + "VNFName2${testid}", + "VNFName3${testid}" + ], + "changeWindow" : [{ + "startTime" : "${start_time1}", + "endTime" : "${end_time1}" + } + ] + } + ] + } +} diff --git a/cmso-service/src/test/templates/changemanagement/OneGroupMultipleVNSsTwoChangeWindows.json.template b/cmso-service/src/test/templates/changemanagement/OneGroupMultipleVNSsTwoChangeWindows.json.template new file mode 100644 index 0000000..64d8613 --- /dev/null +++ b/cmso-service/src/test/templates/changemanagement/OneGroupMultipleVNSsTwoChangeWindows.json.template @@ -0,0 +1,37 @@ +{ + "domain" : "ChangeManagement", + "scheduleId" : "${uuid}", + "scheduleName" : "${uuid}", + "userId" : "${userId}", + "domainData" : [{ + "CallbackUrl" : "${callbackUrl}", + "CallbackData" : "${callbackData}", + "WorkflowName" : "${workflow}" + } + ], + "schedulingInfo" : { + "normalDurationInSeconds" : 100, + "additionalDurationInSeconds" : 10, + "concurrencyLimit" : 10, + "policyId" : "SNIRO_CM.TimeLimitAndVerticalTopology_pserver", + "vnfDetails" : [{ + "groupId" : "Group1", + "node" : [ + "VNFName1${testid}", + "VNFName2${testid}", + "VNFName3${testid}", + "VNFName4${testid}" + ], + "changeWindow" : [{ + "startTime" : "${start_time1}", + "endTime" : "${end_time1}" + },{ + "startTime" : "${start_time2}", + "endTime" : "${end_time2}" + } + ] + } + ] + } +} + diff --git a/cmso-service/src/test/templates/changemanagement/OneVnfImmediate.json.template b/cmso-service/src/test/templates/changemanagement/OneVnfImmediate.json.template new file mode 100644 index 0000000..1ca387b --- /dev/null +++ b/cmso-service/src/test/templates/changemanagement/OneVnfImmediate.json.template @@ -0,0 +1,25 @@ +{ + "domain" : "ChangeManagement", + "scheduleId" : "${uuid}", + "scheduleName" : "${uuid}", + "userId" : "${userId}", + "domainData" : [{ + "CallbackUrl" : "${callbackUrl}", + "CallbackData" : "${callbackData}", + "WorkflowName" : "${workflow}", + "plans" : "Run ${workflow}", + "question.000000000000001" : "Yes" + } + ], + "schedulingInfo" : { + "normalDurationInSeconds" : 100, + "additionalDurationInSeconds" : 10, + "vnfDetails" : [{ + "groupId" : "group1", + "node" : [ + "dummy_node" + ] + } + ] + } +} diff --git a/cmso-service/src/test/templates/changemanagement/OneVnfImmediateIncorrectWorkflow.json.template b/cmso-service/src/test/templates/changemanagement/OneVnfImmediateIncorrectWorkflow.json.template new file mode 100644 index 0000000..ec14a91 --- /dev/null +++ b/cmso-service/src/test/templates/changemanagement/OneVnfImmediateIncorrectWorkflow.json.template @@ -0,0 +1,20 @@ +{ + "domain" : "ChangeManagement", + "scheduleId" : "${uuid}", + "scheduleName" : "${uuid}", + "userId" : "${userId}", + "domainData" : [{ + "CallbackUrl" : "${callbackUrl}", + "CallbackData" : "${callbackData}", + "WorkflowName" : "Not A Workflow" + } + ], + "schedulingInfo" : { + "vnfDetails" : [{ + "node" : [ + "dummy${testid}" + ] + } + ] + } +} diff --git a/cmso-service/src/test/templates/changemanagement/OneVnfImmediateReplaceVNFInfra.json.template b/cmso-service/src/test/templates/changemanagement/OneVnfImmediateReplaceVNFInfra.json.template new file mode 100644 index 0000000..5f8e1de --- /dev/null +++ b/cmso-service/src/test/templates/changemanagement/OneVnfImmediateReplaceVNFInfra.json.template @@ -0,0 +1,22 @@ +{ + "domain" : "ChangeManagement", + "scheduleId" : "${uuid}", + "scheduleName" : "${uuid}", + "userId" : "${userId}", + "domainData" : [{ + "CallbackUrl" : "${callbackUrl}", + "CallbackData" : "${callbackData}", + "WorkflowName" : "ReplaceVnfInfra" + } + ], + "schedulingInfo" : { + "normalDurationInSeconds" : 100, + "additionalDurationInSeconds" : 10, + "vnfDetails" : [{ + "node" : [ + "dummynode" + ] + } + ] + } +} diff --git a/cmso-service/src/test/templates/changemanagement/OneVnfOneChangeWindow.json.template b/cmso-service/src/test/templates/changemanagement/OneVnfOneChangeWindow.json.template new file mode 100644 index 0000000..e1f21d3 --- /dev/null +++ b/cmso-service/src/test/templates/changemanagement/OneVnfOneChangeWindow.json.template @@ -0,0 +1,30 @@ +{ + "domain" : "ChangeManagement", + "scheduleId" : "${uuid}", + "scheduleName" : "${uuid}", + "userId" : "${userId}", + "domainData" : [{ + "CallbackUrl" : "${callbackUrl}", + "CallbackData" : "${callbackData}", + "WorkflowName" : "${workflow}" + } + ], + "schedulingInfo" : { + "normalDurationInSeconds" : 100, + "additionalDurationInSeconds" : 10, + "concurrencyLimit" : 10, + "policyId" : "SNIRO_CM.TimeLimitAndVerticalTopology_pserver", + "vnfDetails" : [{ + "groupId" : "group", + "node" : [ + "dlltx43gvbc" + ], + "changeWindow" : [{ + "startTime" : "${start_time1}", + "endTime" : "${end_time1}" + } + ] + } + ] + } +} diff --git a/cmso-service/src/test/templates/changemanagement/OneVnfOneChangeWindowEmptyCallbackData.json.template b/cmso-service/src/test/templates/changemanagement/OneVnfOneChangeWindowEmptyCallbackData.json.template new file mode 100644 index 0000000..b6d7e72 --- /dev/null +++ b/cmso-service/src/test/templates/changemanagement/OneVnfOneChangeWindowEmptyCallbackData.json.template @@ -0,0 +1,25 @@ +{ + "domain" : "ChangeManagement", + "scheduleId" : "${uuid}", + "scheduleName" : "", + "userId" : "${userId}", + "domainData" : [{ + "CallbackUrl" : "${callbackUrl}", + "CallbackData" : "", + "WorkflowName" : "Build Software Upgrade for vNFs" + } + ], + "schedulingInfo" : { + "normalDurationInSeconds" : 100, + "additionalDurationInSeconds" : 10, + "concurrencyLimit" : 10, + "policyId" : "SNIRO_CM.TimeLimitAndVerticalTopology_v2_split_1", + "vnfDetails" : [{ + "groupId" : "", + "node" : [ + "dummy${testid}" + ] + } + ] + } +} diff --git a/cmso-service/src/test/templates/changemanagement/OneVnfOneChangeWindowEmptyCallbackURL.json.template b/cmso-service/src/test/templates/changemanagement/OneVnfOneChangeWindowEmptyCallbackURL.json.template new file mode 100644 index 0000000..92e5b4b --- /dev/null +++ b/cmso-service/src/test/templates/changemanagement/OneVnfOneChangeWindowEmptyCallbackURL.json.template @@ -0,0 +1,30 @@ +{ + "domain" : "ChangeManagement", + "scheduleId" : "${uuid}", + "scheduleName" : "${uuid}", + "userId" : "${userId}", + "domainData" : [{ + "CallbackUrl" : "", + "CallbackData" : "${callbackData}", + "WorkflowName" : "Build Software Upgrade for vNFs" + } + ], + "schedulingInfo" : { + "normalDurationInSeconds" : 100, + "additionalDurationInSeconds" : 10, + "concurrencyLimit" : 10, + "policyId" : "SNIRO_CM.TimeLimitAndVerticalTopology_v2_split_1", + "vnfDetails" : [{ + "groupId" : "", + "node" : [ + "dummy${testid}" + ], + "changeWindow" : [{ + "startTime" : "${start_time1}", + "endTime" : "${end_time1}" + } + ] + } + ] + } +} diff --git a/cmso-service/src/test/templates/changemanagement/OneVnfOneChangeWindowReplaceVNFInfra.json.template b/cmso-service/src/test/templates/changemanagement/OneVnfOneChangeWindowReplaceVNFInfra.json.template new file mode 100644 index 0000000..3e463a8 --- /dev/null +++ b/cmso-service/src/test/templates/changemanagement/OneVnfOneChangeWindowReplaceVNFInfra.json.template @@ -0,0 +1,30 @@ +{ + "domain" : "ChangeManagement", + "scheduleId" : "${uuid}", + "scheduleName" : "${uuid}", + "userId" : "${userId}", + "domainData" : [{ + "CallbackUrl" : "${callbackUrl}", + "CallbackData" : "${callbackData}", + "WorkflowName" : "Replace" + } + ], + "schedulingInfo" : { + "normalDurationInSeconds" : 100, + "additionalDurationInSeconds" : 10, + "concurrencyLimit" : 10, + "policyId" : "SNIRO_CM.TimeLimitAndVerticalTopology_v2_split_1", + "vnfDetails" : [{ + "groupId" : "", + "node" : [ + "dummy${testid}" + ], + "changeWindow" : [{ + "startTime" : "${start_time1}", + "endTime" : "${end_time1}" + } + ] + } + ] + } +} diff --git a/cmso-service/src/test/templates/changemanagement/VidCallbackData.json.template b/cmso-service/src/test/templates/changemanagement/VidCallbackData.json.template new file mode 100644 index 0000000..f523714 --- /dev/null +++ b/cmso-service/src/test/templates/changemanagement/VidCallbackData.json.template @@ -0,0 +1,40 @@ +{ + "requestType" : "Update", + "requestDetails" : [{ + "vnfName" : "dummynode", + "vnfInstanceId" : "dummy-vnf-id", + "modelInfo" : { + "modelType" : "vnf", + "modelInvariantId" : "dummy-model-id", + "modelVersionId" : "dummy-model-version-id", + "modelName" : "dummy-model-name", + "modelCustomizationId" : "dummy-model-cust-id" + }, + "cloudConfiguration" : { + "lcpCloudRegionId" : "dummy-region-id", + "tenantId" : "dummy-tenent-id" + }, + "requestInfo" : { + "source" : "VID", + "suppressRollback" : false, + "requestorId" : "onap" + }, + "relatedInstanceList" : [{ + "relatedInstance" : { + "instanceId" : "dummy-instance-id", + "modelInfo" : { + "modelType" : "service", + "modelInvariantId" : "dummy-model-id", + "modelVersionId" : "dummy-model-version-id", + "modelName" : "dummy-model-name", + "modelVersion" : "4.0" + } + } + } + ], + "requestParameters" : { + "usePreload" : true + } + } + ] +} |