From 777131d706b8379c5fb30f8161902d0388eb96bf Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Fri, 4 Jan 2019 14:43:44 -0600 Subject: Add tooling for drools policy developers This commit adds tooling to better support development activities for drools developers. 1. deploy artifacts to nexus or to local file repository on demand. It also allows to test on a single drools instance without the dependency on a nexus repo. 2. make installation configuration files conform to same convention (all upper case). Change-Id: Ia0a2fc25db2ef21b774a9eee4ed51d4b876a1993 Issue-ID: POLICY-1367 Signed-off-by: Jorge Hernandez --- policy-management/src/main/server-gen/bin/rest-delete-controller | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'policy-management/src/main/server-gen/bin/rest-delete-controller') diff --git a/policy-management/src/main/server-gen/bin/rest-delete-controller b/policy-management/src/main/server-gen/bin/rest-delete-controller index 03e67483..7a47c928 100644 --- a/policy-management/src/main/server-gen/bin/rest-delete-controller +++ b/policy-management/src/main/server-gen/bin/rest-delete-controller @@ -23,12 +23,12 @@ source $POLICY_HOME/etc/profile.d/env.sh if [[ -n $1 ]]; then - if [[ -n ${ENGINE_MANAGEMENT_PASSWORD} ]]; then - curl -k --silent --user ${ENGINE_MANAGEMENT_USER}:${ENGINE_MANAGEMENT_PASSWORD} -X DELETE --header "Content-Type: application/json" \ - https://localhost:${ENGINE_MANAGEMENT_PORT}/policy/pdp/engine/controllers/${1} + if [[ -n ${TELEMETRY_PASSWORD} ]]; then + curl -k --silent --user ${TELEMETRY_USER}:${TELEMETRY_PASSWORD} -X DELETE --header "Content-Type: application/json" \ + https://localhost:${TELEMETRY_PORT}/policy/pdp/engine/controllers/${1} else curl -k --silent -X DELETE --header "Content-Type: application/json" \ - https://localhost:${ENGINE_MANAGEMENT_PORT}/policy/pdp/engine/controllers/${1} + https://localhost:${TELEMETRY_PORT}/policy/pdp/engine/controllers/${1} fi echo exit -- cgit 1.2.3-korg