Age | Commit message (Collapse) | Author | Files | Lines |
|
- external version 4.3.0
- internal version 6.1.0 for code change - no API change
- deployment-handler now expects the policyVersion as semver
or any string to support for DMaaP MR update notification
from the new PDP
- changed Dockerfile to use the alpine base image
to reduce the footprint
- brought the latest packages except zip lib
- added package-lock.json to freeze the dependencies
- latest log4js - change of configuration file format
- fixed call to cloudify API /node-instances
added &_sort=id to make the pagination consistent
- changed uuid/v4 to uuid.v4() to avoid the deprecation warning
- unit test
= coverage by nyc now
= on policy API - assert all expected nock calls are done
- integration testing with the latest policy-handler (DCAEGEN2-1851)
and the new policy-engine is requested
unit test coverage summary
Statements : 83.78% ( 1023/1221 )
Branches : 62.95% ( 333/529 )
Functions : 84.35% ( 194/230 )
Lines : 84.18% ( 1011/1201 )
Change-Id: I174aa0b8804af0378755de86be833b0b763ddc1d
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-2085
|
|
(Node 10 is the current LTS release, with support until April 2021. While
node 12 is available, it is not the current LTS release and will not
be LTS until late October 2019. 10 is the best choice for now.)
Unit test coverage summary:
Statements : 80.76% ( 995/1232 )
Branches : 58.44% ( 308/527 )
Functions : 81.13% ( 172/212 )
Lines : 81.27% ( 985/1212 )
Issue-ID: DCAEGEN2-513
Change-Id: I4a7835fbd6bfd2c4029095974769435d2e021faa
Signed-off-by: Jack Lucas <jflucas@research.att.com>
|
|
- external version 3.2.0
- internal version 5.2.0 for code change - no API change
- fixed the zip folder bug when sending the blueprint to cloudify
= this bug was preventing the opening of the blueprint
in cloudify UI because the folder record was not properly
formatted by admzip lib 0.4.7
- upgraded adm-zip lib to the latest version 0.4.13
- unit tested the zipping of the blueprint file under subfolder
without having the subfolder record in zip
= manual unzip in linux shows proper subfolder/file structure
= automatic unzip is not supported by the old ubuntu
= would need upgrading the node.js/ubuntu and installing unzip
for proper testing - see code comments in unit-test
- zip file created by admzip unzips properly both in linux
and in Windows
= zip still has some header warnings, but not critical
unit test coverage summary
Statements : 80.94% ( 943/1165 )
Branches : 58.22% ( 294/505 )
Functions : 81.28% ( 165/203 )
Lines : 81.48% ( 933/1145 )
Change-Id: I48e44f025c21ef51de5a7422c8db9433581c787f
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-855
|
|
- external version 3.0.2
- internal version 5.0.2 for code change - no API change
- https server is enabled when either of the following pairs
are found in fs:
1. etc/cert/cert and etc/cert/pass (old behavior)
2. etc/cert/cert.p12 and etc/cert/p12.pass - added alternative
- hide secrets when logging the config
- changed Dockerfile to copy the whole etc/ folder
that might contain etc/cert/* files - easier to test
- replaced CRLF with LF in swagger-ui.js - no code change
- unit tested
Coverage summary
Statements : 77.45% ( 910/1175 )
Branches : 53.7% ( 283/527 )
Functions : 79.9% ( 159/199 )
Lines : 77.85% ( 900/1156 )
Change-Id: I921e0d6ac9573f60fa98910f799f9d034b573542
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-780
|
|
* 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>
|
|
* 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>
|