summaryrefslogtreecommitdiffstats
path: root/onap-dcae-dcaepolicy-lib
AgeCommit message (Collapse)AuthorFilesLines
2020-02-07sonarcloud support6.0.0-ONAPfrankfurtVijay Venkatesh Kumar1-2/+2
Change-Id: Ia8a517c391ca7a065ecf2bef73e3ad1ce95e7e92 Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com> Issue-ID: DCAEGEN2-2065
2019-11-26policy lib 3.x supportSchmalzried, Terry (ts862m)6-36/+39
Issue-ID: DCAEGEN2-1548 Change-Id: Id1c10f08f1375554aa744332bdfe37e1d6afc9d8 Signed-off-by: Schmalzried, Terry (ts862m) <ts862m@att.com>
2019-01-18rm sleeper store_policiesSchmalzried, Terry (ts862m)4-8/+5
Issue-ID: DCAEGEN2-1086 Change-Id: I7ea5dbb38a6ec4501c54be65ffd7ace85e408ce1 Signed-off-by: Schmalzried, Terry (ts862m) <ts862m@att.com>
2018-07-31update version to fix dependency issuevagrant1-2/+1
Change-Id: I6479d23e17775f5496b51df69099ea26cc818b3d Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com> Issue-ID: DCAEGEN2-662
2018-07-10tell tox not to complain that mkdir is externalAndrew Gauld1-1/+5
Change-Id: I999e33dd666a1c2c46ec281263050b05db8c726e Issue-ID: DCAEGEN2-607 Signed-off-by: Andrew Gauld <ag1282@att.com>
2018-04-122.4.0 onap-dcae-dcaepolicy-libAlex Shatov4-36/+233
- discovering consul at consul:8500 instead of localhost:8500 - added and refactored unit tests for discovery -- coverage 94% Change-Id: Id9f52cf95ab3dca0b2759021b408925a1dc87264 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-438
2018-03-232.3.0 onap-dcae-dcaepolicy-libAlex Shatov4-38/+35
- configAttributes in policy_filter being a stringified json, rather than the map due to SDC UI limitations - safely parse the configAttributes string into json waiting for the merge before uploading to public pypi Change-Id: If054c2c5e3d95bb97057bb4b2486dbff40e6b244 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-414
2018-03-022.2.0 onap-dcae-dcaepolicy-lib - refactoringAlex Shatov12-868/+128
- removed the following obsolete and unused features = removed policy apply_order parsing = removed policy sorting = removed policy config merge into app-config = removed tracking fields in app-config affected by policies = removed getting config from config.content on microservice = removed org.onap.dcae from license text - simplified the logic flow without policy sorting and without getting policy configs - removed the option to pass the policy configs to plugins = only passing the policy bodies to be included into the policy-notification message - refactoring to reduce function complexity according to sonar - reduced the unit tests to match the new code - coverage is 80% Change-Id: I47729683a45a647b7510edeb85bc018fc7bb8200 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-347
2018-02-23store policies into consul-kv as <scn>:policies/Alex Shatov7-103/+315
- now storing policies into consul-kv under folder <service_cmponent_name>:policies/ as items/<policy_id>=<policy_body> and event={"action": "gathered", "policies_count": 30, "timestamp": "2018-02-12T10:20:30.777Z", "update_id": "0e79edc0-6c64-425e-a618-cc13ef50cd56"}} - this data is going to be retrieved by config-binding service thru a new API http GET <CBS>/service_component_all/<service_component_name> - passing policy_body objects to plugins that consume the Policies decorators to pass to component - new decorator to delete the <service_cmponent_name>:policies/ folder in consul-kv upon uninstalling the component - sorting and merge of policy configs into application config is not removed yet - to be done later - fixed unit tests - coverage is 83% Change-Id: Ie55be9298ac7889d516a5b884a2e24ac05c65a01 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-347
2018-02-21Fixes for SONAR code coverage resultsAndrew Gauld2-1/+3
Change-Id: I2e3e548db393f85bae14b1fb4d5c867fe2d557ce Issue-ID: DCAEGEN2-355 Signed-off-by: Andrew Gauld <ag1282@att.com>
2018-02-21Make SONAR code coverage analysis workAndrew Gauld3-5/+5
Change-Id: I8091aea6127b78de404c986be74ecf44935ab92f Issue-ID: DCAEGEN2-355 Signed-off-by: Andrew Gauld <ag1282@att.com>
2018-02-12Update license textLusheng Ji8-8/+8
Change-Id: I9953f1064cb700c392234c62ac71bbe376f0d7f5 Signed-off-by: Lusheng Ji <lji@research.att.com> Issue-ID: DCAEGEN2-325
2018-02-05fix copyright from 2018 to 2017-2018Alex Shatov2-2/+2
Change-Id: I17a538431784b1d72f6364b68f720df11b904f09 Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2018-02-01get policy config data from config.contentAlex Shatov2-3/+23
* get policy config data from config.content instead of config when policyType is MicroService * identify the microservice by policyType provided by policy-engine or by parsing policy_id -it should contain Config_MS after scope = defense in case the policyType is not provided Change-Id: I25b1ce9e30ee717b14aca3e59e92d4d64d825414 Issue-ID: DCAEGEN2-196 Signed-off-by: Alex Shatov <alexs@att.com>
2018-01-11variable collection of policies per componentAlex Shatov10-230/+1888
* new feature variable collection of policies per component in DCAE * massive refactoring * Unit Test coverage 100% * moved module docstring below the license text Change-Id: I5ba392cb5c42ec136306772163c370d64974ae3c Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2017-11-25update versioning1.0.0-ONAP1.0.0-Amsterdamamsterdamvagrant1-2/+2
Issue-ID: DCAEGEN2-211 Change-Id: Iaf929c42928d2e0ea057c2e98345160d1886de28 Signed-off-by: vagrant <vv770d@att.com>
2017-09-2672% unit test and coverage with toxAlex Shatov6-2/+592
* usage on local run: tox -c tox-local.ini * usage on ONAP run: tox Change-Id: I8075b035f9f05fa45a3e7eba52dc40fbcef8feec Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
2017-09-21proper setup.py for global pypiAlex Shatov3-20/+10
* usage: pip install onap-dcae-dcaepolicy-lib import onap_dcae_dcaepolicy_lib Change-Id: I57b1b3157f21f9cb3b018c55ba469cd14450942b Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
2017-09-21Fix raw artifact push pathLusheng Ji1-1/+1
Issue-Id: DCAEGEN2-60 Change-Id: I0f420b6a4ebbdf0f2a9d6acd56d09f7366358b2d Signed-off-by: Lusheng Ji <lji@research.att.com>
2017-09-20Add metadata liscense to setupTommy Carpenter1-0/+1
Issue-ID: DCAEGEN2-60 Change-Id: I9933f36fe7df6a6bf33f935b2702b5209f1bca81 Signed-off-by: Tommy Carpenter <tommy@research.att.com>
2017-09-20renamed package to onap_dcae_dcaepolicy_libAlex Shatov9-0/+844
Change-Id: I692c45488fc84270ab02eca5730a3dd9b6f100ca Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>