summaryrefslogtreecommitdiffstats
path: root/dcae-policy
AgeCommit message (Collapse)AuthorFilesLines
2018-04-122.3.0 dcaepolicyplugin and data typesAlex Shatov8-23/+89
- discovering consul at consul:8500 instead of localhost:8500 - added and refactored unit tests for discovery -- coverage 78% Change-Id: I3712fe36df47d6117206d61ca4916c4dbc42d035 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-438
2018-03-272.2.1 dcaepolicyplugin and data typesAlex Shatov11-213/+397
- trying to avoid changing code for k8s deployment of policy-handler with unknown url to MSB or policy-handler at the moment - expecting optional manual population of the consul-kv with config data for dcaepolicyplugin - when not found service for policy-handler in consul -- try finding config for "dcaepolicyplugin" in consul-kv -- the config structure is expected to contain url to policy_handler - example of config value for key=dcaepolicyplugin: { "dcaepolicyplugin" : { "policy_handler" : { "url" : "http://policy-handler:25577" } } } - still drop down to hardcoded default when this config not found in consul-kv - added and refactored unit tests for discovery -- coverage 78% - making code more PEP8 compliant Change-Id: Ia176b54ed62631baa30d614785d1937023408ddf Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-419
2018-03-262.2.0 dcaepolicyplugin and data typesAlex Shatov6-17/+62
- dcaepolicyplugin to use default policy-handler url by dns to discover policy-handler under k8s when policy_handler record not found under consul-service - pending hardcoding the proper dns based url that is to be provided by k8s + MSB solution Change-Id: I8bf49fe29735ec842235c0b58595c7196f5d24ca Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-419
2018-03-232.1.0 dcaepolicyplugin and data typesAlex Shatov12-26/+37
- configAttributes in policy_filter being a stringified json, rather than the map due to SDC UI limitations - safely parse the configAttributes string into json Change-Id: I934b6254aed285ddab245b440f43403a4fe918fe Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-413
2018-02-23fixed a bug in policy-get pluginAlex Shatov1-1/+0
- do not raise an exception on not being able to bring policies Change-Id: I39dda5492903c5b25f4a8b46d96d27a5b8ee1547 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-347
2018-02-22Make SONAR code coverage workAndrew Gauld3-17/+7
Change-Id: I8a61f287d439a5bf0b2cb203e31b514a2cae0a5e Issue-ID: DCAEGEN2-355 Signed-off-by: Andrew Gauld <ag1282@att.com>
2018-02-12Update license textLusheng Ji8-8/+8
Change-Id: I352c41a5150925327fc9f9b71eaa8f72f575a8b9 Signed-off-by: Lusheng Ji <lji@research.att.com> Issue-ID: DCAEGEN2-325
2018-02-05fix copyright from 2018 to 2017-2018Alex Shatov3-3/+3
Change-Id: I30bf8646d4f1b2c833e39fa2cc7e1b9b5e06b72a Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2018-02-01improved message structure for latest policiesAlex Shatov3-4/+9
* unit test coverage 77% Change-Id: Iebe582bb20173a3f4689239f3a2d822edb48ccc1 Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2018-01-25do not raise the Nonrecoverable on 404Alex Shatov1-12/+20
* when policy is not required on not finding the policy + better logging Change-Id: I80875b6e2d08ef2cbb8d46e5797a0c3bd2d1197c Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2018-01-11variable collection of policies per componentAlex Shatov11-60/+266
* new feature variable collection of policies per component in DCAE * Unit Test coverage 78% * moved module docstring below the license text Change-Id: Iefe6d4c31e2e125194781edc79e69af2c11e96ef Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2017-11-25update versioning1.0.0-ONAP1.0.0-Amsterdamamsterdamvagrant1-2/+2
Change-Id: Ic527095239790de9f94cb03956402a8309cdfe1a Issue-ID: DCAEGEN2-211 Signed-off-by: vagrant <vv770d@att.com>
2017-10-10Change artifact deployment locationsLusheng Ji1-0/+173
Issue-Id: DCAEGEN2-128 Change-Id: I55f533c0fa1a2a51e6a11b1e8e1dbb221b992fbe Signed-off-by: Lusheng Ji <lji@research.att.com>
2017-09-26UT 78% dcaepolicy pluginAlex Shatov7-15/+583
* unit test withcoverage of 78 % * minor refactoring for lazy init for discovery - useful for UT Change-Id: I7bee1d5dc5c66477c6e8f19484b0179d5f726fe0 Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
2017-09-12dcaepolicy plugin and dcae.node.typeAlex Shatov9-0/+293
* new plugin and node type file to be used by blueprints that use policy Change-Id: I79dc24f3bf6f8471457544f6bb8562cbcd448d00 Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>