Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
- 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
|
|
Issue-ID: DCAEGEN2-499
Change-Id: Iec19c1d8412b6e40bd66ebc69d9a0cbf46202368
Signed-off-by: Lusheng Ji <lji@research.att.com>
|
|
- 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
|
|
- 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
|
|
- 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
|
|
- 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
|
|
Change-Id: Idff7ac3c209823d0f96d4b942363d41b9e39325a
Signed-off-by: Lusheng Ji <lji@research.att.com>
Issue-ID: DCAEGEN2-325
|
|
Change-Id: I87f4438774a5e8b65bc8ceba83893a717a8a907f
Issue-ID: DCAEGEN2-249
Signed-off-by: Alex Shatov <alexs@att.com>
|
|
* 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>
|
|
* 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>
|
|
* 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>
|
|
* 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>
|