-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AZP: add stable-2.12 to test matrix (#103)
* AZP: add stable-2.12 to test matrix * Update pika version * Disable integration tests against devel and 2.12 on Ubuntu1804 * Remove extra commented rows * Change keyserver
- Loading branch information
1 parent
15bf181
commit 65b0022
Showing
5 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
rabbit_missing_pika: "{{ lookup('community.rabbitmq.rabbitmq', url='amqp://guest:[email protected]:5672/%2F', queue='hello', count=3) }}" | ||
ignore_errors: yes | ||
register: rabbitmq_missing_pika_error | ||
delegate_to: localhost | ||
|
||
- assert: | ||
that: | ||
|
@@ -12,12 +13,14 @@ | |
pip: | ||
name: pika<1.0.0,requests | ||
state: latest | ||
delegate_to: localhost | ||
|
||
- name: Test that giving an incorrect amqp protocol in URL will error | ||
set_fact: | ||
rabbitmq_test_protocol: "{{ lookup('community.rabbitmq.rabbitmq', url='zzzamqp://guest:[email protected]:5672/%2F', queue='hello', count=3) }}" | ||
ignore_errors: yes | ||
register: rabbitmq_protocol_error | ||
delegate_to: localhost | ||
|
||
- assert: | ||
that: | ||
|
@@ -29,6 +32,7 @@ | |
rabbitmq_test_protocol: "{{ lookup('community.rabbitmq.rabbitmq', url='amqp://guest:[email protected]:5672/%2F', queue='hello', count=3) }}" | ||
ignore_errors: yes | ||
register: rabbitmq_ip_error | ||
delegate_to: localhost | ||
|
||
- assert: | ||
that: | ||
|
@@ -40,6 +44,7 @@ | |
rabbitmq_test_protocol: "{{ lookup('community.rabbitmq.rabbitmq') }}" | ||
ignore_errors: yes | ||
register: rabbitmq_params_error | ||
delegate_to: localhost | ||
|
||
- assert: | ||
that: | ||
|
@@ -51,6 +56,7 @@ | |
rabbitmq_queue_protocol: "{{ lookup('community.rabbitmq.rabbitmq', url='amqp://guest:[email protected]:5672/%2F') }}" | ||
ignore_errors: yes | ||
register: rabbitmq_queue_error | ||
delegate_to: localhost | ||
|
||
- assert: | ||
that: | ||
|
@@ -61,10 +67,12 @@ | |
rabbitmq_plugin: | ||
names: rabbitmq_management | ||
state: enabled | ||
delegate_to: localhost | ||
|
||
- name: Setup test queue | ||
rabbitmq_queue: | ||
name: hello | ||
delegate_to: localhost | ||
|
||
- name: Post test message to the exchange (string) | ||
uri: | ||
|
@@ -78,6 +86,7 @@ | |
headers: | ||
Content-Type: "application/json" | ||
register: post_data | ||
delegate_to: localhost | ||
|
||
|
||
- name: Post test message to the exchange (json) | ||
|
@@ -92,12 +101,14 @@ | |
headers: | ||
Content-Type: "application/json" | ||
register: post_data_json | ||
delegate_to: localhost | ||
|
||
- name: Test retrieve messages | ||
set_fact: | ||
rabbitmq_msg: "{{ lookup('community.rabbitmq.rabbitmq', url='amqp://guest:guest@localhost:5672/%2f/hello', queue='hello') }}" | ||
ignore_errors: yes | ||
register: rabbitmq_msg_error | ||
delegate_to: localhost | ||
|
||
- name: Ensure two messages received | ||
assert: | ||
|
@@ -120,6 +131,7 @@ | |
rabbitmq_msg: "{{ lookup('community.rabbitmq.rabbitmq', url='amqp://guest:guest@localhost:5672/missing/', queue='hello') }}" | ||
ignore_errors: yes | ||
register: rabbitmq_vhost_error | ||
delegate_to: localhost | ||
|
||
- assert: | ||
that: | ||
|
@@ -131,8 +143,10 @@ | |
pip: | ||
name: pika,requests | ||
state: absent | ||
delegate_to: localhost | ||
|
||
- name: Disable the rabbitmq_management plugin | ||
rabbitmq_plugin: | ||
names: rabbitmq_management | ||
state: disabled | ||
delegate_to: localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters