From c880dee2af4b1f5e184c3a3c7f70036694d9c1f8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 9 Jun 2021 15:58:49 +0200 Subject: mod_pubsub,mod_pep: Support "max" as 'pubsub#max_items' Fixes #1643 API change: The argument to archive_itemstore() changes type to integer --- spec/scansion/pep_pubsub_max.scs | 47 ++++++++++++++++++++++++++++++++++ spec/scansion/pubsub_config.scs | 4 +-- spec/scansion/pubsub_multi_items.scs | 2 +- spec/scansion/pubsub_preconditions.scs | 4 +-- 4 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 spec/scansion/pep_pubsub_max.scs (limited to 'spec') 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: + + + + + + Hello + + + + + + + http://jabber.org/protocol/pubsub#publish-options + + + true + + + open + + + max + + + + + + +Romeo receives: + + + + + + + diff --git a/spec/scansion/pubsub_config.scs b/spec/scansion/pubsub_config.scs index d979aca5..2cad9115 100644 --- a/spec/scansion/pubsub_config.scs +++ b/spec/scansion/pubsub_config.scs @@ -48,7 +48,7 @@ Romeo receives: - + 1 @@ -124,7 +124,7 @@ Romeo sends: - + 1 diff --git a/spec/scansion/pubsub_multi_items.scs b/spec/scansion/pubsub_multi_items.scs index 147aaa8d..d76bc46c 100644 --- a/spec/scansion/pubsub_multi_items.scs +++ b/spec/scansion/pubsub_multi_items.scs @@ -43,7 +43,7 @@ Alice receives: - + 20 diff --git a/spec/scansion/pubsub_preconditions.scs b/spec/scansion/pubsub_preconditions.scs index 25afaa8d..7e4e593b 100644 --- a/spec/scansion/pubsub_preconditions.scs +++ b/spec/scansion/pubsub_preconditions.scs @@ -47,7 +47,7 @@ Romeo receives: - + 1 @@ -123,7 +123,7 @@ Romeo sends: - + 1 -- cgit v1.2.3