summaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/functions
AgeCommit message (Collapse)AuthorFilesLines
2019-07-16Merge "Python executor parameters sorted again."Brinda Santh Muthuramalingam1-10/+12
2019-07-15Merge "Minor updates in ResourceResolutionComponent class"Dan Timoney2-22/+25
2019-07-15Merge "Refractor blueprint-script to avoid cyclic dependency. There is a ↵Dan Timoney2-2/+2
possibility of cyclic dependencies between blueprint-script module and code module. To avoid cyclic dependency blueprint-script implementation should be moved to Core module. This implementation has zero impact on code functionality and code testing."
2019-07-12Minor updates in ResourceResolutionComponent classPrathamesh Morde2-22/+25
Issue-ID: CCSDK-1479 Signed-off-by: Prathamesh Morde <prathamesh.morde@bell.ca> Change-Id: I37fbce8d4621d85d3a47d38464eeeee267d46741 Signed-off-by: Prathamesh Morde <prathamesh_morde@yahoo.ca>
2019-07-12Merge "Bug fixes request input default value"Dan Timoney1-48/+50
2019-07-12Merge "Refractor duplicate cli script function"Dan Timoney4-36/+11
2019-07-11Merge "Handle blank reponse body for PUT capability"Dan Timoney1-1/+5
2019-07-10Bug fixes request input default valueBrinda Santh1-48/+50
Change-Id: I16afd71c2c35b7f270577ea784a9173ea3e0d604 Issue-ID: CCSDK-1357 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-07-10Refractor blueprint-script to avoid cyclic dependency.Brinda Santh2-2/+2
There is a possibility of cyclic dependencies between blueprint-script module and code module. To avoid cyclic dependency blueprint-script implementation should be moved to Core module. This implementation has zero impact on code functionality and code testing. Change-Id: Ic18ea848cb2e1e2e7a5f1c144714de26d1495cee Issue-ID: CCSDK-1469 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-07-10Handle blank reponse body for PUT capabilityAbdelmuhaimen Seaudi1-1/+5
Issue-Id: CCSDK-1467 Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com> Change-Id: Ibc50be0bf9986c49d2c7546f895c85c6851447bb
2019-07-10Python executor parameters sorted again.Oleg Mitsura1-10/+12
Issue-ID: CCSDK-1468 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: If8eb50fc2e8dfa084e486b02ace163eee1bfac77
2019-07-10Refractor duplicate cli script functionBrinda Santh4-36/+11
Change-Id: Ida75e839668eeeabd4577629f2bc6ec3240d7734 Issue-ID: CCSDK-1428 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-07-10Check null instead of "null" JSON node.prathameshmo1-3/+3
ISSUE-ID: CCSDK-1463 Signed-off-by: prathameshmo <prathamesh.morde@bell.ca> Change-Id: Id4e9827d94999a585b79460f147562bdd655ccfb
2019-07-09SLF4J conflict: exclude logging in where it is redundantSteve Siani1-0/+6
Issue-ID: CCSDK-1461 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com> Change-Id: I25521090a2ab8e5b9d7a9edef3178ba83b463657
2019-07-09Merge "Adding tests to NetconfMessageUtilsTest.kt"Dan Timoney18-0/+293
2019-07-09Merge "Fix ComponentRemoteAnsibleExecutorTest"Dan Timoney5-189/+1381
2019-07-09Merge "Re-enabled @Ignored tests on NetconfSessionImplTest"Dan Timoney1-13/+13
2019-07-09Merge "Re-enabled test for happy-path case on NetconfDeviceCommunicatorTest"Dan Timoney1-10/+9
2019-07-09Merge "Fix interrupt state left ON on NetconfSessionImpl.syncRpc()"Dan Timoney1-1/+0
2019-07-08Merge "Add UT for ResourceResolutionService/Component"Dan Timoney11-139/+223
2019-07-08Merge "Add unit test for resolution repository"Dan Timoney3-1/+352
2019-07-08Merge "Enforce resolutionKey or resourceId/resourceType"Dan Timoney9-160/+434
2019-07-08Merge "Share RR context within node template"Dan Timoney5-21/+43
2019-07-08Merge "Fix swagger definition for blueprint processor"Dan Timoney4-6/+32
2019-07-08Merge "Refactor resolution controllers"Dan Timoney5-87/+97
2019-07-08Merge "Remote Python executor unescapes script parameter values"Dan Timoney1-2/+14
2019-07-08Adding tests to NetconfMessageUtilsTest.ktRodrigo Ottero18-0/+293
Change-Id: If7a0d90ce264e7362e7118132303653eaaef9e69 Issue-ID: CCSDK-1046 Signed-off-by: Rodrigo Ottero <rodrigo.ottero@est.tech>
2019-07-08Fix ComponentRemoteAnsibleExecutorTestEliezio Oliveira5-189/+1381
Change-Id: I0031e354c61ba84fb280f9b50e93c8bdc772627b Issue-ID: CCSDK-1452 Signed-off-by: Eliezio Oliveira <eliezio.oliveira@est.tech>
2019-07-08Re-enabled @Ignored tests on NetconfSessionImplTestEliezio Oliveira1-13/+13
Change-Id: I7d223956c95d4effc6a6d6c4cc3bf6648ada28be Issue-ID: CCSDK-1451 Signed-off-by: Eliezio Oliveira <eliezio.oliveira@est.tech>
2019-07-08Re-enabled test for happy-path case on NetconfDeviceCommunicatorTestEliezio Oliveira1-10/+9
Change-Id: I741e87f889b346ab63c29ce17231815a87a4e94d Issue-ID: CCSDK-1450 Signed-off-by: Eliezio Oliveira <eliezio.oliveira@est.tech>
2019-07-08Fix interrupt state left ON on NetconfSessionImpl.syncRpc()Eliezio Oliveira1-1/+0
Change-Id: Ib1a58ff94f88f352636b5f0af7a6fe5244a8fe7e Issue-ID: CCSDK-1455 Signed-off-by: Eliezio Oliveira <eliezio.oliveira@est.tech>
2019-07-08Removed redundant Jython interpreter instantiation testEliezio Oliveira0-0/+0
Change-Id: I5f446dcff85d0c2b0395e32bbbdcbb7b8ebe9708 Issue-ID: CCSDK-1454 Signed-off-by: Eliezio Oliveira <eliezio.oliveira@est.tech>
2019-07-04Add UT for ResourceResolutionService/ComponentAlexis de Talhouët11-139/+223
Change-Id: I460b3747ffdf5f4cfcb486803097939d1ae1fec0 Issue-ID: CCSDK-1046 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-07-04Add unit test for resolution repositoryAlexis de Talhouët3-1/+352
Change-Id: If66670cc5397b0bcce340092ec6ff9ec008677bc Issue-ID: CCSDK-1423 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-07-04Enforce resolutionKey or resourceId/resourceTypeAlexis de Talhouët9-160/+434
There are three existing ways to perform the resolution: either we don't store the results at all, whether for resource or template either we store using the resolution key. The combination of blueprintName, blueprintVersion, artifactName and resolutionKey has to be unique. If it is re-used, it is considered as a new attempt for that specific resolution request, and process will only try to resolve resources not marked at SUCCESS in the database. either we store using the resourceId and resourceType. As previous point, the combination of blueprintName, blueprintVersion, artifactName and resolutionKey has to be unique. If it is re-used, it is considered as a new attempt for that specific resolution request, and process will only try to resolve resources not marked at SUCCESS in the database. TBD: add uni tests Issue-ID: CCSDK-1423 Change-Id: I6b7198453cf0002edfa7a0c9ea3179555211b5dc Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-07-04Share RR context within node templateAlexis de Talhouët5-21/+43
Also, mark resolution as failed for capability when failure. Change-Id: I3c1704b5b99ace7096f1d9e1cd9bb7f5b595db13 Issue-ID: CCSDK-1422 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-07-04Fix swagger definition for blueprint processorAlexis de Talhouët4-6/+32
Change-Id: I69ba541b4b301735a988cf01673827a79daf1f8c Issue-ID: CCSDK-1431 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-07-04Refactor resolution controllersAlexis de Talhouët5-87/+97
tempalte and resources for get/put API Change-Id: Ia00bdb08f5f52231481edc6de232f850c66874e9 Issue-ID: CCSDK-1423 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-07-04Error: Could not find or load main classAlexis de Talhouët1-7/+1
Use oparent as root project pom Change-Id: Ibacb94a08051c2d3f48125a66c0579fa4da94e2d Issue-ID: CCSDK-1443 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-06-25Refractor blueprint script dependencyBrinda Santh10-138/+219
Change-Id: I2e6b4dd278c1a4a3069a44f648129599365909d4 Issue-ID: CCSDK-1428 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-06-25Merge "Store resolution and expose with REST API"Dan Timoney12-99/+340
2019-06-25Merge "Allow multiple resolution for same node template"Dan Timoney3-30/+42
2019-06-25Merge "python-executor will provide output line-by-line"Dan Timoney2-6/+7
2019-06-25Merge "InputResourceResolutionProcessorTest re-enabled"Dan Timoney1-13/+16
2019-06-25Store resolution and expose with REST APIAlexis de Talhouët12-99/+340
Change-Id: Ie1fe9c02542ccd5fbfa18f1e2d6ddb633f55c214 Issue-ID: CCSDK-1423 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-06-25Allow multiple resolution for same node templateAlexis de Talhouët3-30/+42
- also fixing default mechanism - fixes rest resolution when NullNode is returned as input value - fixes rest resolution when data type specified so raw json isn't returned, only the parsed json based on the data type Change-Id: I1f4a35c6c97000b52620c9b0cc911f15016c4e80 Issue-ID: CCSDK-1422 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-06-25python-executor will provide output line-by-lineOleg Mitsura2-6/+7
* python-executor STDOUT contains cleaner logs * return status has been reworked to return a list of lines Issue-ID: CCSDK-1404 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: Ib17495e92a136ff4f950bb6e049246a9e100eb7d
2019-06-21Remote Python executor unescapes script parameter valuesSerge Simard1-2/+14
Issue-ID: CCSDK-1426 Signed-off-by: Serge Simard <serge@agilitae.com> Change-Id: I919e30b76bb472b4e0aeeb2294f0b3087a655efd
2019-06-21Add Jinja2 custom ResourceLocatorAlexis de Talhouët3-8/+4
This will allow to include template within template to create template hierarchy Change-Id: I21c5deaf51d391e1a51b9863a905c26b1891db16 Issue-ID: CCSDK-1417 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-06-20InputResourceResolutionProcessorTest re-enabledottero1-13/+16
Issue-ID: CCSDK-1419 Change-Id: Id71e1abdc493b26f08965fffeeb2111a76271dcf Signed-off-by: ottero <rodrigo.ottero@est.tech>