diff options
Diffstat (limited to 'config/pe/push-policies.sh')
-rw-r--r-- | config/pe/push-policies.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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########################################## |