aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-10-02 16:26:13 -0500
committerJorge Hernandez <jh1730@att.com>2017-10-02 16:26:13 -0500
commit0fe9e2f2c10edd24efecb867ab5ba2aa794ea3cf (patch)
tree28a675ceafdca743ef8baa60da7a3e29906f532f
parentb1bc68242593db61e74ecfd79a1d98fd9a20984a (diff)
retrieve latest drl template at load installation
Change-Id: I6de5bd9a72b32f34a350847cbfed8a993647212b Issue-ID: POLICY-275 Signed-off-by: Jorge Hernandez <jh1730@att.com>
-rw-r--r--config/pe/push-policies.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/pe/push-policies.sh b/config/pe/push-policies.sh
index d055550e..75a52ff0 100644
--- a/config/pe/push-policies.sh
+++ b/config/pe/push-policies.sh
@@ -4,7 +4,9 @@
echo "Upload BRMS Param Template"
-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=@ClosedLoopControlName.drl" 'http://pdp:8081/pdp/api/policyEngineImport?importParametersJson=%7B%22serviceName%22%3A%ClosedLoopControlName%22%2C%20%22serviceType%22%20%3A%20%22BRMSPARAM%22%20%7D'
+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
+
+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" 'http://pdp:8081/pdp/api/policyEngineImport?importParametersJson=%7B%22serviceName%22%3A%ClosedLoopControlName%22%2C%20%22serviceType%22%20%3A%20%22BRMSPARAM%22%20%7D'
#########################################Create BRMS Param policies##########################################
@@ -233,4 +235,4 @@ curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Acce
"pdpGroup": "default",
"policyName": "com.MicroServicevCPE",
"policyType": "MicroService"
-}' 'http://pdp:8081/pdp/api/pushPolicy' \ No newline at end of file
+}' 'http://pdp:8081/pdp/api/pushPolicy'