summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-10-03 18:40:43 -0500
committerJorge Hernandez <jh1730@att.com>2017-10-03 18:42:43 -0500
commit54c5a68a26f0d84dd447cd9c2467fea21d68fa94 (patch)
treea8b2da214f26c83c87fcec8c16b728866fd8ea34 /config
parent2a2cff8f7e384fc3322e9fe95011fdf9e67eaab0 (diff)
pdp-x default resolution of indeterminate response
Change-Id: I7913a4e9fb2477c9ec891070cc4dedf71df9500b Issue-ID: POLICY-275 Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'config')
-rw-r--r--config/pe/pdp.conf3
-rw-r--r--config/pe/push-policies.sh4
2 files changed, 7 insertions, 0 deletions
diff --git a/config/pe/pdp.conf b/config/pe/pdp.conf
index 369d6b6f..c82c01a5 100644
--- a/config/pe/pdp.conf
+++ b/config/pe/pdp.conf
@@ -51,3 +51,6 @@ PDP_DMAAP_AAF_PASSWORD=
#Required only, when we use AAF
POLICY_AAF_NAMESPACE=
POLICY_AAF_RESOURCE=
+
+# Indeterminate resolution
+DECISION_INDETERMINATE_RESPONSE=PERMIT
diff --git a/config/pe/push-policies.sh b/config/pe/push-policies.sh
index d6272d0d..ae8bf43c 100644
--- a/config/pe/push-policies.sh
+++ b/config/pe/push-policies.sh
@@ -4,8 +4,12 @@
echo "Upload BRMS Param Template"
+sleep 2
+
wget -O cl-amsterdam-template.drl https://git.onap.org/policy/drools-applications/plain/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl
+sleep 2
+
curl -v --silent -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -F "file=@cl-amsterdam-template.drl" -F "importParametersJson={\"serviceName\":\"ClosedLoopControlName\",\"serviceType\":\"BRMSPARAM\"}" 'http://pdp:8081/pdp/api/policyEngineImport'
#########################################Create BRMS Param policies##########################################