Age | Commit message (Collapse) | Author | Files | Lines |
|
- 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
|
|
Change-Id: I17a538431784b1d72f6364b68f720df11b904f09
Issue-ID: DCAEGEN2-249
Signed-off-by: Alex Shatov <alexs@att.com>
|
|
* 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>
|
|
* 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>
|
|
* 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>
|
|
Change-Id: I692c45488fc84270ab02eca5730a3dd9b6f100ca
Issue-Id: DCAEGEN2-62
Signed-off-by: Alex Shatov <alexs@att.com>
|