aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_pubsub_spec.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.pubsub: Fix item store resize to "max"Kim Alvefur2022-01-061-0/+20
| | | | | Previously this would end up passing the "max" directly to the underlying storage.
* util.pubsub: Add support for limiting number of items to retrieveKim Alvefur2021-09-051-0/+57
| | | | | Hopefully this will eventually be upgraded to RSM, which is why the argument is called 'resultspec' and is a table.
* util.pubsub: Signal that 'persistent-items' is unsupported when disabledKim Alvefur2021-07-221-2/+2
| | | | | | XEP-0060 says that this the way to indicate that 'persistent-items' is unsupported, but doesn't explicitly say if it being disabled in the node configuration also counts as unsupported.
* util.pubsub: Fix behavior of persist_items disabledKim Alvefur2021-07-221-0/+19
| | | | | | | | | | | | | When set to 'false' there is no need for a persistence interface at all, since items are not persisted after being broadcast. Had started wondering if maybe the behavior was wrong, after reading parts of XEP-0060 that pointed in that direction. Some discussion of this can be found in logs of xmpp:xsf@muc.xmpp.org?join from around 2021-07-20 Thanks to Ralph for confirming.
* util.pubsub: Ignore unused argument in tests [luacheck]Kim Alvefur2019-12-291-1/+1
|
* util.pubsub: Cover subscription filter in a partial testKim Alvefur2019-12-261-0/+26
| | | | | | | I'm not sure I understand spies well enough to test that the arguments and return values are as expected. Better than nothing at least.
* tests: Silence [luacheck] warningsKim Alvefur2019-12-231-0/+6
|
* util.pubsub, pubsub.lib and tests: Add text to precondition-not-met error ↵Matthew Wild2019-10-271-1/+1
| | | | (fixes #1455)
* util.pubsub: Validate node configuration on node creation (fixes #1328)Kim Alvefur2019-03-031-0/+41
|
* util.pubsub: Add support for requesting multiple specific items (needed for ↵Kim Alvefur2019-01-281-0/+31
| | | | #1305)
* util.pubsub: Restore subscription index from stored data (fixes #1281)Kim Alvefur2018-12-291-0/+30
|
* util.pubsub: Allow publishing with a config that should be used as defaults onlyMatthew Wild2018-10-181-0/+28
|
* util.pubsub tests: Ensure necessary tests run in the defined orderMatthew Wild2018-10-011-0/+8
|
* util.pubsub tests: Fix whitespaceKim Alvefur2018-08-181-2/+2
|
* util.pubsub tests: Add tests for get_items()Matthew Wild2018-08-181-0/+28
|
* Pubsub: Add tests for :get_last_item() and fix for non-persistent nodesMatthew Wild2018-08-181-0/+26
|
* util.pubsub: Silence warnings in tests [luacheck]Kim Alvefur2018-08-161-1/+1
| | | | Warnings introduced in c53663e13b51 according to bisect
* util.pubsub tests: Add TODOMatthew Wild2018-08-121-0/+10
|
* util.pubsub tests: Add tests to confirm new access model is enforced on ↵Matthew Wild2018-08-121-0/+24
| | | | config change
* util.pubsub tests: Add initial node config testsMatthew Wild2018-08-121-0/+18
|
* util.pubsub tests: Extend publishing tests to check for correct notification ↵Matthew Wild2018-08-121-1/+13
| | | | behaviour on subscribe/unsubscribe
* util.pubsub tests: Add tests for publish_model (publishers, open, subscribers)Matthew Wild2018-08-121-6/+64
|
* util.pubsub tests: Add some initial access model tests (open and whitelist)Matthew Wild2018-08-111-0/+52
|
* util.pubsub: Drop now redundant capabilities from testsKim Alvefur2018-08-081-6/+0
|
* util_pubsub_spec: Add test for #1082Kim Alvefur2018-07-101-0/+53
|
* spec/util_pubsub: Test whether someone can subscribe to a nodeKim Alvefur2018-05-201-1/+13
| | | | Test fails because of missing normalize_jid
* util.pubsub: Add simple test covering publishing and retrieving an itemKim Alvefur2018-03-211-0/+24
|
* util_pubsub_spec: Move util.pubsub import into a setup blockKim Alvefur2018-03-071-1/+5
|
* util_pubsub_spec: Beginnings of tests for util.pubsubKim Alvefur2018-03-031-0/+27