commit | 2322ef8736e839d62930d9b6c847ce818261c26c | [log] [tgz] |
---|---|---|
author | Alex Shatov <alexs@att.com> | Thu Jan 25 17:40:39 2018 -0500 |
committer | Alex Shatov <alexs@att.com> | Thu Jan 25 17:40:39 2018 -0500 |
tree | 9940107d0d380ede948aa932f43069c711037840 | |
parent | f53e5e70d88d813fb84848538472c601914ec652 [diff] |
on not finding the policy return 404 and json * json of what is returned from policy-engine instead of 404 html Change-Id: I44fb7e113e23f68cac44e6ad21c1bc9b37cf3d58 Issue-ID: DCAEGEN2-249 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