Mercurial > prosody-modules
annotate mod_bookmarks2/tests/bookmarks2.scs @ 4846:ad7767a9f3ea
mod_bookmarks2: Fix check for max_items=max support
This function does not throw, it just returns a boolean.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 04 Jan 2022 23:00:04 +0100 |
parents | 64fafbeba14d |
children |
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: |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
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:1+notify'/></query>" |
3744
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/' |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
20 ver='CPuQARM1gCTq2f6/ZjHUzWL2QHg='/> |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
21 <c xmlns='urn:xmpp:caps'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
22 <hash xmlns='urn:xmpp:hashes:2' algo='sha-256'>OTy9GPCvBZRvqzOHmD/ThA1WbBH3tNoeKbdqKQCRPHc=</hash> |
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
23 <hash xmlns='urn:xmpp:hashes:2' algo='sha3-256'>f/rxDeTf6HyjQ382V3GEG/UfAs5IeclC05jBSBnVQCI=</hash> |
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
24 <hash xmlns='urn:xmpp:hashes:2' algo='blake2b-256'>ucfqg/NrLj0omE+26hYMrbpcmxHcU4Z3hfAQIF+6tt0=</hash> |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
25 </c> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
26 </presence> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
27 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
28 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
29 <iq from="${Juliet's JID}" id='disco' type='get'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
30 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#CPuQARM1gCTq2f6/ZjHUzWL2QHg='/> |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
31 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
32 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
33 Juliet sends: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
34 <iq to="${Juliet's JID}" id='disco' type='result'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
35 <query xmlns='http://jabber.org/protocol/disco#info' node='https://code.matthewwild.co.uk/scansion/#CPuQARM1gCTq2f6/ZjHUzWL2QHg='> |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
36 <identity category='client' name='scansion' type='bot'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
37 <feature var='http://jabber.org/protocol/disco#info'/> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
38 <feature var='urn:xmpp:bookmarks:1+notify'/> |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
39 </query> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
40 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
41 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
42 Juliet sends: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
43 <iq type='set' id='pub0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
44 <pubsub xmlns='http://jabber.org/protocol/pubsub'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
45 <publish node='urn:xmpp:bookmarks:1'> |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
46 <item id='theplay@conference.shakespeare.lit'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
47 <conference xmlns='urn:xmpp:bookmarks:1' |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
48 name='The Play's the Thing' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
49 autojoin='true'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
50 <nick>JC</nick> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
51 </conference> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
52 </item> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
53 </publish> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
54 <publish-options> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
55 <x xmlns='jabber:x:data' type='submit'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
56 <field var='FORM_TYPE' type='hidden'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
57 <value>http://jabber.org/protocol/pubsub#publish-options</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
58 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
59 <field var='pubsub#persist_items'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
60 <value>true</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
61 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
62 <field var='pubsub#max_items'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
63 <value>255</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
64 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
65 <field var='pubsub#send_last_published_item'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
66 <value>never</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
67 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
68 <field var='pubsub#access_model'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
69 <value>whitelist</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
70 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
71 </x> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
72 </publish-options> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
73 </pubsub> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
74 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
75 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
76 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
77 <message type='headline' from="${Juliet's JID}"> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
78 <event xmlns='http://jabber.org/protocol/pubsub#event'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
79 <items node='urn:xmpp:bookmarks:1'> |
4641
64fafbeba14d
mod_bookmarks2: Add missing @publisher in tests
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
4640
diff
changeset
|
80 <item id='theplay@conference.shakespeare.lit' publisher="${Juliet's JID}"> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
81 <conference xmlns='urn:xmpp:bookmarks:1' |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
82 name='The Play's the Thing' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
83 autojoin='true'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
84 <nick>JC</nick> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
85 </conference> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
86 </item> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
87 </items> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
88 </event> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
89 </message> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
90 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
91 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
92 <iq type='result' id='pub0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
93 <pubsub xmlns='http://jabber.org/protocol/pubsub'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
94 <publish node='urn:xmpp:bookmarks:1'> |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
95 <item id='theplay@conference.shakespeare.lit'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
96 </publish> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
97 </pubsub> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
98 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
99 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
100 Juliet sends: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
101 <iq type='set' id='pub1'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
102 <pubsub xmlns='http://jabber.org/protocol/pubsub'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
103 <publish node='urn:xmpp:bookmarks:1'> |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
104 <item id='orchard@conference.shakespeare.lit'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
105 <conference xmlns='urn:xmpp:bookmarks:1' |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
106 name='The Orchard' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
107 autojoin='true'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
108 <nick>JC</nick> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
109 </conference> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
110 </item> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
111 </publish> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
112 <publish-options> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
113 <x xmlns='jabber:x:data' type='submit'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
114 <field var='FORM_TYPE' type='hidden'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
115 <value>http://jabber.org/protocol/pubsub#publish-options</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
116 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
117 <field var='pubsub#persist_items'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
118 <value>true</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
119 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
120 <field var='pubsub#max_items'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
121 <value>255</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
122 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
123 <field var='pubsub#send_last_published_item'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
124 <value>never</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
125 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
126 <field var='pubsub#access_model'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
127 <value>whitelist</value> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
128 </field> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
129 </x> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
130 </publish-options> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
131 </pubsub> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
132 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
133 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
134 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
135 <message type='headline' from="${Juliet's JID}"> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
136 <event xmlns='http://jabber.org/protocol/pubsub#event'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
137 <items node='urn:xmpp:bookmarks:1'> |
4641
64fafbeba14d
mod_bookmarks2: Add missing @publisher in tests
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
4640
diff
changeset
|
138 <item id='orchard@conference.shakespeare.lit' publisher="${Juliet's JID}"> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
139 <conference xmlns='urn:xmpp:bookmarks:1' |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
140 name='The Orchard' |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
141 autojoin='true'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
142 <nick>JC</nick> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
143 </conference> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
144 </item> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
145 </items> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
146 </event> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
147 </message> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
148 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
149 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
150 <iq type='result' id='pub1'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
151 <pubsub xmlns='http://jabber.org/protocol/pubsub'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
152 <publish node='urn:xmpp:bookmarks:1'> |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
153 <item id='orchard@conference.shakespeare.lit'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
154 </publish> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
155 </pubsub> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
156 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
157 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
158 Juliet sends: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
159 <iq type='set' id='retract0'> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
160 <pubsub xmlns='http://jabber.org/protocol/pubsub'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
161 <retract node='urn:xmpp:bookmarks:1' notify='1'> |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
162 <item id='theplay@conference.shakespeare.lit'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
163 </retract> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
164 </pubsub> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
165 </iq> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
166 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
167 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
168 <message type='headline' from="${Juliet's JID}"> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
169 <event xmlns='http://jabber.org/protocol/pubsub#event'> |
4640
d835cb7d2b47
mod_bookmarks2: Update namespace to :1
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3744
diff
changeset
|
170 <items node='urn:xmpp:bookmarks:1'> |
3744
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
171 <retract id='theplay@conference.shakespeare.lit'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
172 </items> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
173 </event> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
174 </message> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
175 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
176 Juliet receives: |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
177 <iq type='result' id='retract0'/> |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
178 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
179 Juliet disconnects |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
180 |
1cfc8012a76f
mod_bookmarks2: Add tests.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
181 // vim: syntax=xml: |