summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-04-05 19:50:09 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-04-05 19:50:09 +0000
commit3ec4f930f4ab7910ce730b4648f2a7403711cdcd (patch)
tree69b5ab1096839b22569b4bdf4019ca5a0bf257b6
parent3f7ed739246588580bb41e608e67a8f8d663d30d (diff)
parente37427778fc61d6f9b1270dc9bac6684ce958c4b (diff)
Merge "Install RabbitMQ service in Yardstick functional tests"
-rw-r--r--jjb/yardstick/yardstick-project-jobs.yml20
1 files changed, 18 insertions, 2 deletions
diff --git a/jjb/yardstick/yardstick-project-jobs.yml b/jjb/yardstick/yardstick-project-jobs.yml
index c03666388..63ce2986f 100644
--- a/jjb/yardstick/yardstick-project-jobs.yml
+++ b/jjb/yardstick/yardstick-project-jobs.yml
@@ -165,9 +165,17 @@
set -o pipefail
sudo apt-get -y autoremove
- sudo apt-get install -y build-essential python-dev python3-dev
+ sudo apt-get install -y build-essential python-dev python3-dev rabbitmq-server
sudo apt-get -y clean && sudo apt-get -y autoremove
+ echo "Configure RabbitMQ service"
+ service rabbitmq-server restart
+ rabbitmqctl start_app
+ if [ -z "$(rabbitmqctl list_users | grep yardstick)" ]; then
+ rabbitmqctl add_user yardstick yardstick
+ rabbitmqctl set_permissions yardstick ".*" ".*" ".*"
+ fi
+
echo "Running functional tests in Python 2.7 ..."
cd $WORKSPACE
tox -efunctional
@@ -181,9 +189,17 @@
set -o pipefail
sudo apt-get -y autoremove
- sudo apt-get install -y build-essential python-dev python3-dev
+ sudo apt-get install -y build-essential python-dev python3-dev rabbitmq-server
sudo apt-get -y clean && sudo apt-get -y autoremove
+ echo "Configure RabbitMQ service"
+ service rabbitmq-server restart
+ rabbitmqctl start_app
+ if [ -z "$(rabbitmqctl list_users | grep yardstick)" ]; then
+ rabbitmqctl add_user yardstick yardstick
+ rabbitmqctl set_permissions yardstick ".*" ".*" ".*"
+ fi
+
echo "Running functional tests in Python 3 ..."
cd $WORKSPACE
tox -efunctional-py3