aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cloudify.js
AgeCommit message (Collapse)AuthorFilesLines
2018-10-083.0.3 restored &_size=1000 param to cloudify3.0.33.0.1-ONAP3.0.0-ONAPcasablancaAlex Shatov1-1/+1
- external version 3.0.3 - internal version 5.0.3 for code change - no API change - restored the lost param &_size=1000 from deployment-handler to cloudify = without this fix, cloudify 4.x does not return any items thru its web api when _offset id provided - this behavior was broken by previous change https://jira.onap.org/browse/DCAEGEN2-548 - unit tested Coverage summary Statements : 76.94% ( 904/1175 ) Branches : 53.12% ( 281/529 ) Functions : 78.89% ( 157/199 ) Lines : 77.42% ( 895/1156 ) Change-Id: Idcf21115294ce3db5577def7e8ee5b00aa0850a7 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-862
2018-09-12Check deployment creation before installShadi Haidar1-0/+97
Unit Test Code Coverage: Statements : 76.85% ( 893/1162 ) Branches : 52.99% ( 275/519 ) Functions : 78.68% ( 155/197 ) Lines : 77.21% ( 884/1145 ) Issue-ID: DCAEGEN2-754 Change-Id: Id8f3fa26e8ece7e9099145ea20034829a1ad7d13 Signed-off-by: Shadi Haidar <sh1986@att.com>
2018-08-033.0.0 new dataflow on policy-update and catchupAlex Shatov1-11/+3
- external version 3.0.0 - internal version 5.0.0 for API and code - changed API and functionality - new dataflow - new dataflow between policy-handler and deployment-handler on policy-update and catchup = GET /policy - returns the deployed policy_ids+versions and policy-filters = PUT /policy updates policies on deployed components = new message format for policy-update and catchup = matching by policy_id+version and policy_filter_id only - removed POST to /policy - the obsolete API = removed the 'smart' matching of the policies by policy-filter -- it is done by the policy-handler now Coverage summary Statements : 77.06% ( 870/1129 ) Branches : 53.55% ( 264/493 ) Functions : 78.53% ( 150/191 ) Lines : 77.45% ( 862/1113 ) Change-Id: I5409f32e1acd4870f1d74b466902a796fa10f6c7 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-492
2018-06-19Extend API with tenant nameShadi Haidar1-26/+33
remove cloudify.uploadBlueprint() from cloudify.js debug log Issue-ID: DCAEGEN2-548 Change-Id: I800766aab4e95a945477c0a6eeb5adfc41a1203d Signed-off-by: Shadi Haidar <sh1986@att.com>
2018-05-112.1.5 - fixed getting node-instances from cfy 4.x2.0.0-ONAPbeijing2.0.0-ONAPAlex Shatov1-1/+1
- added _size=1000 to params on getting node-instances from cloudify = cloudify 4.x does not like to have the _offset=0 without _size param cfy assumes that _size=0 and returns no items. = that was working fine in cloudify 3.4 = the max _size is now only 1000 in 4.x versus 10,000 in 3.4 - external version 2.1.5, internal version 4.4.5 - unit test code coverage Statements : 83.99% ( 939/1118 ) Branches : 62.75% ( 320/510 ) Functions : 81.15% ( 155/191 ) Lines : 84.13% ( 928/1103 ) Change-Id: I4c47522c49acc028841c5c08787995f33e7ef0e3 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-500
2018-05-092.1.4 - fixed "value" argument is out of boundsAlex Shatov1-2/+1
- using the original "adm-zip": "0.4.7" because the latest "adm-zip": "0.4.9" is broken - external version 2.1.4, internal version 4.4.4 - unit test code coverage Statements : 83.99% ( 939/1118 ) Branches : 62.75% ( 320/510 ) Functions : 81.15% ( 155/191 ) Lines : 84.13% ( 928/1103 ) Change-Id: I7e82b1d7a51c562eb88cffbc12a0bfa0d92eebee Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-487
2018-05-04fixed 500 "value" argument is out of boundsAlex Shatov1-18/+20
- convert the EOL to linux "\n" in the blueprint before zipping and sending to cloudify to avoid crashing when the blueprint is windows "\r\n" or mac "\r" based - on catching the exception - log the stack - added logger.info that replaced the logger.debug in a variety of places - external version 2.1.2, internal version 4.4.2 - unit test code coverage Statements : 84.26% ( 942/1118 ) Branches : 64.14% ( 322/502 ) Functions : 81.68% ( 156/191 ) Lines : 84.32% ( 930/1103 ) Change-Id: I9f5f28ddd5d143ca4903316c9199df7d27682143 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-487
2018-03-30Update for CM 4.xJack Lucas1-0/+8
Change-Id: Idf4ca1de1d2a2fb616cc4eeb0d7d714fd9eb3b0d Issue-ID: DCAEGEN2-255 Signed-off-by: Jack Lucas <jflucas@research.att.com>
2018-02-22reduce messaging when deployment not busyAlex Shatov1-1/+2
- reduce the messaging when the deployment is not busy in cloudify - returned checking the version and existence when the deployment not busy - otherwise just send all data to plugin in cloudify - bumped up pom version to 2.0.1 Change-Id: I8520de58f4e344bac9f32e21ddcfed7d4ebb205b Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-356
2018-02-05fix copyright from 2018 to 2017-2018Alex Shatov1-1/+1
Change-Id: I87f4438774a5e8b65bc8ceba83893a717a8a907f Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2018-01-24unit tests coverage 68% and more info in auditAlex Shatov1-30/+28
* refactored the unit test - simpler dh server initialization * new unit tests for the dcae-deployments * new unit tests for healthcheck - info * new server_instance_uuid - unique per deployment-handler instance for logging and info * dragging req object over the stack to show req data in logging and audit and metrics * new feature variable collection of policies per component in DCAE Change-Id: I8388d7e5e11e3a6c871cf3d507bd8a07b09add29 Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2017-10-20Fix logging errorsv1.1.01.0.0-ONAP1.0.0-AmsterdamJack Lucas1-0/+6
Change-Id: Ibb5182e7eff9a1c2d079da28a46d09cb2c700592 Issue-Id: DCAEGEN2-171 Signed-off-by: Jack Lucas <jflucas@research.att.com>
2017-09-154.2.0 - added the policy-update handlingAlex Shatov1-224/+370
* API version 4.1.0 - added /policy, /swagger-ui * new: policy update with queuing of execute-operations * more data on info - branch+commit-datetime * expecting consul ip to be in /etc/hosts * added swagger-ui and added policy to *API.yaml * common logging - more audits and metrics records - directly in promise_request Change-Id: I7d32f34100a16b5b7293ed5afe67f5c8c3098495 Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
2017-08-23deployment handler initial seed codeLucas, John (jl1315)1-0/+312
Change-Id: I0bfc86d17edead0114ea0012fb469014e978cd15 Issue-Id: DCAEGEN2-43 Signed-off-by: J. F. Lucas <jflucas@research.att.com>