Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | scansion: Add test for mod_server_contact_info / XEP-0157 | Kim Alvefur | 2020-05-27 | 2 | -1/+63 | |
| | | ||||||
* | | mod_storage_internal: Fix keeping old timestamp in archive map API | Kim Alvefur | 2020-05-15 | 1 | -3/+14 | |
| | | | | | | | | | | This led to a missing 'when' field on changed items, which would cause a traceack. | |||||
* | | mod_storage_internal: Implement key-value API | Kim Alvefur | 2020-05-11 | 1 | -0/+15 | |
| | | ||||||
* | | spec/storage: Reset build context of test stanza make comparisons easier | Kim Alvefur | 2020-05-11 | 1 | -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 disconnecting | Kim Alvefur | 2020-05-09 | 1 | -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 point | Kim Alvefur | 2020-04-23 | 1 | -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 tests | Kim Alvefur | 2020-04-23 | 1 | -0/+82 | |
| | | | | | | | | Based on examples from XEP-0059 | |||||
* | | MUC tests: Add missing 'affiliation' attribute | Matthew Wild | 2020-04-23 | 1 | -1/+1 | |
| | | ||||||
* | | Merge with upstream trunk | Matthew Wild | 2020-04-23 | 5 | -5/+130 | |
|\ \ | ||||||
| * | | util.hashes: Fix output length of PBKDF2-HMAC-SHA256 | Kim Alvefur | 2020-04-22 | 1 | -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 tests | Kim Alvefur | 2020-04-22 | 1 | -5/+5 | |
| | | | ||||||
| * | | mod_lastactivity: Add basic scansion test coverage | Kim Alvefur | 2020-04-20 | 2 | -0/+46 | |
| | | | | | | | | | | | | When run on Lua 5.3 produces an issue similar to #1536 | |||||
| * | | mod_uptime: Add scansion test coverage | Kim Alvefur | 2020-04-20 | 1 | -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 tests | Kim Alvefur | 2020-04-20 | 1 | -0/+11 | |
| | | | | | | | | | | | | The passage of time does not need test coverage, just look in a mirror. | |||||
| * | | mod_version: Add scansion test | Kim Alvefur | 2020-04-20 | 2 | -0/+29 | |
| | | | | | | | | | | | | Why was this module enabled in the config for tests if it wasn't tested? | |||||
* | | | Merge 0.11->trunk | Matthew Wild | 2020-04-23 | 1 | -1/+1 | |
|\ \ \ | |/ / |/| / | |/ | ||||||
| * | MUC tests: Add missing affiliation attribute | Matthew Wild | 2020-04-23 | 1 | -1/+1 | |
| | | ||||||
| * | Backed out changeset 18f2c7bc5795 (was testing against wrong branch) | Matthew Wild | 2020-04-23 | 1 | -6/+2 | |
| | | ||||||
| * | MUC tests: Add <required/> to expected form field | Matthew Wild | 2020-04-23 | 1 | -2/+6 | |
| | | ||||||
* | | util.stanza: Add method returning stanza with added indentation | Kim Alvefur | 2020-04-12 | 1 | -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 proceed | Kim Alvefur | 2020-04-11 | 1 | -5/+17 | |
| | | ||||||
* | | spec: Add test cases for util.http.contains_token | Emmanuel Gil Peyrot | 2020-04-10 | 1 | -0/+19 | |
| | | ||||||
* | | MUC: Add test for destroying a room by ad-hoc command | Kim Alvefur | 2020-03-20 | 1 | -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 users | Matthew Wild | 2020-03-12 | 1 | -0/+544 | |
| | | | | | | | | Activated when muc#roomconfig_presencebroadcast includes the "none" role. | |||||
* | | storagemanager, mod_storage_sql: Rename methods to :get_all() and :delete_all() | Matthew Wild | 2020-03-11 | 1 | -12/+12 | |
| | | ||||||
* | | storagemanager: Add support for :find_key() and :delete_key() to map store shim | Matthew Wild | 2020-03-11 | 1 | -7/+4 | |
| | | ||||||
* | | storagemanager: Fix unused variable in tests [luacheck] | Matthew Wild | 2020-03-11 | 1 | -1/+2 | |
| | | ||||||
* | | mod_storage_sql: Add map_store:find_key() and map_store:delete_key() (+ tests) | Matthew Wild | 2020-03-11 | 1 | -2/+72 | |
| | | ||||||
* | | storagemanager: Add tests for map stores | Matthew Wild | 2020-03-11 | 1 | -0/+38 | |
| | | ||||||
* | | util.jwt: Remove unused return value from tests [luacheck] | Kim Alvefur | 2020-02-24 | 1 | -1/+1 | |
| | | ||||||
* | | util.jwt: Basic JSON Web Token library supporting HS256 tokens | Kim Alvefur | 2020-02-24 | 1 | -0/+20 | |
| | | ||||||
* | | scansion tests: Remove daemonize option, not needed | Kim Alvefur | 2020-01-26 | 1 | -1/+0 | |
| | | ||||||
* | | util.json: Test util.array integration | Kim Alvefur | 2020-01-15 | 1 | -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.3 | Kim Alvefur | 2020-01-14 | 1 | -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 cases | Kim Alvefur | 2020-01-02 | 1 | -0/+24 | |
| | | ||||||
* | | net.websocket.frames: Add test case for masked data | Kim Alvefur | 2020-01-02 | 1 | -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 Alvefur | 2019-12-29 | 1 | -1/+1 | |
| | | ||||||
* | | util.pubsub: Cover subscription filter in a partial test | Kim Alvefur | 2019-12-26 | 1 | -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] warnings | Kim Alvefur | 2019-12-23 | 3 | -0/+14 | |
| | | ||||||
* | | scansion: Trim trailing whitespace in tests | Kim Alvefur | 2019-12-19 | 6 | -9/+9 | |
| | | ||||||
* | | rostermanager, mod_presence: Support for subscription preapproval (fixes #686) | Matthew Wild | 2019-12-19 | 1 | -0/+74 | |
| | | ||||||
* | | util.dataforms: Improve descriptions in tests | Kim Alvefur | 2019-12-16 | 1 | -5/+5 | |
| | | ||||||
* | | util.stanza: Accept util.error object to error_reply | Kim Alvefur | 2019-12-14 | 1 | -0/+17 | |
| | | | | | | | | | | | | | | | | If we're moving towards util.error as the standard error container then this makes sense. This may allow for future extensibility without needing a lot of optional arguments. | |||||
* | | util.sasl: Add stub tests | Kim Alvefur | 2019-12-14 | 1 | -0/+43 | |
| | | | | | | | | Random uncommitted file I found when cleaning out my work dir | |||||
* | | net.http.parser tests: Expand tests to include validation of results | Matthew Wild | 2019-12-09 | 1 | -22/+86 | |
| | | ||||||
* | | configmanager tests: Split long line | Matthew Wild | 2019-12-09 | 1 | -1/+3 | |
| | | ||||||
* | | tests: Disable s2s in scansion tests | Kim Alvefur | 2019-11-30 | 1 | -1/+4 | |
| | | | | | | | | These are all c2s tests, no need to have s2s enabled. | |||||
* | | MUC: Indicate origin of registration related errors | Kim Alvefur | 2019-11-25 | 1 | -2/+2 | |
| | | ||||||
* | | MUC: Indicate origin of password related errors | Kim Alvefur | 2019-11-25 | 1 | -1/+1 | |
| | | ||||||
* | | util.stanza: Support the 'by' attribute on errors | Kim Alvefur | 2019-11-25 | 1 | -1/+2 | |
| | | | | | | | | | | This is to be used when the entity generating the error is not the same as the one the stanza was directed to, e.g. an intermediate server. |