This repository was archived by the owner on Jun 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamq_queue_31.pal
More file actions
36 lines (33 loc) · 1.4 KB
/
amq_queue_31.pal
File metadata and controls
36 lines (33 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml?>
<pal
script = "amq_pal_gen"
desc = "the server MUST ignore auto-delete flag if queue already exists"
>
This test opens a session, declares an auto_delete queue and checks if a
redeclaration ignores the auto_delete field.
<include filename = "amq_test_base.pal" />
<session>
<queue_declare queue = "myqueue" />
<queue_declare queue = "myqueue" auto_delete = "1"/>
<basic_consume queue = "myqueue" consumer_tag = "myconsumer" />
<basic_content />
<basic_publish routing_key = "myqueue" exchange = "" />
<basic_cancel consumer_tag = "myconsumer" />
<wait timeout = "5000" />
<basic_consume queue = "myqueue" consumer_tag = "myconsumer" />
</session>
<session error_handling = "recover">
<queue_declare queue = "myqueue2" auto_delete = "1"/>
<queue_declare queue = "myqueue2" />
<basic_consume queue = "myqueue2" consumer_tag = "myconsumer2" />
<basic_content />
<basic_publish routing_key = "myqueue2" exchange = "" />
<basic_cancel consumer_tag = "myconsumer2" />
<wait timeout = "5000" />
<basic_consume queue = "myqueue2" consumer_tag = "myconsumer2" />
<if name = "reply_code" test = "ne" value = "404">
<echo>$reply_code: $reply_text</echo>
</if>
<assert name = "reply_code" value = "404" />
</session>
</pal>