diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..07088e2 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1 @@ +- import_playbook: upstream_integration_tests.yml diff --git a/tests/upstream_integration_tests.yml b/tests/upstream_integration_tests.yml new file mode 100644 index 0000000..fb9bf7d --- /dev/null +++ b/tests/upstream_integration_tests.yml @@ -0,0 +1,36 @@ +--- +- 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