Software /
code /
prosody
Comparison
spec/scansion/bookmarks2.scs @ 13538:f308cd5d39d9
scansion: Import XEP-0402 test from prosody-modules rev 2c6b14207271
This corresponds to the file mod_bookmarks2/tests/bookmarks2.scs
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 31 Oct 2024 17:22:38 +0100 |
child | 13539:006fbd0f0c2f |
comparison
equal
deleted
inserted
replaced
13537:fb970df95374 | 13538:f308cd5d39d9 |
---|---|
1 # Pubsub: Bookmarks 2.0 | |
2 | |
3 [Client] Juliet | |
4 jid: admin@localhost | |
5 password: password | |
6 | |
7 // admin@localhost is assumed to have node creation privileges | |
8 | |
9 --------- | |
10 | |
11 Juliet connects | |
12 | |
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:1+notify'/></query>" | |
15 Juliet sends: | |
16 <presence id='presence0'> | |
17 <c xmlns='http://jabber.org/protocol/caps' | |
18 hash='sha-1' | |
19 node='https://code.matthewwild.co.uk/scansion/' | |
20 ver='CPuQARM1gCTq2f6/ZjHUzWL2QHg='/> | |
21 <c xmlns='urn:xmpp:caps'> | |
22 <hash xmlns='urn:xmpp:hashes:2' algo='sha-256'>OTy9GPCvBZRvqzOHmD/ThA1WbBH3tNoeKbdqKQCRPHc=</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> | |
25 </c> | |
26 </presence> | |
27 | |
28 Juliet receives: | |
29 <iq from="${Juliet's JID}" id='disco' type='get'> | |
30 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#CPuQARM1gCTq2f6/ZjHUzWL2QHg='/> | |
31 </iq> | |
32 | |
33 Juliet sends: | |
34 <iq to="${Juliet's JID}" id='disco' type='result'> | |
35 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#CPuQARM1gCTq2f6/ZjHUzWL2QHg='> | |
36 <identity category='client' name='scansion' type='bot'/> | |
37 <feature var='http://jabber.org/protocol/disco#info'/> | |
38 <feature var='urn:xmpp:bookmarks:1+notify'/> | |
39 </query> | |
40 </iq> | |
41 | |
42 Juliet sends: | |
43 <iq type='set' id='pub0'> | |
44 <pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
45 <publish node='urn:xmpp:bookmarks:1'> | |
46 <item id='theplay@conference.shakespeare.lit'> | |
47 <conference xmlns='urn:xmpp:bookmarks:1' | |
48 name='The Play's the Thing' | |
49 autojoin='true'> | |
50 <nick>JC</nick> | |
51 </conference> | |
52 </item> | |
53 </publish> | |
54 <publish-options> | |
55 <x xmlns='jabber:x:data' type='submit'> | |
56 <field var='FORM_TYPE' type='hidden'> | |
57 <value>http://jabber.org/protocol/pubsub#publish-options</value> | |
58 </field> | |
59 <field var='pubsub#persist_items'> | |
60 <value>true</value> | |
61 </field> | |
62 <field var='pubsub#max_items'> | |
63 <value>255</value> | |
64 </field> | |
65 <field var='pubsub#send_last_published_item'> | |
66 <value>never</value> | |
67 </field> | |
68 <field var='pubsub#access_model'> | |
69 <value>whitelist</value> | |
70 </field> | |
71 </x> | |
72 </publish-options> | |
73 </pubsub> | |
74 </iq> | |
75 | |
76 Juliet receives: | |
77 <message type='headline' from="${Juliet's JID}"> | |
78 <event xmlns='http://jabber.org/protocol/pubsub#event'> | |
79 <items node='urn:xmpp:bookmarks:1'> | |
80 <item id='theplay@conference.shakespeare.lit' publisher="${Juliet's JID}"> | |
81 <conference xmlns='urn:xmpp:bookmarks:1' | |
82 name='The Play's the Thing' | |
83 autojoin='true'> | |
84 <nick>JC</nick> | |
85 </conference> | |
86 </item> | |
87 </items> | |
88 </event> | |
89 </message> | |
90 | |
91 Juliet receives: | |
92 <iq type='result' id='pub0'> | |
93 <pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
94 <publish node='urn:xmpp:bookmarks:1'> | |
95 <item id='theplay@conference.shakespeare.lit'/> | |
96 </publish> | |
97 </pubsub> | |
98 </iq> | |
99 | |
100 Juliet sends: | |
101 <iq type='set' id='pub1'> | |
102 <pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
103 <publish node='urn:xmpp:bookmarks:1'> | |
104 <item id='orchard@conference.shakespeare.lit'> | |
105 <conference xmlns='urn:xmpp:bookmarks:1' | |
106 name='The Orchard' | |
107 autojoin='true'> | |
108 <nick>JC</nick> | |
109 </conference> | |
110 </item> | |
111 </publish> | |
112 <publish-options> | |
113 <x xmlns='jabber:x:data' type='submit'> | |
114 <field var='FORM_TYPE' type='hidden'> | |
115 <value>http://jabber.org/protocol/pubsub#publish-options</value> | |
116 </field> | |
117 <field var='pubsub#persist_items'> | |
118 <value>true</value> | |
119 </field> | |
120 <field var='pubsub#max_items'> | |
121 <value>255</value> | |
122 </field> | |
123 <field var='pubsub#send_last_published_item'> | |
124 <value>never</value> | |
125 </field> | |
126 <field var='pubsub#access_model'> | |
127 <value>whitelist</value> | |
128 </field> | |
129 </x> | |
130 </publish-options> | |
131 </pubsub> | |
132 </iq> | |
133 | |
134 Juliet receives: | |
135 <message type='headline' from="${Juliet's JID}"> | |
136 <event xmlns='http://jabber.org/protocol/pubsub#event'> | |
137 <items node='urn:xmpp:bookmarks:1'> | |
138 <item id='orchard@conference.shakespeare.lit' publisher="${Juliet's JID}"> | |
139 <conference xmlns='urn:xmpp:bookmarks:1' | |
140 name='The Orchard' | |
141 autojoin='true'> | |
142 <nick>JC</nick> | |
143 </conference> | |
144 </item> | |
145 </items> | |
146 </event> | |
147 </message> | |
148 | |
149 Juliet receives: | |
150 <iq type='result' id='pub1'> | |
151 <pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
152 <publish node='urn:xmpp:bookmarks:1'> | |
153 <item id='orchard@conference.shakespeare.lit'/> | |
154 </publish> | |
155 </pubsub> | |
156 </iq> | |
157 | |
158 Juliet sends: | |
159 <iq type='set' id='retract0'> | |
160 <pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
161 <retract node='urn:xmpp:bookmarks:1' notify='1'> | |
162 <item id='theplay@conference.shakespeare.lit'/> | |
163 </retract> | |
164 </pubsub> | |
165 </iq> | |
166 | |
167 Juliet receives: | |
168 <message type='headline' from="${Juliet's JID}"> | |
169 <event xmlns='http://jabber.org/protocol/pubsub#event'> | |
170 <items node='urn:xmpp:bookmarks:1'> | |
171 <retract id='theplay@conference.shakespeare.lit'/> | |
172 </items> | |
173 </event> | |
174 </message> | |
175 | |
176 Juliet receives: | |
177 <iq type='result' id='retract0'/> | |
178 | |
179 Juliet disconnects | |
180 | |
181 // vim: syntax=xml: |