aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-05-112.1.5 - fixed getting node-instances from cfy 4.x2.0.0-ONAPbeijing2.0.0-ONAPAlex Shatov4-4/+4
- 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 Shatov5-8/+61
- 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-07fixed 413 "request entity too large" for /policyAlex Shatov5-45/+39
- increased the message limit to 150mb on policy-update API to avoid 413 on catchup messages from policy-handler - external version 2.1.3, internal version 4.4.3 - unit test code coverage Statements : 84% ( 940/1119 ) Branches : 62.75% ( 320/510 ) Functions : 81.15% ( 155/191 ) Lines : 84.15% ( 929/1104 ) Change-Id: Iafd27b37fde6b0a310f2ba805f505f380b58ec1f Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-491
2018-05-04fixed 500 "value" argument is out of boundsAlex Shatov13-71/+87
- 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-04-064.4.1 deployment-handler -unit tests 84% coverageAlex Shatov9-131/+577
- more logging on metrics - log both req and res - unit tests of policy-update API - log timing and messaging in unit tests - code coverage 84.28% Statements 938/1113 65.51% Branches 321/490 81.58% Functions 155/190 84.34% Lines 926/1098 Change-Id: I3587135ceac76b291f83753441421a917a8b8bdf Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-258
2018-04-03Merge "Fix docker tag based on CIMAN-132"Vijay Venkatesh Kumar1-2/+2
2018-04-02Fix docker tag based on CIMAN-132Lusheng Ji1-2/+2
Issue-ID: DCAEGEN2-206 Change-Id: I9bdfc4f58e80b047d205edfa5001b533391e5f1c Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-03-30Update for CM 4.xJack Lucas4-4/+12
Change-Id: Idf4ca1de1d2a2fb616cc4eeb0d7d714fd9eb3b0d Issue-ID: DCAEGEN2-255 Signed-off-by: Jack Lucas <jflucas@research.att.com>
2018-03-27remove -SNAPSHOT from oparent versionAlex Shatov1-1/+1
- to prevent LF nexus removing the build due to snapshot Change-Id: I68717eb0e14e93624116c25c0e354fd668830ed0 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-206
2018-03-13on /policy APIs return server_instance_uuidAlex Shatov4-5/+9
- that will allow the policy-handler to identify the change of deployment-handler instance and send the catch_up message to bring all the policies up to date - proper jira ticket Change-Id: I53f99ea8316f506ab999fb6183952409ecb6e53b Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-389
2018-02-23fixed bug=crashing on /policy/componentsAlex Shatov1-4/+5
Change-Id: I9f7e7e6448f31cdabb0dd029e05aaab134148356 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-356
2018-02-22reduce messaging when deployment not busyAlex Shatov5-10/+13
- 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-21bug fix - pass all policy versions to pluginAlex Shatov1-9/+8
- on queuing of policy-update messages the deployment-handler erroneously calculated the delta versus current state instead of incremented stat. - This bug only manifests when queuing of more than one policy-update to the same deployment - relaxed mapping of policies to components on not to compare the policy versions and always map to the policy-filters - the fix lets the policy-update plugin to reduce the collection of multiple policies with the same policy_id in the message and do the final comparison against the presence of the policy and the version of the policy on component Change-Id: I5621439a60b59ac9683e7eccfa5481562d3a0d95 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-356
2018-02-12Update license textLusheng Ji8-7/+61
Change-Id: Idff7ac3c209823d0f96d4b942363d41b9e39325a Signed-off-by: Lusheng Ji <lji@research.att.com> Issue-ID: DCAEGEN2-325
2018-02-05fix copyright from 2018 to 2017-2018Alex Shatov12-12/+12
Change-Id: I87f4438774a5e8b65bc8ceba83893a717a8a907f Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2018-02-01improved message to deployment-handlerAlex Shatov3-9/+60
* added errored_scopes and scope_prefixes to the message to deployment-handler - to prevent erroneous removal of policies * unit test coverage 67% Change-Id: I97a5d2e949273b4564f95e0a1dd71ac5eca66f41 Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2018-01-24unit tests coverage 68% and more info in auditAlex Shatov18-305/+941
* 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>
2018-01-16variable collection of policies per componentAlex Shatov7-190/+355
* new feature variable collection of policies per component in DCAE Change-Id: Iafe366edd749220b347d1ba6f530d54c95e2f1a7 Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2017-11-25update versioningvagrant1-1/+1
Change-Id: Id0297ae4619d3b0c4c111b4be6746de430561357 Issue-ID: DCAEGEN2-211 Signed-off-by: vagrant <vv770d@att.com>
2017-11-20Bump minor versionJessica Wagantall2-3/+3
Bump minor version in preparation for Amsterdam branching. Change-Id: Idf115d32d65e4a3aff2b673f9e10ff69ac53252b Issue-ID: CIMAN-120 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2017-10-20Fix logging errorsv1.1.01.0.0-ONAP1.0.0-AmsterdamJack Lucas4-7/+18
Change-Id: Ibb5182e7eff9a1c2d079da28a46d09cb2c700592 Issue-Id: DCAEGEN2-171 Signed-off-by: Jack Lucas <jflucas@research.att.com>
2017-10-12Fix swagger specLusheng Ji1-34/+36
Issue-Id: DCAEGEN2-128 Change-Id: I8a5f0093777803ba83e5fe9412dd9233d30ac1a8 Signed-off-by: Lusheng Ji <lji@research.att.com>
2017-09-284.2.2. fixed starting up of deployment-handlerAlex Shatov4-21/+30
* start of dh was broken by coding for unit-test * Coverage summary Statements : 50.84% ( 514/1011 ) Branches : 26.11% ( 100/383 ) Functions : 30.11% ( 56/186 ) Lines : 51.35% ( 513/999 ) Change-Id: Ibb59f1ddd25a37a7bd58f4017837a622b04381e3 Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
2017-09-2751% unit test of the deployment-handlerAlex Shatov4-29/+295
* only unit testing the /policy/components at the moment * use -f Dockerfile_UT when building the image * unit test runs inside docker container * after docker run finishes copy the logs and coverage folder from docker container. Sample commands: docker cp test_deployment_handler:/opt/app/dh test_logs/ docker logs test_deployment_handler > \ test_logs/$(date +%Y_%m%d-%H%M%S)_test_deployment_handler.log 2>&1 Change-Id: I77276550e2ffb7094e02ffa20741afac6bfea96f Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
2017-09-18more commit+branch info for deployment_handlerAlex Shatov1-7/+14
Change-Id: Ib91f54dd94695c1c5d4759837a20776bf63288ed Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
2017-09-154.2.0 - added the policy-update handlingAlex Shatov16-710/+1191
* 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-09-11Add docker build and pushLusheng Ji3-174/+398
Issue-Id: DCAEGEN2-60 Change-Id: Ie873aacfd54ddfea9e7012cdfa88392cf9e84e33 Signed-off-by: Lusheng Ji <lji@research.att.com>
2017-09-08Cleanup project's name in SonarJessica Wagantall1-1/+1
The name parameter in the root pom.xml should match the project name in gerrit to reflect consistency in Sonar. Change-Id: I06cd95596ae0e1644d6c8532e20fe6dbe6a64d20 Issue-id: CIMAN-65 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2017-08-30Fix pom.xml, version.propertiesLusheng Ji2-128/+165
Issue-Id: DCAEGEN2-60 Change-Id: I2180cdb4ff0338d0323a353e8039a37e08cf6cc1 Signed-off-by: Lusheng Ji <lji@research.att.com>
2017-08-29Update LICENSE.txtLusheng Ji1-21/+39
Issue-Id: DCAEGEN2-86 Change-Id: I91b27265c7f4de30f0b502665cde8b1586a57967 Signed-off-by: Lusheng Ji <lji@research.att.com>
2017-08-23deployment handler initial seed codeLucas, John (jl1315)28-0/+3107
Change-Id: I0bfc86d17edead0114ea0012fb469014e978cd15 Issue-Id: DCAEGEN2-43 Signed-off-by: J. F. Lucas <jflucas@research.att.com>
2017-06-28Initial empty repositoryJessica Wagantall0-0/+0