diff options
author | Kim Alvefur <zash@zash.se> | 2021-06-09 15:58:49 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-06-09 15:58:49 +0200 |
commit | c880dee2af4b1f5e184c3a3c7f70036694d9c1f8 (patch) | |
tree | f0bcecd7be12b067e31e7aa05354fc17a2d9cc64 /spec/scansion/pep_pubsub_max.scs | |
parent | 351a197fbdd99b11505c283ae8c3f414bee38885 (diff) | |
download | prosody-c880dee2af4b1f5e184c3a3c7f70036694d9c1f8.tar.gz prosody-c880dee2af4b1f5e184c3a3c7f70036694d9c1f8.zip |
mod_pubsub,mod_pep: Support "max" as 'pubsub#max_items'
Fixes #1643
API change: The argument to archive_itemstore() changes type to integer
Diffstat (limited to 'spec/scansion/pep_pubsub_max.scs')
-rw-r--r-- | spec/scansion/pep_pubsub_max.scs | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/spec/scansion/pep_pubsub_max.scs b/spec/scansion/pep_pubsub_max.scs new file mode 100644 index 00000000..6961304c --- /dev/null +++ b/spec/scansion/pep_pubsub_max.scs @@ -0,0 +1,47 @@ +# PEP max_items=max + +[Client] Romeo + jid: pep-test-maxitems@localhost + password: password + +----- + +Romeo connects + +Romeo sends: + <iq type="set" id="pub"> + <pubsub xmlns="http://jabber.org/protocol/pubsub"> + <publish node="urn:xmpp:microblog:0"> + <item> + <entry xmlns='http://www.w3.org/2005/Atom'> + <title>Hello</title> + </entry> + </item> + </publish> + <publish-options> + <x xmlns="jabber:x:data" type="submit"> + <field type="hidden" var="FORM_TYPE"> + <value>http://jabber.org/protocol/pubsub#publish-options</value> + </field> + <field var="pubsub#persist_items"> + <value>true</value> + </field> + <field var="pubsub#access_model"> + <value>open</value> + </field> + <field var="pubsub#max_items"> + <value>max</value> + </field> + </x> + </publish-options> + </pubsub> + </iq> + +Romeo receives: + <iq type="result" id="pub"> + <pubsub xmlns="http://jabber.org/protocol/pubsub"> + <publish node="urn:xmpp:microblog:0"> + <item id="{scansion:any}"/> + </publish> + </pubsub> + </iq> |