From 09cd355bec7bad153732186fe886b1ae816de8b6 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 27 Mar 2019 15:21:01 -0700 Subject: [PATCH] Pin rabbitmq tests to pika < 1.0.0 to fix tests. Tests are failing with the release of pika 1.0.0. --- .../targets/rabbitmq_lookup/tasks/ubuntu.yml | 12 ++++++------ .../targets/rabbitmq_publish/tasks/ubuntu.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/integration/targets/rabbitmq_lookup/tasks/ubuntu.yml b/test/integration/targets/rabbitmq_lookup/tasks/ubuntu.yml index 6fba6ebdf93..4a339bb1f41 100644 --- a/test/integration/targets/rabbitmq_lookup/tasks/ubuntu.yml +++ b/test/integration/targets/rabbitmq_lookup/tasks/ubuntu.yml @@ -10,7 +10,7 @@ - name: Install pika and requests pip: - name: pika,requests + name: pika<1.0.0,requests state: latest - name: Test that giving an incorrect amqp protocol in URL will error @@ -29,29 +29,29 @@ rabbitmq_test_protocol: "{{ lookup('rabbitmq', url='amqp://guest:guest@xxxxx192.112312368.250.1:5672/%2F', queue='hello', count=3) }}" ignore_errors: yes register: rabbitmq_ip_error - + - assert: that: - "rabbitmq_ip_error is failed" - "'Connection issue' in rabbitmq_ip_error.msg" - + - name: Test missing parameters will error set_fact: rabbitmq_test_protocol: "{{ lookup('rabbitmq') }}" ignore_errors: yes register: rabbitmq_params_error - + - assert: that: - "rabbitmq_params_error is failed" - "'URL is required for rabbitmq lookup.' in rabbitmq_params_error.msg" - + - name: Test missing queue will error set_fact: rabbitmq_queue_protocol: "{{ lookup('rabbitmq', url='amqp://guest:guest@192.168.250.1:5672/%2F') }}" ignore_errors: yes register: rabbitmq_queue_error - + - assert: that: - "rabbitmq_queue_error is failed" diff --git a/test/integration/targets/rabbitmq_publish/tasks/ubuntu.yml b/test/integration/targets/rabbitmq_publish/tasks/ubuntu.yml index 7506fc368ef..23707662c11 100644 --- a/test/integration/targets/rabbitmq_publish/tasks/ubuntu.yml +++ b/test/integration/targets/rabbitmq_publish/tasks/ubuntu.yml @@ -1,6 +1,6 @@ - name: Install requests and pika pip: - name: requests,pika + name: requests,pika<1.0.0 state: present - name: RabbitMQ basic publish test