summaryrefslogtreecommitdiffstats
path: root/jjb/yardstick
diff options
context:
space:
mode:
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>2018-03-28 12:39:22 +0100
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>2018-04-05 17:54:32 +0100
commite37427778fc61d6f9b1270dc9bac6684ce958c4b (patch)
tree67377413cbd75f4c0c0a3a7ada4f0bc0e52799e0 /jjb/yardstick
parent058009d0462e11754888b7ae51b9c08fa8f0487f (diff)
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 <rodolfo.alonso.hernandez@intel.com>
Diffstat (limited to 'jjb/yardstick')
-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