#!/bin/bash -xe

# This script will be run by OpenStack CI before unit tests are run,
# it sets up the test system as needed.
# Developer should setup their test systems in a similar way.

# This setup needs to be run by a user that can run sudo.

sudo apt-get update
. /etc/os-release
if [[ $VERSION_CODENAME = bionic ]]; then
    sudo apt-get install -y openjdk-8-jre
else
    sudo apt-get install -y default-jre
fi
wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.3.2/elasticsearch-2.3.2.deb
sudo dpkg -i elasticsearch-2.3.2.deb
# Make 'elasticsearch' binary callable from within functional tests
sudo ln -s /usr/share/elasticsearch/bin/elasticsearch /usr/local/bin/elasticsearch

#!/bin/bash -xe

# This script will be run by OpenStack CI before unit tests are run,
# it sets up the test system as needed.
# Developer should setup their test systems in a similar way.

# This setup needs to be run by a user that can run sudo.

sudo apt-get update
. /etc/os-release
if [[ $VERSION_CODENAME = bionic ]]; then
    sudo apt-get install -y openjdk-8-jre
else
    sudo apt-get install -y default-jre
fi
wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.3.4/elasticsearch-2.3.4.deb
sudo dpkg -i elasticsearch-2.3.4.deb
# Make 'elasticsearch' binary callable from within functional tests
sudo ln -s /usr/share/elasticsearch/bin/elasticsearch /usr/local/bin/elasticsearch

Update test to use ElasticSearch 2.3.4 as docs says
Update test to use ElasticSearch 2.3.4 as docs says

Searhlight docs and devstack plugin use ES 2.3.4 but the
test-setup.sh file use 2.3.2.

Change-Id: I53d957ac55f20c8ee05937968b38aa46dcd07471
Story: #2003665
Task: #26175
