comparison mod_bookmarks2/tests/conversion.scs @ 4640:d835cb7d2b47

mod_bookmarks2: Update namespace to :1
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 30 Jul 2021 21:17:09 +0200
parents 1cfc8012a76f
children
comparison
equal deleted inserted replaced
4639:3da7cd77aca9 4640:d835cb7d2b47
13 --------- 13 ---------
14 14
15 Juliet-new connects 15 Juliet-new connects
16 16
17 -- Generated with https://gitlab.com/xmpp-rs/xmpp-parsers: 17 -- Generated with https://gitlab.com/xmpp-rs/xmpp-parsers:
18 -- 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>" 18 -- 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:1+notify'/></query>"
19 Juliet-new sends: 19 Juliet-new sends:
20 <presence id='presence0'> 20 <presence id='presence0'>
21 <c xmlns='http://jabber.org/protocol/caps' 21 <c xmlns='http://jabber.org/protocol/caps'
22 hash='sha-1' 22 hash='sha-1'
23 node='https://code.matthewwild.co.uk/scansion/' 23 node='https://code.matthewwild.co.uk/scansion/'
24 ver='Tg9qGTn5+LdKR6TTdjCUMVohBMc='/> 24 ver='CPuQARM1gCTq2f6/ZjHUzWL2QHg='/>
25 <c xmlns='urn:xmpp:caps'> 25 <c xmlns='urn:xmpp:caps'>
26 <hash xmlns='urn:xmpp:hashes:2' algo='sha-256'>5a5oTk21S9EmWQGIyuMwPKuSkPwqmXv6aKO5ftqCw/Q=</hash> 26 <hash xmlns='urn:xmpp:hashes:2' algo='sha-256'>OTy9GPCvBZRvqzOHmD/ThA1WbBH3tNoeKbdqKQCRPHc=</hash>
27 <hash xmlns='urn:xmpp:hashes:2' algo='sha3-256'>f3ziwT4vDK+VxuWrhhPEEgI3HJcEw7Zg4MggYE6vjZ0=</hash> 27 <hash xmlns='urn:xmpp:hashes:2' algo='sha3-256'>f/rxDeTf6HyjQ382V3GEG/UfAs5IeclC05jBSBnVQCI=</hash>
28 <hash xmlns='urn:xmpp:hashes:2' algo='blake2b-256'>ucfqg/NrLj0omE+26hYMrbpcmxHcU4Z3hfAQIF+6tt0=</hash>
28 </c> 29 </c>
29 </presence> 30 </presence>
30 31
31 Juliet-new receives: 32 Juliet-new receives:
32 <iq from="${Juliet-new's JID}" id='disco' type='get'> 33 <iq from="${Juliet-new's JID}" id='disco' type='get'>
33 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#Tg9qGTn5+LdKR6TTdjCUMVohBMc='/> 34 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#CPuQARM1gCTq2f6/ZjHUzWL2QHg='/>
34 </iq> 35 </iq>
35 36
36 Juliet-new sends: 37 Juliet-new sends:
37 <iq to="${Juliet-new's JID}" id='disco' type='result'> 38 <iq to="${Juliet-new's JID}" id='disco' type='result'>
38 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#Tg9qGTn5+LdKR6TTdjCUMVohBMc='> 39 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#CPuQARM1gCTq2f6/ZjHUzWL2QHg='>
39 <identity category='client' name='scansion' type='bot'/> 40 <identity category='client' name='scansion' type='bot'/>
40 <feature var='http://jabber.org/protocol/disco#info'/> 41 <feature var='http://jabber.org/protocol/disco#info'/>
41 <feature var='urn:xmpp:bookmarks:0+notify'/> 42 <feature var='urn:xmpp:bookmarks:1+notify'/>
42 </query> 43 </query>
43 </iq> 44 </iq>
44 45
45 Juliet-old connects 46 Juliet-old connects
46 47
72 </iq> 73 </iq>
73 74
74 Juliet-new receives: 75 Juliet-new receives:
75 <message type='headline' from="${Juliet-new's JID}"> 76 <message type='headline' from="${Juliet-new's JID}">
76 <event xmlns='http://jabber.org/protocol/pubsub#event'> 77 <event xmlns='http://jabber.org/protocol/pubsub#event'>
77 <items node='urn:xmpp:bookmarks:0'> 78 <items node='urn:xmpp:bookmarks:1'>
78 <item id='theplay@conference.shakespeare.lit'> 79 <item id='theplay@conference.shakespeare.lit'>
79 <conference xmlns='urn:xmpp:bookmarks:0' 80 <conference xmlns='urn:xmpp:bookmarks:1'
80 name='The Play&apos;s the Thing' 81 name='The Play&apos;s the Thing'
81 autojoin='true'> 82 autojoin='true'>
82 <nick>JC</nick> 83 <nick>JC</nick>
83 </conference> 84 </conference>
84 </item> 85 </item>
128 </iq> 129 </iq>
129 130
130 Juliet-new receives: 131 Juliet-new receives:
131 <message type='headline' from="${Juliet-new's JID}"> 132 <message type='headline' from="${Juliet-new's JID}">
132 <event xmlns='http://jabber.org/protocol/pubsub#event'> 133 <event xmlns='http://jabber.org/protocol/pubsub#event'>
133 <items node='urn:xmpp:bookmarks:0'> 134 <items node='urn:xmpp:bookmarks:1'>
134 <item id='orchard@conference.shakespeare.lit'> 135 <item id='orchard@conference.shakespeare.lit'>
135 <conference xmlns='urn:xmpp:bookmarks:0' 136 <conference xmlns='urn:xmpp:bookmarks:1'
136 name='The Orchard' 137 name='The Orchard'
137 autojoin='true'> 138 autojoin='true'>
138 <nick>JC</nick> 139 <nick>JC</nick>
139 </conference> 140 </conference>
140 </item> 141 </item>
184 </iq> 185 </iq>
185 186
186 Juliet-new receives: 187 Juliet-new receives:
187 <message type='headline' from="${Juliet-new's JID}"> 188 <message type='headline' from="${Juliet-new's JID}">
188 <event xmlns='http://jabber.org/protocol/pubsub#event'> 189 <event xmlns='http://jabber.org/protocol/pubsub#event'>
189 <items node='urn:xmpp:bookmarks:0'> 190 <items node='urn:xmpp:bookmarks:1'>
190 <retract id='theplay@conference.shakespeare.lit'/> 191 <retract id='theplay@conference.shakespeare.lit'/>
191 </items> 192 </items>
192 </event> 193 </event>
193 </message> 194 </message>
194 195
223 </iq> 224 </iq>
224 225
225 Juliet-new receives: 226 Juliet-new receives:
226 <message type='headline' from="${Juliet-new's JID}"> 227 <message type='headline' from="${Juliet-new's JID}">
227 <event xmlns='http://jabber.org/protocol/pubsub#event'> 228 <event xmlns='http://jabber.org/protocol/pubsub#event'>
228 <purge node='urn:xmpp:bookmarks:0'/> 229 <purge node='urn:xmpp:bookmarks:1'/>
229 </event> 230 </event>
230 </message> 231 </message>
231 232
232 Juliet-old receives: 233 Juliet-old receives:
233 <iq type='result' id='purge0'/> 234 <iq type='result' id='purge0'/>