aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* mod_http_file_share: Let's write another XEP-0363 implementationKim Alvefur2021-01-262-0/+28
| | | | | | | | | | This variant is meant to improve upon mod_http_upload in some ways: * Handle files much of arbitrary size efficiently * Allow GET and PUT URLs to be different * Remember Content-Type sent by client * Avoid dependency on mod_http_files * Built-in way to delegate storage to another httpd
* util.interpolation: Add test for #1623Kim Alvefur2021-01-251-0/+5
|
* mod_mam: Workaround scansion test flakynessKim Alvefur2021-01-131-12/+2
| | | | The empty ID fields are sometimes accepted, sometimes not.
* storage tests: Add test for querying a set of IDsKim Alvefur2021-01-121-0/+24
|
* storage tests: Test querys with both before and after IDsKim Alvefur2021-01-121-0/+21
| | | | Needed for extended MAM, supported by SQL storage already.
* mod_mam: Implement extended MAM metadata queryKim Alvefur2020-11-301-0/+14
|
* mod_mam: Add support for page flippingKim Alvefur2020-11-301-0/+44
| | | | | This was easy. Needs tests tho, 100% chance of the logic being backwards.
* mod_mam: Advertise extended MAM 0.7.x behind a feature flagKim Alvefur2020-11-301-0/+78
| | | | | | | In order to ease testing until the extended feautres are all implemented. Also TODOs for all the sub-features.
* scansion: Allow specifying a logfile for prosody via environmentKim Alvefur2021-01-051-1/+1
| | | | This should allow Buildbot to pick up those logs along with scansions
* MUC: Reject probes from non-occupantsJC Brand2020-10-021-1/+64
| | | | Also test for self-probes
* MUC: Add support for presence probes (fixes #1535)JC Brand2020-04-191-0/+115
| | | | | | | | | | | The following patch allows Prosody to respond to `probe` presences and send out the probed occupant's current presence. This is based on line 17.3 in XEP-0045: A MUC service MAY handle presence probes sent to the room JID <room@service> or an occupant JID <room@service/nick> (e.g, these might be sent by an occupant's home server to determine if the room is still online or to synchronize presence information if the user or the user's server has gone offline temporarily or has started sharing presence again, as for instance when Stanza Interception and Filtering Technology (XEP-0273) is used).
* util.error: Add coerce and wrap methods to registry(?) objectsMatthew Wild2020-12-091-0/+70
|
* Merge 0.11->trunkKim Alvefur2020-11-111-0/+1
|\
| * util.stanza: Reject ASCII control characters (fixes #1606)Kim Alvefur2020-11-111-0/+1
| |
* | util_paths_spec: Trim trailing white spaceKim Alvefur2020-10-171-1/+1
| | | | | | | | And add spacing between describe() blocks
* | util.paths: Add some testsKim Alvefur2020-10-171-0/+39
| |
* | Merge 0.11->trunkMatthew Wild2020-10-161-0/+93
|\|
| * util.debug: Fix locals being reported under wrong stack frame in some cases ↵Matthew Wild2020-10-161-0/+93
| | | | | | | | (+tests!!)
* | Merge 0.11->trunkKim Alvefur2020-10-151-0/+41
|\|
| * util.strbitop: Add tests covering basicsKim Alvefur2020-10-151-0/+41
| | | | | | | | Also as docs
* | Merge 0.11->trunkMatthew Wild2020-10-151-4/+14
|\|
| * net.websocket.frames: Add test for empty frame with MASK and key setMatthew Wild2020-10-151-0/+10
| |
| * net.websocket.frames: Use C string XOR implementationKim Alvefur2020-10-141-1/+1
| |
| * net.websocket.frames: Add small test covering xor-maskingKim Alvefur2020-10-141-0/+13
| | | | | | | | This is basically a recording of current behavior, to detect changes.
* | Merge 0.11->trunkKim Alvefur2020-10-121-0/+1
|\|
| * util.dbuffer: Expose length as :len() method, like stringsKim Alvefur2020-10-121-0/+1
| | | | | | | | Ref #1598
| * MergeMatthew Wild2020-09-301-0/+130
| |\
| | * util.dbuffer: Simplify test caseKim Alvefur2020-08-241-0/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | An earlier theory involved the bug being related to collapsing multiple items, so it exercised that too. Also correct the comment, it referred to the space in "hello world" in an earlier version before the test string was changed to "foobar", which was what was tested in a REPL
* | | Merge 0.11->trunkMatthew Wild2020-09-301-1/+19
|\| |
| * | util.indexedbheap: Fix heap datastructure corruption in ↵Waqas Hussain2020-09-291-0/+33
| |/ | | | | | | :reschedule(smaller_value)
* | util.error: Drop registry initialization with namespace as keyKim Alvefur2020-09-281-11/+4
| | | | | | | | Enough complexity with compact vs normal and with/without namespace
* | util.error: Expand compact registries into normal form internallyKim Alvefur2020-09-281-0/+32
| | | | | | | | Also the exposed form on the table returned from init()
* | util.error: Add a "compact mode" for registriesKim Alvefur2020-09-281-0/+21
| | | | | | | | Inspired by the older registry in pubsub.lib.lua
* | util.error: Cover registry initialization in testKim Alvefur2020-09-281-0/+20
| |
* | util.error: Collect Application-Specific Conditions from stanza errorsKim Alvefur2020-09-261-1/+2
| |
* | util.error: Extract error originator from stanza errorsKim Alvefur2020-09-261-1/+2
| |
* | util.stanza: Extract Application-Specific Condition from errorsKim Alvefur2020-09-261-0/+13
| | | | | | | | API change
* | spec.stanza spec: Split up util.error related testsKim Alvefur2020-09-261-0/+8
| |
* | util.stanza: Support Application-Specific Conditions in util.errorKim Alvefur2020-09-261-1/+13
| |
* | util.stanza: Get 'by' from context insteadKim Alvefur2020-09-261-1/+1
| | | | | | | | | | | | | | Zash> <error by=?> should go where? extra.by? context? source? Zash> In Prosody this would usually be module.host or a bare user/room JID MattJ> Zash: context MattJ> context.by, basically the opposite of context.actor
* | util.stanza: Support inclusion of <gone> URI from util.error objectKim Alvefur2020-09-261-0/+5
| |
* | util.stanza: Support getting 'by' from util.error objectKim Alvefur2020-09-261-1/+2
| |
* | util.error: Add well-known field 'extra'Kim Alvefur2020-09-261-0/+8
| | | | | | | | | | A place for various extra fields and edge cases of the stanza error data model, e.g. the URI field of <gone>
* | util.dataforms: Add support for validating (integer) rangesKim Alvefur2019-11-211-0/+9
| |
* | util.interpolation: Add test for ~ when value is false (not just nil)Matthew Wild2020-09-091-3/+7
| |
* | util.interpolation: Add '~' as the opposite of '&' (render sub-block if falsy)Matthew Wild2020-09-091-1/+11
| | | | | | | | One more magic character consumed!
* | util.event: Add luacheck annotation to unused parameter in testsMatthew Wild2020-09-031-1/+1
| |
* | util.events: Add set_debug_hook() methodMatthew Wild2020-09-031-0/+38
| | | | | | | | | | | | Hook signature: ret = debug_hook(handler, event_name, event_data)
* | util.jid: Add test coverage for XEP-0106: JID Escaping functionsKim Alvefur2020-08-281-0/+50
| |
* | util.dbuffer: Simplify test caseKim Alvefur2020-08-241-3/+2
| | | | | | | | | | | | | | | | | | An earlier theory involved the bug being related to collapsing multiple items, so it exercised that too. Also correct the comment, it referred to the space in "hello world" in an earlier version before the test string was changed to "foobar", which was what was tested in a REPL