comparison mod_bookmarks2/tests/bookmarks2.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 64fafbeba14d
comparison
equal deleted inserted replaced
4639:3da7cd77aca9 4640:d835cb7d2b47
9 --------- 9 ---------
10 10
11 Juliet connects 11 Juliet connects
12 12
13 -- Generated with https://gitlab.com/xmpp-rs/xmpp-parsers: 13 -- Generated with https://gitlab.com/xmpp-rs/xmpp-parsers:
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>" 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:1+notify'/></query>"
15 Juliet sends: 15 Juliet sends:
16 <presence id='presence0'> 16 <presence id='presence0'>
17 <c xmlns='http://jabber.org/protocol/caps' 17 <c xmlns='http://jabber.org/protocol/caps'
18 hash='sha-1' 18 hash='sha-1'
19 node='https://code.matthewwild.co.uk/scansion/' 19 node='https://code.matthewwild.co.uk/scansion/'
20 ver='Tg9qGTn5+LdKR6TTdjCUMVohBMc='/> 20 ver='CPuQARM1gCTq2f6/ZjHUzWL2QHg='/>
21 <c xmlns='urn:xmpp:caps'> 21 <c xmlns='urn:xmpp:caps'>
22 <hash xmlns='urn:xmpp:hashes:2' algo='sha-256'>5a5oTk21S9EmWQGIyuMwPKuSkPwqmXv6aKO5ftqCw/Q=</hash> 22 <hash xmlns='urn:xmpp:hashes:2' algo='sha-256'>OTy9GPCvBZRvqzOHmD/ThA1WbBH3tNoeKbdqKQCRPHc=</hash>
23 <hash xmlns='urn:xmpp:hashes:2' algo='sha3-256'>f3ziwT4vDK+VxuWrhhPEEgI3HJcEw7Zg4MggYE6vjZ0=</hash> 23 <hash xmlns='urn:xmpp:hashes:2' algo='sha3-256'>f/rxDeTf6HyjQ382V3GEG/UfAs5IeclC05jBSBnVQCI=</hash>
24 <hash xmlns='urn:xmpp:hashes:2' algo='blake2b-256'>ucfqg/NrLj0omE+26hYMrbpcmxHcU4Z3hfAQIF+6tt0=</hash>
24 </c> 25 </c>
25 </presence> 26 </presence>
26 27
27 Juliet receives: 28 Juliet receives:
28 <iq from="${Juliet's JID}" id='disco' type='get'> 29 <iq from="${Juliet's JID}" id='disco' type='get'>
29 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#Tg9qGTn5+LdKR6TTdjCUMVohBMc='/> 30 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#CPuQARM1gCTq2f6/ZjHUzWL2QHg='/>
30 </iq> 31 </iq>
31 32
32 Juliet sends: 33 Juliet sends:
33 <iq to="${Juliet's JID}" id='disco' type='result'> 34 <iq to="${Juliet's JID}" id='disco' type='result'>
34 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#Tg9qGTn5+LdKR6TTdjCUMVohBMc='> 35 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#CPuQARM1gCTq2f6/ZjHUzWL2QHg='>
35 <identity category='client' name='scansion' type='bot'/> 36 <identity category='client' name='scansion' type='bot'/>
36 <feature var='http://jabber.org/protocol/disco#info'/> 37 <feature var='http://jabber.org/protocol/disco#info'/>
37 <feature var='urn:xmpp:bookmarks:0+notify'/> 38 <feature var='urn:xmpp:bookmarks:1+notify'/>
38 </query> 39 </query>
39 </iq> 40 </iq>
40 41
41 Juliet sends: 42 Juliet sends:
42 <iq type='set' id='pub0'> 43 <iq type='set' id='pub0'>
43 <pubsub xmlns='http://jabber.org/protocol/pubsub'> 44 <pubsub xmlns='http://jabber.org/protocol/pubsub'>
44 <publish node='urn:xmpp:bookmarks:0'> 45 <publish node='urn:xmpp:bookmarks:1'>
45 <item id='theplay@conference.shakespeare.lit'> 46 <item id='theplay@conference.shakespeare.lit'>
46 <conference xmlns='urn:xmpp:bookmarks:0' 47 <conference xmlns='urn:xmpp:bookmarks:1'
47 name='The Play&apos;s the Thing' 48 name='The Play&apos;s the Thing'
48 autojoin='true'> 49 autojoin='true'>
49 <nick>JC</nick> 50 <nick>JC</nick>
50 </conference> 51 </conference>
51 </item> 52 </item>
73 </iq> 74 </iq>
74 75
75 Juliet receives: 76 Juliet receives:
76 <message type='headline' from="${Juliet's JID}"> 77 <message type='headline' from="${Juliet's JID}">
77 <event xmlns='http://jabber.org/protocol/pubsub#event'> 78 <event xmlns='http://jabber.org/protocol/pubsub#event'>
78 <items node='urn:xmpp:bookmarks:0'> 79 <items node='urn:xmpp:bookmarks:1'>
79 <item id='theplay@conference.shakespeare.lit'> 80 <item id='theplay@conference.shakespeare.lit'>
80 <conference xmlns='urn:xmpp:bookmarks:0' 81 <conference xmlns='urn:xmpp:bookmarks:1'
81 name='The Play&apos;s the Thing' 82 name='The Play&apos;s the Thing'
82 autojoin='true'> 83 autojoin='true'>
83 <nick>JC</nick> 84 <nick>JC</nick>
84 </conference> 85 </conference>
85 </item> 86 </item>
88 </message> 89 </message>
89 90
90 Juliet receives: 91 Juliet receives:
91 <iq type='result' id='pub0'> 92 <iq type='result' id='pub0'>
92 <pubsub xmlns='http://jabber.org/protocol/pubsub'> 93 <pubsub xmlns='http://jabber.org/protocol/pubsub'>
93 <publish node='urn:xmpp:bookmarks:0'> 94 <publish node='urn:xmpp:bookmarks:1'>
94 <item id='theplay@conference.shakespeare.lit'/> 95 <item id='theplay@conference.shakespeare.lit'/>
95 </publish> 96 </publish>
96 </pubsub> 97 </pubsub>
97 </iq> 98 </iq>
98 99
99 Juliet sends: 100 Juliet sends:
100 <iq type='set' id='pub1'> 101 <iq type='set' id='pub1'>
101 <pubsub xmlns='http://jabber.org/protocol/pubsub'> 102 <pubsub xmlns='http://jabber.org/protocol/pubsub'>
102 <publish node='urn:xmpp:bookmarks:0'> 103 <publish node='urn:xmpp:bookmarks:1'>
103 <item id='orchard@conference.shakespeare.lit'> 104 <item id='orchard@conference.shakespeare.lit'>
104 <conference xmlns='urn:xmpp:bookmarks:0' 105 <conference xmlns='urn:xmpp:bookmarks:1'
105 name='The Orchard' 106 name='The Orchard'
106 autojoin='true'> 107 autojoin='true'>
107 <nick>JC</nick> 108 <nick>JC</nick>
108 </conference> 109 </conference>
109 </item> 110 </item>
131 </iq> 132 </iq>
132 133
133 Juliet receives: 134 Juliet receives:
134 <message type='headline' from="${Juliet's JID}"> 135 <message type='headline' from="${Juliet's JID}">
135 <event xmlns='http://jabber.org/protocol/pubsub#event'> 136 <event xmlns='http://jabber.org/protocol/pubsub#event'>
136 <items node='urn:xmpp:bookmarks:0'> 137 <items node='urn:xmpp:bookmarks:1'>
137 <item id='orchard@conference.shakespeare.lit'> 138 <item id='orchard@conference.shakespeare.lit'>
138 <conference xmlns='urn:xmpp:bookmarks:0' 139 <conference xmlns='urn:xmpp:bookmarks:1'
139 name='The Orchard' 140 name='The Orchard'
140 autojoin='true'> 141 autojoin='true'>
141 <nick>JC</nick> 142 <nick>JC</nick>
142 </conference> 143 </conference>
143 </item> 144 </item>
146 </message> 147 </message>
147 148
148 Juliet receives: 149 Juliet receives:
149 <iq type='result' id='pub1'> 150 <iq type='result' id='pub1'>
150 <pubsub xmlns='http://jabber.org/protocol/pubsub'> 151 <pubsub xmlns='http://jabber.org/protocol/pubsub'>
151 <publish node='urn:xmpp:bookmarks:0'> 152 <publish node='urn:xmpp:bookmarks:1'>
152 <item id='orchard@conference.shakespeare.lit'/> 153 <item id='orchard@conference.shakespeare.lit'/>
153 </publish> 154 </publish>
154 </pubsub> 155 </pubsub>
155 </iq> 156 </iq>
156 157
157 Juliet sends: 158 Juliet sends:
158 <iq type='set' id='retract0'> 159 <iq type='set' id='retract0'>
159 <pubsub xmlns='http://jabber.org/protocol/pubsub'> 160 <pubsub xmlns='http://jabber.org/protocol/pubsub'>
160 <retract node='urn:xmpp:bookmarks:0' notify='1'> 161 <retract node='urn:xmpp:bookmarks:1' notify='1'>
161 <item id='theplay@conference.shakespeare.lit'/> 162 <item id='theplay@conference.shakespeare.lit'/>
162 </retract> 163 </retract>
163 </pubsub> 164 </pubsub>
164 </iq> 165 </iq>
165 166
166 Juliet receives: 167 Juliet receives:
167 <message type='headline' from="${Juliet's JID}"> 168 <message type='headline' from="${Juliet's JID}">
168 <event xmlns='http://jabber.org/protocol/pubsub#event'> 169 <event xmlns='http://jabber.org/protocol/pubsub#event'>
169 <items node='urn:xmpp:bookmarks:0'> 170 <items node='urn:xmpp:bookmarks:1'>
170 <retract id='theplay@conference.shakespeare.lit'/> 171 <retract id='theplay@conference.shakespeare.lit'/>
171 </items> 172 </items>
172 </event> 173 </event>
173 </message> 174 </message>
174 175