commit | 38ab4a2b5d74e0e47d833c8dcaf6b2604ae9e468 | [log] [tgz] |
---|---|---|
author | Alex Shatov <alexs@att.com> | Tue Oct 31 11:26:24 2017 -0400 |
committer | Alex Shatov <alexs@att.com> | Tue Oct 31 11:26:24 2017 -0400 |
tree | 79673ab66a5eacb8e47724118894f7b88903de99 | |
parent | 81a1b05ebd918c3a8148382661f00f3183894f9a [diff] |
flexible Basic versus non-basic ClientAuth to PDP PDP client (PolicyEngine.py) now can handle two formats of ClientAuth to match what we have in config * Basic <auth> * <auth> Change-Id: I4010d430a6675e3f259c1fc53b0b3373bd225352 Issue-Id: DCAEGEN2-128 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