Add script for health check job
[integration.git] / test / ete / scripts / run-healthcheck.sh
1 #!/bin/bash
2
3 if [ -z "$WORKSPACE" ]; then
4     export WORKSPACE=`git rev-parse --show-toplevel`
5 fi
6
7 source $WORKSPACE/test/ete/scripts/install_openstack_cli.sh
8
9 cd $WORKSPACE/test/ete/scripts
10
11 ROBOT_IP=$(./get-floating-ip.sh onap-robot)
12 echo "ROBOT_IP=${ROBOT_IP}"
13
14 ssh -o StrictHostKeychecking=no -i ~/.ssh/onap_key root@${ROBOT_IP} "OS_PASSWORD_INPUT=$OS_PASSWORD_INPUT bash -s" < ./remote/run-robot.sh