aboutsummaryrefslogtreecommitdiffstats
path: root/spec/core_storagemanager_spec.lua
Commit message (Collapse)AuthorAgeFilesLines
* Merge 0.12->trunkKim Alvefur2022-07-291-0/+17
|\
| * storage tests: Add test for the archive:summary APIKim Alvefur2022-07-221-0/+17
| | | | | | | | | | Passes with memory, internal, sqlite Fails with postgres as in #1766
* | compat: Remove handling of Lua 5.1 location of 'unpack' functionKim Alvefur2022-07-111-1/+1
|/
* core.storagemanager: Respect archive ids issued by storage drivers in testsKim Alvefur2021-08-151-5/+6
| | | | | | Storage drivers may issue their own IDs tho none of the included ones do this atm, but the 3rd party module mod_storage_xmlarchive has its special format.
* core.storagemanager: s/Multilpe/Multiple/ [codespell]Kim Alvefur2021-03-051-1/+1
|
* mod_storage_sql: Implement map-like API for archivesKim Alvefur2021-02-011-2/+2
| | | | | | | | Used by mod_http_file_share, muc moderation, etc. Tests tweaked because they failed on stanza internals that happen becasue of re-serialization. Namespaces differ since inheritance is implicit when building but explicit after parsing.
* storage: Test reverse-ordered queriesKim Alvefur2021-02-011-0/+22
|
* 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.
* 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.
* 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.
* 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
|
* tests: Silence [luacheck] warningsKim Alvefur2019-12-231-0/+6
|
* various: Don't rely on _G.unpack existingKim Alvefur2018-12-081-1/+1
|
* storagemanager: Fix tests on Lua 5.3Kim Alvefur2018-10-211-0/+1
| | | | _G.unpack moved to table.unpack
* storagemanager tests: Also cover memory driverKim Alvefur2018-10-121-0/+3
|
* storagemanager tests: Remove debug print()Matthew Wild2018-10-111-1/+0
|
* storagemanager tests: Add many more archive tests, including (failing) cases ↵Matthew Wild2018-10-111-0/+105
| | | | for #1200 and #1073
* storagemanager tests: Add additional archive query testsMatthew Wild2018-10-111-18/+103
|
* storagemanager tests: Add some additional checksMatthew Wild2018-10-101-0/+12
|
* storagemanager tests: Add initial basic tests for archive storesMatthew Wild2018-10-101-18/+59
|
* Fix storage tests so they run, but not by defaultMatthew Wild2018-10-011-0/+86