aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* util.ringbuffer: Add some additional asserts to testsMatthew Wild2020-06-241-4/+4
|
* util.ringbuffer: Ensure unsigned chars are always returned from :byte()Matthew Wild2020-06-241-0/+7
|
* util.ringbuffer: Add test for :discard()Matthew Wild2020-06-231-0/+11
|
* scansion tests: Enable mod_muc_mam during tests (expect breakage)Kim Alvefur2020-06-211-0/+4
|
* MUC: Remove XEP-0091 Legacy Delayed Delivery from testKim Alvefur2020-06-211-1/+0
| | | | | | | Long time Obsolete XEP. The element is apparently not included when mod_muc_mam is enabled, and deleting this seems like the sanity-preserving approach.
* storage tests: Add tests for archive queries before/after specific idsMatthew Wild2020-06-121-5/+47
| | | | | Also increased the size of the test data for easier debugging with more complex tests.
* util.promise: Add all_settled, which follows semantics of allSettled from ES2020Matthew Wild2020-06-081-0/+54
|
* util.human.io: Fix right-alignmentKim Alvefur2020-06-061-2/+4
|
* util.ringbuffer: Add :sub() and :byte() methods equivalent to the string methodsMatthew Wild2020-06-041-0/+58
|
* util.ringbuffer: Prevent creation of buffer with negative sizeKim Alvefur2020-06-041-0/+5
| | | | | Previously this would have been (unsigned)-1 which is a large positive integer.
* util.ringbuffer: Prevent creation of zero-size bufferKim Alvefur2020-05-291-0/+5
|
* util.ringbuffer: Add some initial testsKim Alvefur2020-05-291-0/+17
|
* util.human.units: A library for formatting numbers with SI unitsKim Alvefur2019-01-041-0/+15
|
* scansion: Add test for mod_server_contact_info / XEP-0157Kim Alvefur2020-05-272-1/+63
|
* mod_storage_internal: Fix keeping old timestamp in archive map APIKim Alvefur2020-05-151-3/+14
| | | | | This led to a missing 'when' field on changed items, which would cause a traceack.
* mod_storage_internal: Implement key-value APIKim Alvefur2020-05-111-0/+15
|
* spec/storage: Reset build context of test stanza make comparisons easierKim Alvefur2020-05-111-1/+2
| | | | | | | While building a stanza there's a .last_add field keeping track of where in the XML tree tags are being added. This field does not survive a roundtrip through preserialize / deserialize. :reset() removes this, which simplifes comparisons after such a roundtrip.
* spec/scansion/blocking: Don't send stanzas after disconnectingKim Alvefur2020-05-091-4/+4
| | | | | | | Probably casued by mod_scansion_record catching the unavailable presence generated by Prosody on disconnect. See #1549
* util.rsm: Test that Lua 5.3 floats are not encoded with decimal pointKim Alvefur2020-04-231-0/+7
| | | | | | | | The 'max' 'count' and 'index' fields are integers and should be encoded as such on the wire. Care needs to be taken because tostring(1.0) in Lua 5.3+ returns to "1.0" while in previous Lua versions it would return "1".
* util.rsm: Add testsKim Alvefur2020-04-231-0/+82
| | | | Based on examples from XEP-0059
* MUC tests: Add missing 'affiliation' attributeMatthew Wild2020-04-231-1/+1
|
* Merge with upstream trunkMatthew Wild2020-04-235-5/+130
|\
| * util.hashes: Fix output length of PBKDF2-HMAC-SHA256Kim Alvefur2020-04-221-0/+18
| | | | | | | | Somehow it got SHA1's 20 byte output instead of the proper 32 = 256/8
| * util.hashes: Use generic name of PBKDF2-HMAC-SHA1 function in testsKim Alvefur2020-04-221-5/+5
| |
| * mod_lastactivity: Add basic scansion test coverageKim Alvefur2020-04-202-0/+46
| | | | | | | | When run on Lua 5.3 produces an issue similar to #1536
| * mod_uptime: Add scansion test coverageKim Alvefur2020-04-201-0/+21
| | | | | | | | | | Once the Prosody is up, who cares when it comes down? That's not my department, says scanison.
| * scansion: Mock time libraries during testsKim Alvefur2020-04-201-0/+11
| | | | | | | | The passage of time does not need test coverage, just look in a mirror.
| * mod_version: Add scansion testKim Alvefur2020-04-202-0/+29
| | | | | | | | Why was this module enabled in the config for tests if it wasn't tested?
* | Merge 0.11->trunkMatthew Wild2020-04-231-1/+1
|\ \ | |/ |/|
| * MUC tests: Add missing affiliation attributeMatthew Wild2020-04-231-1/+1
| |
| * Backed out changeset 18f2c7bc5795 (was testing against wrong branch)Matthew Wild2020-04-231-6/+2
| |
| * MUC tests: Add <required/> to expected form fieldMatthew Wild2020-04-231-2/+6
| |
* | util.stanza: Add method returning stanza with added indentationKim Alvefur2020-04-121-0/+8
| | | | | | | | | | Adds indentation and line breaks to stanzas, to make stanzas easier to read for humans.
* | spec: Include a hacky moduleapi stub to allow test to proceedKim Alvefur2020-04-111-5/+17
| |
* | spec: Add test cases for util.http.contains_tokenEmmanuel Gil Peyrot2020-04-101-0/+19
| |
* | MUC: Add test for destroying a room by ad-hoc commandKim Alvefur2020-03-201-0/+67
| | | | | | | | | | Testing ad-hoc commands was not easily doable before 49312378ba1d relaxed the need for state and an extra roundtrip to execute commands
* | MUC: Support for broadcasting unavailable presence for affiliated offline usersMatthew Wild2020-03-121-0/+544
| | | | | | | | Activated when muc#roomconfig_presencebroadcast includes the "none" role.
* | storagemanager, mod_storage_sql: Rename methods to :get_all() and :delete_all()Matthew Wild2020-03-111-12/+12
| |
* | storagemanager: Add support for :find_key() and :delete_key() to map store shimMatthew Wild2020-03-111-7/+4
| |
* | storagemanager: Fix unused variable in tests [luacheck]Matthew Wild2020-03-111-1/+2
| |
* | mod_storage_sql: Add map_store:find_key() and map_store:delete_key() (+ tests)Matthew Wild2020-03-111-2/+72
| |
* | storagemanager: Add tests for map storesMatthew Wild2020-03-111-0/+38
| |
* | util.jwt: Remove unused return value from tests [luacheck]Kim Alvefur2020-02-241-1/+1
| |
* | util.jwt: Basic JSON Web Token library supporting HS256 tokensKim Alvefur2020-02-241-0/+20
| |
* | scansion tests: Remove daemonize option, not neededKim Alvefur2020-01-261-1/+0
| |
* | util.json: Test util.array integrationKim Alvefur2020-01-151-0/+10
| | | | | | | | | | This is to expose how [] == json.null due to a change in Lua 5.3 with how the equality metamethod is chosen.
* | util.array: Add a test case for a behavior change in Lua 5.3Kim Alvefur2020-01-141-0/+1
| | | | | | | | | | In Lua 5.1 and 5.2 the __eq metamethod is not invoked if the other argument is of a different metatable, but in Lua 5.3 it is.
* | net.websocket.frames: Add ping and pong test casesKim Alvefur2020-01-021-0/+24
| |
* | net.websocket.frames: Add test case for masked dataKim Alvefur2020-01-021-0/+13
| | | | | | | | ASCI is pretty neat in how lower case alphabet XOR space is upper case
* | util.pubsub: Ignore unused argument in tests [luacheck]Kim Alvefur2019-12-291-1/+1
| |