Mercurial > prosody-modules
annotate mod_bookmarks2/tests/bookmarks2.scs @ 4004:56a13ba59b28
mod_turncredentials/README: Hide reTURNManager until it's confirmed to support the rest API
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 May 2020 00:51:56 +0200 |
parents | 1cfc8012a76f |
children | d835cb7d2b47 |
rev | line source |
---|---|
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
1 # Pubsub: Bookmarks 2.0 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
2 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
3 [Client] Juliet |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
4 jid: admin@localhost |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
5 password: password |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
6 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
7 // admin@localhost is assumed to have node creation privileges |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
8 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
9 --------- |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
10 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
11 Juliet connects |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
12 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
13 -- Generated with https://gitlab.com/xmpp-rs/xmpp-parsers: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
14 -- cargo run --example=generate-caps https://code.matthewwild.co.uk/scansion/ <<< "<query xmlns='http://jabber.org/protocol/disco#info'><identity category='client' name='scansion' type='bot'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='urn:xmpp:bookmarks:0+notify'/></query>" |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
15 Juliet sends: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
16 <presence id='presence0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
17 <c xmlns='http://jabber.org/protocol/caps' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
18 hash='sha-1' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
19 node='https://code.matthewwild.co.uk/scansion/' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
20 ver='Tg9qGTn5+LdKR6TTdjCUMVohBMc='/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
21 <c xmlns='urn:xmpp:caps'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
22 <hash xmlns='urn:xmpp:hashes:2' algo='sha-256'>5a5oTk21S9EmWQGIyuMwPKuSkPwqmXv6aKO5ftqCw/Q=</hash> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
23 <hash xmlns='urn:xmpp:hashes:2' algo='sha3-256'>f3ziwT4vDK+VxuWrhhPEEgI3HJcEw7Zg4MggYE6vjZ0=</hash> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
24 </c> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
25 </presence> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
26 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
27 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
28 <iq from="${Juliet's JID}" id='disco' type='get'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
29 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#Tg9qGTn5+LdKR6TTdjCUMVohBMc='/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
30 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
31 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
32 Juliet sends: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
33 <iq to="${Juliet's JID}" id='disco' type='result'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
34 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#Tg9qGTn5+LdKR6TTdjCUMVohBMc='> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
35 <identity category='client' name='scansion' type='bot'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
36 <feature var='http://jabber.org/protocol/disco#info'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
37 <feature var='urn:xmpp:bookmarks:0+notify'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
38 </query> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
39 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
40 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
41 Juliet sends: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
42 <iq type='set' id='pub0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
43 <pubsub xmlns='http://jabber.org/protocol/pubsub'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
44 <publish node='urn:xmpp:bookmarks:0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
45 <item id='theplay@conference.shakespeare.lit'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
46 <conference xmlns='urn:xmpp:bookmarks:0' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
47 name='The Play's the Thing' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
48 autojoin='true'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
49 <nick>JC</nick> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
50 </conference> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
51 </item> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
52 </publish> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
53 <publish-options> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
54 <x xmlns='jabber:x:data' type='submit'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
55 <field var='FORM_TYPE' type='hidden'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
56 <value>http://jabber.org/protocol/pubsub#publish-options</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
57 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
58 <field var='pubsub#persist_items'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
59 <value>true</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
60 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
61 <field var='pubsub#max_items'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
62 <value>255</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
63 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
64 <field var='pubsub#send_last_published_item'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
65 <value>never</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
66 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
67 <field var='pubsub#access_model'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
68 <value>whitelist</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
69 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
70 </x> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
71 </publish-options> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
72 </pubsub> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
73 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
74 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
75 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
76 <message type='headline' from="${Juliet's JID}"> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
77 <event xmlns='http://jabber.org/protocol/pubsub#event'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
78 <items node='urn:xmpp:bookmarks:0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
79 <item id='theplay@conference.shakespeare.lit'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
80 <conference xmlns='urn:xmpp:bookmarks:0' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
81 name='The Play's the Thing' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
82 autojoin='true'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
83 <nick>JC</nick> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
84 </conference> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
85 </item> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
86 </items> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
87 </event> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
88 </message> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
89 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
90 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
91 <iq type='result' id='pub0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
92 <pubsub xmlns='http://jabber.org/protocol/pubsub'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
93 <publish node='urn:xmpp:bookmarks:0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
94 <item id='theplay@conference.shakespeare.lit'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
95 </publish> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
96 </pubsub> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
97 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
98 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
99 Juliet sends: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
100 <iq type='set' id='pub1'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
101 <pubsub xmlns='http://jabber.org/protocol/pubsub'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
102 <publish node='urn:xmpp:bookmarks:0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
103 <item id='orchard@conference.shakespeare.lit'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
104 <conference xmlns='urn:xmpp:bookmarks:0' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
105 name='The Orchard' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
106 autojoin='true'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
107 <nick>JC</nick> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
108 </conference> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
109 </item> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
110 </publish> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
111 <publish-options> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
112 <x xmlns='jabber:x:data' type='submit'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
113 <field var='FORM_TYPE' type='hidden'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
114 <value>http://jabber.org/protocol/pubsub#publish-options</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
115 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
116 <field var='pubsub#persist_items'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
117 <value>true</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
118 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
119 <field var='pubsub#max_items'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
120 <value>255</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
121 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
122 <field var='pubsub#send_last_published_item'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
123 <value>never</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
124 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
125 <field var='pubsub#access_model'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
126 <value>whitelist</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
127 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
128 </x> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
129 </publish-options> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
130 </pubsub> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
131 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
132 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
133 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
134 <message type='headline' from="${Juliet's JID}"> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
135 <event xmlns='http://jabber.org/protocol/pubsub#event'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
136 <items node='urn:xmpp:bookmarks:0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
137 <item id='orchard@conference.shakespeare.lit'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
138 <conference xmlns='urn:xmpp:bookmarks:0' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
139 name='The Orchard' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
140 autojoin='true'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
141 <nick>JC</nick> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
142 </conference> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
143 </item> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
144 </items> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
145 </event> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
146 </message> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
147 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
148 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
149 <iq type='result' id='pub1'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
150 <pubsub xmlns='http://jabber.org/protocol/pubsub'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
151 <publish node='urn:xmpp:bookmarks:0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
152 <item id='orchard@conference.shakespeare.lit'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
153 </publish> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
154 </pubsub> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
155 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
156 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
157 Juliet sends: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
158 <iq type='set' id='retract0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
159 <pubsub xmlns='http://jabber.org/protocol/pubsub'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
160 <retract node='urn:xmpp:bookmarks:0' notify='1'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
161 <item id='theplay@conference.shakespeare.lit'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
162 </retract> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
163 </pubsub> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
164 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
165 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
166 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
167 <message type='headline' from="${Juliet's JID}"> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
168 <event xmlns='http://jabber.org/protocol/pubsub#event'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
169 <items node='urn:xmpp:bookmarks:0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
170 <retract id='theplay@conference.shakespeare.lit'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
171 </items> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
172 </event> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
173 </message> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
174 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
175 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
176 <iq type='result' id='retract0'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
177 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
178 Juliet disconnects |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
179 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
180 // vim: syntax=xml: |