Annotate

spec/scansion/pubsub_multi_items.scs @ 12790:24b55f0e2db9 0.12

mod_http: Allow disabling CORS in the http_cors_override option and by default Fixes #1779. Due to an oversight in the logic, if the user set 'enabled' to false in an override, it would disable the item's requested CORS settings, but still apply Prosody's default CORS policy. This change ensures that 'enabled = false' will now disable CORS entirely for the requested item. Due to the new structure of the code, it was necessary to have a flag to say whether CORS is to be applied at all. Rather than hard-coding 'true' here, I chose to add a new option: 'http_default_cors_enabled'. This is a boolean that allows the operator to disable Prosody's default CORS policy entirely (the one that is used when a module or config does not override it). This makes it easier to disable CORS and then selectively enable it only on services you want it on.
author Matthew Wild <mwild1@gmail.com>
date Mon, 31 Oct 2022 14:32:02 +0000
parent 11856:14a679588b7b
child 12966:7465d3c5679d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9833
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 # Pubsub: Requesting multiple specific items from a node (#1322)
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 [Client] Alice
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 jid: admin@localhost
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 password: password
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7 ---------
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
9 Alice connects
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
10
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11 Alice sends:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12 <presence xmlns:stream="http://etherx.jabber.org/streams" id=":7IoqYcT3191rfk_dZGo2"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 Alice receives:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15 <presence xmlns:stream="http://etherx.jabber.org/streams" from="${Alice's full JID}" id=":7IoqYcT3191rfk_dZGo2"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
17 Alice sends:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
18 <iq xmlns:stream="http://etherx.jabber.org/streams" to="pubsub.localhost" id=":m0SM8Hn5JxP9BJJ_X4Mz" type="set">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
19 <pubsub xmlns="http://jabber.org/protocol/pubsub">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
20 <create node="e96caf12-264f-4e5a-988e-00ae191771b6"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21 </pubsub>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 </iq>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
23
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
24 Alice receives:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
25 <iq xmlns:stream="http://etherx.jabber.org/streams" to="${Alice's full JID}" from="pubsub.localhost" type="result" id=":m0SM8Hn5JxP9BJJ_X4Mz"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
26
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 Alice sends:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
28 <iq xmlns:stream="http://etherx.jabber.org/streams" to="pubsub.localhost" id=":gwZgEQmzAHcQz-FZOxi-" type="get">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
29 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
30 <configure node="e96caf12-264f-4e5a-988e-00ae191771b6"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
31 </pubsub>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
32 </iq>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
33
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
34 Alice receives:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
35 <iq xmlns:stream="http://etherx.jabber.org/streams" to="${Alice's full JID}" from="pubsub.localhost" type="result" id=":gwZgEQmzAHcQz-FZOxi-">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
36 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
37 <configure node="e96caf12-264f-4e5a-988e-00ae191771b6">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
38 <x xmlns="jabber:x:data" type="form">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
39 <field var="FORM_TYPE" type="hidden">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
40 <value>http://jabber.org/protocol/pubsub#node_config</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
41 </field>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
42 <field var="pubsub#title" label="Title" type="text-single"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
43 <field var="pubsub#description" label="Description" type="text-single"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
44 <field var="pubsub#type" label="The type of node data, usually specified by the namespace of the payload (if any)" type="text-single"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
45 <field var="pubsub#max_items" label="Max # of items to persist" type="text-single">
11855
8890eaa69446 mod_pubsub: Prevent max_items from being set to zero
Kim Alvefur <zash@zash.se>
parents: 11854
diff changeset
46 <validate xmlns="http://jabber.org/protocol/xdata-validate" datatype="pubsub:integer-or-max">
11856
14a679588b7b mod_pubsub,mod_pep: Advertise maximum number of items via XEP-0122
Kim Alvefur <zash@zash.se>
parents: 11855
diff changeset
47 <range min="1" max="256"/>
11855
8890eaa69446 mod_pubsub: Prevent max_items from being set to zero
Kim Alvefur <zash@zash.se>
parents: 11854
diff changeset
48 </validate>
9833
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
49 <value>20</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
50 </field>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
51 <field var="pubsub#persist_items" label="Persist items to storage" type="boolean">
11720
72512c0858b3 mod_pubsub: Explicitly enable persistence by default to preserve behavior
Kim Alvefur <zash@zash.se>
parents: 11714
diff changeset
52 <value>1</value>
9833
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
53 </field>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
54 <field var="pubsub#access_model" label="Specify the subscriber model" type="list-single">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
55 <option label="authorize">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
56 <value>authorize</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
57 </option>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
58 <option label="open">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
59 <value>open</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
60 </option>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
61 <option label="presence">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
62 <value>presence</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
63 </option>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
64 <option label="roster">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
65 <value>roster</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
66 </option>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
67 <option label="whitelist">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
68 <value>whitelist</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
69 </option>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
70 <value>open</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
71 </field>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
72 <field var="pubsub#publish_model" label="Specify the publisher model" type="list-single">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
73 <option label="publishers">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
74 <value>publishers</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
75 </option>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
76 <option label="subscribers">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
77 <value>subscribers</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
78 </option>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
79 <option label="open">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
80 <value>open</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
81 </option>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
82 <value>publishers</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
83 </field>
11854
b605cbd5f13b mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Kim Alvefur <zash@zash.se>
parents: 11720
diff changeset
84 <field type='list-single' var='pubsub#send_last_published_item'>
b605cbd5f13b mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Kim Alvefur <zash@zash.se>
parents: 11720
diff changeset
85 <option label='never'>
b605cbd5f13b mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Kim Alvefur <zash@zash.se>
parents: 11720
diff changeset
86 <value>never</value>
b605cbd5f13b mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Kim Alvefur <zash@zash.se>
parents: 11720
diff changeset
87 </option>
b605cbd5f13b mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Kim Alvefur <zash@zash.se>
parents: 11720
diff changeset
88 <option label='on_sub'>
b605cbd5f13b mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Kim Alvefur <zash@zash.se>
parents: 11720
diff changeset
89 <value>on_sub</value>
b605cbd5f13b mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Kim Alvefur <zash@zash.se>
parents: 11720
diff changeset
90 </option>
b605cbd5f13b mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Kim Alvefur <zash@zash.se>
parents: 11720
diff changeset
91 <option label='on_sub_and_presence'>
b605cbd5f13b mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Kim Alvefur <zash@zash.se>
parents: 11720
diff changeset
92 <value>on_sub_and_presence</value>
b605cbd5f13b mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Kim Alvefur <zash@zash.se>
parents: 11720
diff changeset
93 </option>
b605cbd5f13b mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Kim Alvefur <zash@zash.se>
parents: 11720
diff changeset
94 <value>never</value>
b605cbd5f13b mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Kim Alvefur <zash@zash.se>
parents: 11720
diff changeset
95 </field>
9833
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
96 <field var="pubsub#deliver_notifications" label="Whether to deliver event notifications" type="boolean">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
97 <value>1</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
98 </field>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
99 <field var="pubsub#deliver_payloads" label="Whether to deliver payloads with event notifications" type="boolean">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
100 <value>1</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
101 </field>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
102 <field var="pubsub#notification_type" label="Specify the delivery style for notifications" type="list-single">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
103 <option label="Messages of type normal">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
104 <value>normal</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
105 </option>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
106 <option label="Messages of type headline">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
107 <value>headline</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
108 </option>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
109 <value>headline</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
110 </field>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
111 <field var="pubsub#notify_delete" label="Whether to notify subscribers when the node is deleted" type="boolean">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
112 <value>1</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
113 </field>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
114 <field var="pubsub#notify_retract" label="Whether to notify subscribers when items are removed from the node" type="boolean">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
115 <value>1</value>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
116 </field>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
117 </x>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
118 </configure>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
119 </pubsub>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
120 </iq>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
121
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
122 Alice sends:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
123 <iq xmlns:stream="http://etherx.jabber.org/streams" to="pubsub.localhost" id=":pfWBQ2MNIq8ieul57Qp7" type="set">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
124 <pubsub xmlns="http://jabber.org/protocol/pubsub">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
125 <publish node="e96caf12-264f-4e5a-988e-00ae191771b6">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
126 <item id="20e9eb9e-8acb-436e-a486-40e80400faf1">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
127 <foo xmlns="https://zombofant.net/xmlns/aioxmpp#test">foo</foo>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
128 </item>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
129 </publish>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
130 </pubsub>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
131 </iq>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
132
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
133 Alice receives:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
134 <iq xmlns:stream="http://etherx.jabber.org/streams" to="${Alice's full JID}" from="pubsub.localhost" type="result" id=":pfWBQ2MNIq8ieul57Qp7">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
135 <pubsub xmlns="http://jabber.org/protocol/pubsub">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
136 <publish node="e96caf12-264f-4e5a-988e-00ae191771b6">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
137 <item id="20e9eb9e-8acb-436e-a486-40e80400faf1"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
138 </publish>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
139 </pubsub>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
140 </iq>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
141
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
142 Alice sends:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
143 <iq xmlns:stream="http://etherx.jabber.org/streams" to="pubsub.localhost" id=":Q5TLT6nsW0HHdkDgrPPe" type="set">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
144 <pubsub xmlns="http://jabber.org/protocol/pubsub">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
145 <publish node="e96caf12-264f-4e5a-988e-00ae191771b6">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
146 <item id="4b94623d-1127-41c0-ac47-e283fd890557">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
147 <foo xmlns="https://zombofant.net/xmlns/aioxmpp#test">bar</foo>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
148 </item>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
149 </publish>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
150 </pubsub>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
151 </iq>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
152
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
153 Alice receives:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
154 <iq xmlns:stream="http://etherx.jabber.org/streams" to="${Alice's full JID}" from="pubsub.localhost" type="result" id=":Q5TLT6nsW0HHdkDgrPPe">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
155 <pubsub xmlns="http://jabber.org/protocol/pubsub">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
156 <publish node="e96caf12-264f-4e5a-988e-00ae191771b6">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
157 <item id="4b94623d-1127-41c0-ac47-e283fd890557"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
158 </publish>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
159 </pubsub>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
160 </iq>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
161
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
162 Alice sends:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
163 <iq xmlns:stream="http://etherx.jabber.org/streams" to="pubsub.localhost" id=":3nvB2E20p1iuM6lOPaP6" type="get">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
164 <pubsub xmlns="http://jabber.org/protocol/pubsub">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
165 <items node="e96caf12-264f-4e5a-988e-00ae191771b6">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
166 <item id="20e9eb9e-8acb-436e-a486-40e80400faf1"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
167 <item id="4b94623d-1127-41c0-ac47-e283fd890557"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
168 </items>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
169 </pubsub>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
170 </iq>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
171
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
172 Alice receives:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
173 <iq xmlns:stream="http://etherx.jabber.org/streams" to="${Alice's full JID}" from="pubsub.localhost" type="result" id=":3nvB2E20p1iuM6lOPaP6">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
174 <pubsub xmlns="http://jabber.org/protocol/pubsub">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
175 <items node="e96caf12-264f-4e5a-988e-00ae191771b6">
11714
d783716103c1 mod_pubsub: Fix inclusion of publisher (fixes #1399)
Kim Alvefur <zash@zash.se>
parents: 11631
diff changeset
176 <item publisher="${Alice's JID}" xmlns="http://jabber.org/protocol/pubsub" id="20e9eb9e-8acb-436e-a486-40e80400faf1">
9833
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
177 <foo xmlns="https://zombofant.net/xmlns/aioxmpp#test">foo</foo>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
178 </item>
11714
d783716103c1 mod_pubsub: Fix inclusion of publisher (fixes #1399)
Kim Alvefur <zash@zash.se>
parents: 11631
diff changeset
179 <item publisher="${Alice's JID}" xmlns="http://jabber.org/protocol/pubsub" id="4b94623d-1127-41c0-ac47-e283fd890557">
9833
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
180 <foo xmlns="https://zombofant.net/xmlns/aioxmpp#test">bar</foo>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
181 </item>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
182 </items>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
183 </pubsub>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
184 </iq>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
185
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
186 Alice sends:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
187 <iq xmlns:stream="http://etherx.jabber.org/streams" to="pubsub.localhost" id=":XQdyK54iyOKiJvUoX9t_" type="get">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
188 <pubsub xmlns="http://jabber.org/protocol/pubsub">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
189 <items node="e96caf12-264f-4e5a-988e-00ae191771b6"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
190 </pubsub>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
191 </iq>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
192
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
193 Alice receives:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
194 <iq xmlns:stream="http://etherx.jabber.org/streams" to="${Alice's full JID}" from="pubsub.localhost" type="result" id=":XQdyK54iyOKiJvUoX9t_">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
195 <pubsub xmlns="http://jabber.org/protocol/pubsub">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
196 <items node="e96caf12-264f-4e5a-988e-00ae191771b6">
11714
d783716103c1 mod_pubsub: Fix inclusion of publisher (fixes #1399)
Kim Alvefur <zash@zash.se>
parents: 11631
diff changeset
197 <item xmlns="http://jabber.org/protocol/pubsub" publisher="${Alice's JID}" id="20e9eb9e-8acb-436e-a486-40e80400faf1">
9833
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
198 <foo xmlns="https://zombofant.net/xmlns/aioxmpp#test">foo</foo>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
199 </item>
11714
d783716103c1 mod_pubsub: Fix inclusion of publisher (fixes #1399)
Kim Alvefur <zash@zash.se>
parents: 11631
diff changeset
200 <item xmlns="http://jabber.org/protocol/pubsub" publisher="${Alice's JID}" id="4b94623d-1127-41c0-ac47-e283fd890557">
9833
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
201 <foo xmlns="https://zombofant.net/xmlns/aioxmpp#test">bar</foo>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
202 </item>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
203 </items>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
204 </pubsub>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
205 </iq>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
206
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
207 Alice sends:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
208 <iq xmlns:stream="http://etherx.jabber.org/streams" to="pubsub.localhost" id=":ySGQOz5tnyWT82idwJZP" type="set">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
209 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
210 <delete node="e96caf12-264f-4e5a-988e-00ae191771b6"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
211 </pubsub>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
212 </iq>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
213
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
214 Alice receives:
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
215 <iq xmlns:stream="http://etherx.jabber.org/streams" to="${Alice's full JID}" from="pubsub.localhost" type="result" id=":ySGQOz5tnyWT82idwJZP"/>
86fe021f16a6 spec: Add test case for #1322
Kim Alvefur <zash@zash.se>
parents:
diff changeset
216