Pin rabbitmq tests to pika < 1.0.0 to fix tests.
Tests are failing with the release of pika 1.0.0.
This commit is contained in:
parent
d3f2f600c7
commit
09cd355bec
2 changed files with 7 additions and 7 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
- name: Install pika and requests
|
- name: Install pika and requests
|
||||||
pip:
|
pip:
|
||||||
name: pika,requests
|
name: pika<1.0.0,requests
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Test that giving an incorrect amqp protocol in URL will error
|
- 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) }}"
|
rabbitmq_test_protocol: "{{ lookup('rabbitmq', url='amqp://guest:guest@xxxxx192.112312368.250.1:5672/%2F', queue='hello', count=3) }}"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
register: rabbitmq_ip_error
|
register: rabbitmq_ip_error
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- "rabbitmq_ip_error is failed"
|
- "rabbitmq_ip_error is failed"
|
||||||
- "'Connection issue' in rabbitmq_ip_error.msg"
|
- "'Connection issue' in rabbitmq_ip_error.msg"
|
||||||
|
|
||||||
- name: Test missing parameters will error
|
- name: Test missing parameters will error
|
||||||
set_fact:
|
set_fact:
|
||||||
rabbitmq_test_protocol: "{{ lookup('rabbitmq') }}"
|
rabbitmq_test_protocol: "{{ lookup('rabbitmq') }}"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
register: rabbitmq_params_error
|
register: rabbitmq_params_error
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- "rabbitmq_params_error is failed"
|
- "rabbitmq_params_error is failed"
|
||||||
- "'URL is required for rabbitmq lookup.' in rabbitmq_params_error.msg"
|
- "'URL is required for rabbitmq lookup.' in rabbitmq_params_error.msg"
|
||||||
|
|
||||||
- name: Test missing queue will error
|
- name: Test missing queue will error
|
||||||
set_fact:
|
set_fact:
|
||||||
rabbitmq_queue_protocol: "{{ lookup('rabbitmq', url='amqp://guest:guest@192.168.250.1:5672/%2F') }}"
|
rabbitmq_queue_protocol: "{{ lookup('rabbitmq', url='amqp://guest:guest@192.168.250.1:5672/%2F') }}"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
register: rabbitmq_queue_error
|
register: rabbitmq_queue_error
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- "rabbitmq_queue_error is failed"
|
- "rabbitmq_queue_error is failed"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
- name: Install requests and pika
|
- name: Install requests and pika
|
||||||
pip:
|
pip:
|
||||||
name: requests,pika
|
name: requests,pika<1.0.0
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: RabbitMQ basic publish test
|
- name: RabbitMQ basic publish test
|
||||||
|
|
Loading…
Reference in a new issue