aboutsummaryrefslogtreecommitdiffstats
path: root/plans/policy/api/setup.sh
diff options
context:
space:
mode:
authorBilal A <bilal@research.att.com>2019-06-07 21:25:59 +0000
committerBilal A <bilal@research.att.com>2019-07-03 16:06:05 +0000
commitd46ab2eb2f4254adbe2b9f604b12c0a7f4bf99ed (patch)
tree9c78e684c231f69dd42fbb29d2e9bfbea68f82d7 /plans/policy/api/setup.sh
parent4a70dd3bcf1dde19d511f528650b08714b92448f (diff)
Pull correct docker images for master branch
Enables Policy CSITs for API, PAP, Distribution, Drools-applications, Apex-PDP and XACML-PDP to pull correct docker images based on the code branch. -------------- Updating the policy model json in apex-pdp csit Changes were made to read the policy model as proper json instead of json formatted string in APEX-PDP. With this fix in place, the policy tosca json file need to be updated with the proper json. Issue-ID: POLICY-1836 Issue-ID: POLICY-1796 Change-Id: I6b99c8ae9cb78dd8ebddc522bc2a7080ec6e5735 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech> Signed-off-by: Bilal A <bilal@research.att.com>
Diffstat (limited to 'plans/policy/api/setup.sh')
-rw-r--r--plans/policy/api/setup.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/plans/policy/api/setup.sh b/plans/policy/api/setup.sh
index 6168085e..91e1edee 100644
--- a/plans/policy/api/setup.sh
+++ b/plans/policy/api/setup.sh
@@ -17,11 +17,21 @@
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
+# Select branch
+source ${SCRIPTS}/policy/config/policy-csit.conf
+export POLICY_MARIADB_VER
+echo ${GERRIT_BRANCH}
+echo ${POLICY_MARIADB_VER}
+
echo "Uninstall docker-py and reinstall docker."
pip uninstall -y docker-py
pip uninstall -y docker
pip install -U docker==2.7.0
+
+sudo apt-get -y install libxml2-utils
+export POLICY_API_VERSION="$(curl -q --silent https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+echo ${POLICY_API_VERSION}
# Adding this waiting container to avoid race condition between api and mariadb containers.
docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-api.yml run --rm start_dependencies