From e37427778fc61d6f9b1270dc9bac6684ce958c4b Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Wed, 28 Mar 2018 12:39:22 +0100 Subject: Install RabbitMQ service in Yardstick functional tests Install and configure RabbitMQ service for Yardstick functional (Python 2.7 and Python 3) tests. JIRA: YARDSTICK-1104 Change-Id: I6b287def05c75dc67ab21727f72d4c384f8e2837 Signed-off-by: Rodolfo Alonso Hernandez --- jjb/yardstick/yardstick-project-jobs.yml | 20 ++++++++++++++++++-- 1 file 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 -- cgit 1.2.3-korg