commit | 2d452d17a679ac85b7a7eba0da8767d6fafb8e4c | [log] [tgz] |
---|---|---|
author | Alex Shatov <alexs@att.com> | Tue Sep 26 17:38:12 2017 -0400 |
committer | Alex Shatov <alexs@att.com> | Tue Sep 26 17:38:12 2017 -0400 |
tree | 013a9cf47f7eb010937df752a56a3717db4adda5 | |
parent | 9144f04afe7c56e762b6e4d0c28fd5726a3746ba [diff] |
omit external libs from coverage on UT * omit the client libs of outside components * omit = # omit client libs policyhandler/PolicyEngine.py policyhandler/onap/CommonLogger.py Change-Id: If28158913b025a9f2217c61acd17a7d5e5cee668 Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
virtualenv policy_venv
cd policy_venv
source bin/activate
cd ../policy_handler
pip install -r requirements.txt
cd policy_venv
source bin/activate
cd ../policy_handler
in folder policy_handler
:
- `config.json` contains - `"scope_prefixes" : ["DCAE_alex.Config_"]` - the list of policy-scope-class values - `"policy_engine"` - the http connect info to ECOMP **policy-engine** - headers.ClientAuth : base64(<mech-id with namespace>:<password>) - headers.Authorization : base64(<policy-engine server auth>) - `"deploy_handler"` - the http connect info to _policy part_ of the **deploy-handler** - `policy_engine.properties` contains config info for the client lib of ECOMP **policy-engine** that receives push notifications from the ECOMP **policy-engine** server - CLIENT_ID is the mech-id with the namespace - need to register with policy-engine team thru email - CLIENT_KEY is the base64 of the mech-id password - separate passwords for TEST versus PROD
in folder policy_handler
:
./run_policy.sh