Comparison

spec/scansion/pep_pubsub_max.scs @ 11631:6641ca266d94

mod_pubsub,mod_pep: Support "max" as 'pubsub#max_items' Fixes #1643 API change: The argument to archive_itemstore() changes type to integer
author Kim Alvefur <zash@zash.se>
date Wed, 09 Jun 2021 15:58:49 +0200
comparison
equal deleted inserted replaced
11630:855b065d5fd6 11631:6641ca266d94
1 # PEP max_items=max
2
3 [Client] Romeo
4 jid: pep-test-maxitems@localhost
5 password: password
6
7 -----
8
9 Romeo connects
10
11 Romeo sends:
12 <iq type="set" id="pub">
13 <pubsub xmlns="http://jabber.org/protocol/pubsub">
14 <publish node="urn:xmpp:microblog:0">
15 <item>
16 <entry xmlns='http://www.w3.org/2005/Atom'>
17 <title>Hello</title>
18 </entry>
19 </item>
20 </publish>
21 <publish-options>
22 <x xmlns="jabber:x:data" type="submit">
23 <field type="hidden" var="FORM_TYPE">
24 <value>http://jabber.org/protocol/pubsub#publish-options</value>
25 </field>
26 <field var="pubsub#persist_items">
27 <value>true</value>
28 </field>
29 <field var="pubsub#access_model">
30 <value>open</value>
31 </field>
32 <field var="pubsub#max_items">
33 <value>max</value>
34 </field>
35 </x>
36 </publish-options>
37 </pubsub>
38 </iq>
39
40 Romeo receives:
41 <iq type="result" id="pub">
42 <pubsub xmlns="http://jabber.org/protocol/pubsub">
43 <publish node="urn:xmpp:microblog:0">
44 <item id="{scansion:any}"/>
45 </publish>
46 </pubsub>
47 </iq>