aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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