---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
repositories:
- repo: "https://github.com/pika/pika.git"
dest: "pika"
required_packages:
- python3-nose2
- python3-mock
- python3-tornado
- python3-twisted
- rabbitmq-server
tasks:
- name: Enable the HTTP management console and SSL authentication plugins
rabbitmq_plugin:
names: "rabbitmq_management,\
rabbitmq_auth_mechanism_ssl"
- name: Start the RabbitMQ broker
systemd: name=rabbitmq-server state=started
- name: Get the right version of the tests
command: git checkout 1.0.1
- name: Ensure we're testing the RPM installation
command: rm -rf pika
- name: Turn off the unit tests
command: >
sed -i -e s#tests=tests/unit,tests/acceptance#tests=tests/acceptance#g setup.cfg
- name: Run the integration tests
shell: nosetests-3