summaryrefslogtreecommitdiffstats
path: root/test/ete/scripts/remote/run-robot.sh
blob: 162acbe24dc2769b317ba7a0f50ff3a894f5c811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash -x

cd /opt

docker ps | grep -q openecompete_container
if [ ! $? -eq 0 ]; then
    echo "Robot not initialized"
    exit 2
fi

if [ ! -d eteshare/logs/demo ]; then
    echo $OS_PROJECT_ID > /opt/config/openstack_tenant_id.txt
    echo $OS_USERNAME > /opt/config/openstack_username.txt
    echo $OS_PASSWORD > /opt/config/openstack_password.txt
    /bin/bash /opt/eteshare/config/vm_config2robot.sh
    # set robot VM http server password
    echo "admin" | /opt/demo.sh init_robot
fi

/opt/ete.sh health