aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/optf-osdf/osdf/osdf_script.sh
diff options
context:
space:
mode:
authorDileep Ranganathan <dileep.ranganathan@intel.com>2018-10-04 15:34:34 -0700
committerDileep Ranganathan <dileep.ranganathan@intel.com>2018-10-22 14:33:09 -0700
commit425ba9232b52ee2d40999526ae792bbf2bf76f55 (patch)
tree3c4f755d02887f4a5a912b8f3a2dd2f1a518fe1f /scripts/optf-osdf/osdf/osdf_script.sh
parent1344ef2dd571923b5fa40f7c0863477df59d651b (diff)
OOF SMS CSIT
Added CSIT support for HAS and OSDF with SMS Bring up dependencies like sms service and related containers Preload secrets Removed clear text secrets from config files Deleted unused osdf folders inside has folders. osdf uses separate folders now. Change-Id: Ie534e13b87a98de9f3ab1ed0be66f5f699353d93 Issue-ID: OPTFRA-343 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Diffstat (limited to 'scripts/optf-osdf/osdf/osdf_script.sh')
-rwxr-xr-xscripts/optf-osdf/osdf/osdf_script.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/optf-osdf/osdf/osdf_script.sh b/scripts/optf-osdf/osdf/osdf_script.sh
index 435e44f5..77359696 100755
--- a/scripts/optf-osdf/osdf/osdf_script.sh
+++ b/scripts/optf-osdf/osdf/osdf_script.sh
@@ -37,15 +37,26 @@ IMAGE_NAME=nexus3.onap.org:10001/onap/optf-osdf
IMAGE_VER=1.2.2-SNAPSHOT-latest
mkdir -p /tmp/osdf/properties
+mkdir -p /tmp/sms/properties
cp ${WORKSPACE}/scripts/optf-osdf/osdf/osdf-properties/*.yaml /tmp/osdf/properties/.
+cp ${WORKSPACE}/scripts/optf-osdf/osdf/osdf-properties/osdf.json /tmp/sms/properties/.
#change conductor/configdb simulator urls
OSDF_SIM_IP=`get-instance-ip.sh osdf_sim`
echo "OSDF_SIM_IP=${OSDF_SIM_IP}"
+SMS_IP=`get-instance-ip.sh sms`
+echo "SMS_IP=${SMS_IP}"
sed -i -e "s%127.0.0.1:5000%${OSDF_SIM_IP}:5000%g" $OSDF_CONF
+sed -i -e "s%aaf-sms.onap:10443%${SMS_IP}:10443%g" $OSDF_CONF
+#Preload secrets
+docker exec -i sms /bin/sh -c "mkdir -p /preload/config"
+docker cp /tmp/sms/properties/osdf.json sms:/preload/config/osdf.json
+docker exec -i sms /bin/sh -c "/sms/bin/preload -cacert /sms/certs/aaf_root_ca.cer -jsondir /preload/config -serviceport 10443 -serviceurl http://localhost"
+
+docker logs vault
docker run -d --name optf-osdf -v ${OSDF_CONF}:/opt/osdf/config/osdf_config.yaml -p "8698:8699" ${IMAGE_NAME}:${IMAGE_VER}
sleep 20