From 015b92c3d96fb42f80b018fdf8f639f1cf3298c3 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Wed, 11 Oct 2017 11:49:51 -0400 Subject: Add junit test coverage and fix bugs in VCPE Added additional junit tests for VCPE and fixed bugs that were found while testing. Change-Id: Icb6a0c936a16b775ff553c11cb07a4348bd9ebfc Issue-ID: SO-210 Signed-off-by: Jim Hahn --- .../process/CreateVcpeResCustService.bpmn | 435 +++++++++++---------- .../process/DeleteVcpeResCustService.bpmn | 38 +- .../subprocess/DoCreateAllottedResourceBRG.bpmn | 4 +- .../DoCreateAllottedResourceBRGRollback.bpmn | 100 +---- .../subprocess/DoCreateAllottedResourceTXC.bpmn | 4 +- .../DoCreateAllottedResourceTXCRollback.bpmn | 100 +---- 6 files changed, 297 insertions(+), 384 deletions(-) (limited to 'bpmn/MSOInfrastructureBPMN/src/main/resources') diff --git a/bpmn/MSOInfrastructureBPMN/src/main/resources/process/CreateVcpeResCustService.bpmn b/bpmn/MSOInfrastructureBPMN/src/main/resources/process/CreateVcpeResCustService.bpmn index c893690f79..02f7f4815a 100644 --- a/bpmn/MSOInfrastructureBPMN/src/main/resources/process/CreateVcpeResCustService.bpmn +++ b/bpmn/MSOInfrastructureBPMN/src/main/resources/process/CreateVcpeResCustService.bpmn @@ -164,7 +164,7 @@ CreateVcpeResCustService.prepareFalloutRequest(execution)]]> - + @@ -221,8 +221,8 @@ CreateVcpeResCustService.postProcessRollback(execution)]]> - - + + SequenceFlow_0orpdrl SequenceFlow_1t3cnnx @@ -254,7 +254,7 @@ CreateVcpeResCustService.postProcessRollback(execution)]]> SequenceFlow_0dr2fem - + @@ -263,7 +263,7 @@ CreateVcpeResCustService.postProcessRollback(execution)]]> SequenceFlow_1mbymcu - + @@ -291,8 +291,8 @@ CreateVcpeResCustService.postProcessRollback(execution)]]> - - + + SequenceFlow_1sl79hn SequenceFlow_0ne9n0g @@ -300,7 +300,7 @@ CreateVcpeResCustService.postProcessRollback(execution)]]> - + SequenceFlow_0ne9n0g SequenceFlow_00by7l7 SequenceFlow_17cz98f @@ -311,13 +311,13 @@ CreateVcpeResCustService.postProcessRollback(execution)]]> - + - + @@ -369,7 +369,7 @@ CreateVcpeResCustService.prepareCreateServiceInstance(execution)]]>SequenceFlow_13uceka - + SequenceFlow_1ky2sv9 SequenceFlow_0vj46ej - SequenceFlow_17g05fd + SequenceFlow_11efpvh SequenceFlow_1jbuf1t - + SequenceFlow_15vce9o @@ -542,7 +542,7 @@ CreateVcpeResCustService.prepareCreateAllottedResourceBRG(execution)]]> SequenceFlow_0p75l97 SequenceFlow_0ws7fjn - @@ -560,12 +560,12 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> SequenceFlow_13iuk3s - SequenceFlow_1mkdhw9 SequenceFlow_13iuk3s + SequenceFlow_0k5vcuu SequenceFlow_1ufio7c - + in 1702 scope only one VNF will be created @@ -600,6 +600,22 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> SequenceFlow_1cgpklo + + SequenceFlow_17g05fd + SequenceFlow_11efpvh + + + + + SequenceFlow_1mkdhw9 + SequenceFlow_0k5vcuu + + + @@ -730,82 +746,82 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - - - + + + - + - - - - + + + + - + - - + + - + - - - - + + + + - + @@ -830,41 +846,41 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> - + - + - + - - + + - + - - - + + + - + - - + + - + - - + + - + @@ -881,17 +897,17 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> - + - + - - - + + + - + @@ -922,31 +938,31 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> - + - - - - + + + + - + - + - + - + - - + + - + @@ -986,42 +1002,42 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> - + - + - + - + - + - - - + + + - + - - + + - + - - - - + + + + - + @@ -1061,63 +1077,63 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> - + - + - + - + - - + + - + - + - + - - + + - + - - - + + + - + - + - + - - + + - + - - + + - + @@ -1140,85 +1156,85 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> - + - + - + - + - + - + - + - - + + - + - - + + - + - + - + - - - + + + - + - - + + - + - - - - + + + + - + - - + + - + - - - + + + - + @@ -1313,10 +1329,10 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> - + - + @@ -1343,28 +1359,25 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> - - - - + + - + - - - + + - + - + - + @@ -1391,69 +1404,68 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> - + - - - - + + + + - + - + - + - - + + - + - - + + - + - - - + + + - + - - - + + - + - + - - + + - + - - - + + + - + @@ -1467,6 +1479,27 @@ CreateVcpeResCustService.prepareVnfAndModulesCreate(execution)]]> + + + + + + + + + + + + + + + + + + + + + diff --git a/bpmn/MSOInfrastructureBPMN/src/main/resources/process/DeleteVcpeResCustService.bpmn b/bpmn/MSOInfrastructureBPMN/src/main/resources/process/DeleteVcpeResCustService.bpmn index 39fcd66c60..38e1d43910 100644 --- a/bpmn/MSOInfrastructureBPMN/src/main/resources/process/DeleteVcpeResCustService.bpmn +++ b/bpmn/MSOInfrastructureBPMN/src/main/resources/process/DeleteVcpeResCustService.bpmn @@ -22,9 +22,9 @@ DeleteVcpeResCustService.preProcessRequest(execution) ]]> - + SequenceFlow_10o22u2 - + SequenceFlow_12ilko1 @@ -38,7 +38,7 @@ DeleteVcpeResCustService.postProcessResponse(execution)]]> - + @@ -73,8 +73,8 @@ execution.setVariable("DeleteVcpeResCustServiceSuccessIndicator", true)]]>SequenceFlow_2 SequenceFlow_5 +def DeleteVcpeResCustService = new DeleteVcpeResCustService() +DeleteVcpeResCustService.processJavaException(execution)]]> @@ -108,7 +108,7 @@ DeleteServiceInstanceInfra.processJavaException(execution)]]> - + @@ -185,9 +185,9 @@ DeleteVcpeResCustService.prepareServiceDelete(execution)]]> SequenceFlow_05cjs89 SequenceFlow_0snq0kw - + SequenceFlow_0zaircn - + SequenceFlow_09i2jj0 @@ -214,7 +214,7 @@ DeleteVcpeResCustService.prepareServiceDelete(execution)]]> SequenceFlow_0zaircn - + @@ -223,7 +223,7 @@ DeleteVcpeResCustService.prepareServiceDelete(execution)]]> - + @@ -261,9 +261,9 @@ DeleteVcpeResCustService.prepareServiceDelete(execution)]]> SequenceFlow_1yamcyn SequenceFlow_19cxgtm SequenceFlow_128485i - + SequenceFlow_1lfph6u @@ -286,9 +286,9 @@ DeleteGenericMacroServiceNetworkVnf.prepareVnfAndModulesDelete(execution)]]> SequenceFlow_04fys47 SequenceFlow_1o5cutr - + SequenceFlow_1o5cutr @@ -298,10 +298,10 @@ DeleteGenericMacroServiceNetworkVnf.validateVnfDelete(execution)]]> - 0}]]> + 0}]]> - + @@ -748,7 +748,7 @@ DeleteGenericMacroServiceNetworkVnf.validateVnfDelete(execution)]]> - + diff --git a/bpmn/MSOInfrastructureBPMN/src/main/resources/subprocess/DoCreateAllottedResourceBRG.bpmn b/bpmn/MSOInfrastructureBPMN/src/main/resources/subprocess/DoCreateAllottedResourceBRG.bpmn index c1cb102e47..a35371e97c 100644 --- a/bpmn/MSOInfrastructureBPMN/src/main/resources/subprocess/DoCreateAllottedResourceBRG.bpmn +++ b/bpmn/MSOInfrastructureBPMN/src/main/resources/subprocess/DoCreateAllottedResourceBRG.bpmn @@ -16,7 +16,7 @@ dcar.preProcessRequest(execution)]]> notFound SequenceFlow_6 - @@ -207,7 +207,7 @@ dcar.validateSDNCResp(execution, response, "activate" )]]> SequenceFlow_0f7u5pu SequenceFlow_16o7col - - + SequenceFlow_1 @@ -55,7 +55,6 @@ rbk.validateSDNCResp(execution, response, "deactivate" )]]> SequenceFlow_0eb41vb - SequenceFlow_149adfw SequenceFlow_0sh1u69 SequenceFlow_1s7yieq - SequenceFlow_041l824 SequenceFlow_00i7x43 SequenceFlow_00i7x43 SequenceFlow_13mhe5h + SequenceFlow_0m483td SequenceFlow_03bkrg4 SequenceFlow_0c5h00o + SequenceFlow_0dzz8fp SequenceFlow_0m483rd SequenceFlow_0m483st @@ -143,7 +143,7 @@ rbk.updateAaiAROrchStatus(execution, "PendingDelete")]]> - + @@ -175,6 +175,7 @@ rbk.postProcessRequest(execution)]]> SequenceFlow_0sh1u69 + SequenceFlow_0m483st SequenceFlow_04hdt5s SequenceFlow_0m483td @@ -195,11 +196,7 @@ rbk.postProcessRequest(execution)]]> SequenceFlow_0xm9g9s - - SequenceFlow_0m483td - - - + SequenceFlow_13mhe5h @@ -222,25 +219,7 @@ rbk.postProcessRequest(execution)]]> - - - SequenceFlow_0dzz8fp - - - - SequenceFlow_0m483st - - - - SequenceFlow_149adfw - - - - SequenceFlow_041l824 - - - - + @@ -413,11 +392,12 @@ rbk.postProcessRequest(execution)]]> - - - + + + + - + @@ -522,17 +502,13 @@ rbk.postProcessRequest(execution)]]> - - - - - - - + + + - + @@ -587,47 +563,11 @@ rbk.postProcessRequest(execution)]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + diff --git a/bpmn/MSOInfrastructureBPMN/src/main/resources/subprocess/DoCreateAllottedResourceTXC.bpmn b/bpmn/MSOInfrastructureBPMN/src/main/resources/subprocess/DoCreateAllottedResourceTXC.bpmn index 7978ea6220..178534f797 100644 --- a/bpmn/MSOInfrastructureBPMN/src/main/resources/subprocess/DoCreateAllottedResourceTXC.bpmn +++ b/bpmn/MSOInfrastructureBPMN/src/main/resources/subprocess/DoCreateAllottedResourceTXC.bpmn @@ -16,7 +16,7 @@ dcar.preProcessRequest(execution)]]> notFound SequenceFlow_6 - @@ -207,7 +207,7 @@ dcar.validateSDNCResp(execution, response, "activate" )]]> SequenceFlow_0f7u5pu SequenceFlow_16o7col - - + SequenceFlow_1 @@ -55,7 +55,6 @@ rbk.validateSDNCResp(execution, response, "deactivate" )]]> SequenceFlow_0eb41vb - SequenceFlow_149adfw SequenceFlow_0sh1u69 SequenceFlow_1s7yieq - SequenceFlow_041l824 SequenceFlow_00i7x43 SequenceFlow_00i7x43 SequenceFlow_13mhe5h + SequenceFlow_0m483td SequenceFlow_03bkrg4 SequenceFlow_0c5h00o + SequenceFlow_0dzz8fp SequenceFlow_0m483rd SequenceFlow_0m483st @@ -143,7 +143,7 @@ rbk.updateAaiAROrchStatus(execution, "PendingDelete")]]> - + @@ -175,6 +175,7 @@ rbk.postProcessRequest(execution)]]> SequenceFlow_0sh1u69 + SequenceFlow_0m483st SequenceFlow_04hdt5s SequenceFlow_0m483td @@ -195,11 +196,7 @@ rbk.postProcessRequest(execution)]]> SequenceFlow_0xm9g9s - - SequenceFlow_0m483td - - - + SequenceFlow_13mhe5h @@ -222,25 +219,7 @@ rbk.postProcessRequest(execution)]]> - - - SequenceFlow_0dzz8fp - - - - SequenceFlow_0m483st - - - - SequenceFlow_149adfw - - - - SequenceFlow_041l824 - - - - + @@ -413,11 +392,12 @@ rbk.postProcessRequest(execution)]]> - - - + + + + - + @@ -522,17 +502,13 @@ rbk.postProcessRequest(execution)]]> - - - - - - - + + + - + @@ -587,47 +563,11 @@ rbk.postProcessRequest(execution)]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + -- cgit 1.2.3-korg