Commit graph

19 commits

Author SHA1 Message Date
Matthew Wild
f2dbf36642 storage tests: Add tests for archive queries before/after specific ids
Also increased the size of the test data for easier debugging with more
complex tests.
2020-06-12 16:59:06 +01:00
Kim Alvefur
d916ce38f6 mod_storage_internal: Fix keeping old timestamp in archive map API
This led to a missing 'when' field on changed items, which would cause a
traceack.
2020-05-15 20:55:22 +02:00
Kim Alvefur
82714e54a8 mod_storage_internal: Implement key-value API 2020-05-11 21:56:19 +02:00
Kim Alvefur
0cf5e52384 spec/storage: Reset build context of test stanza make comparisons easier
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.
2020-05-11 21:41:02 +02:00
Matthew Wild
cb6148d155 storagemanager, mod_storage_sql: Rename methods to :get_all() and :delete_all() 2020-03-11 16:32:41 +00:00
Matthew Wild
81f5c3e319 storagemanager: Add support for :find_key() and :delete_key() to map store shim 2020-03-11 16:29:57 +00:00
Matthew Wild
e35a4db498 storagemanager: Fix unused variable in tests [luacheck] 2020-03-11 16:07:36 +00:00
Matthew Wild
33b9b2b91e mod_storage_sql: Add map_store:find_key() and map_store:delete_key() (+ tests) 2020-03-11 15:57:53 +00:00
Matthew Wild
1d5af5f0a3 storagemanager: Add tests for map stores 2020-03-11 14:36:56 +00:00
Kim Alvefur
e0bcb4d7d4 tests: Silence [luacheck] warnings 2019-12-23 21:33:10 +01:00
Kim Alvefur
2b289f34f9 various: Don't rely on _G.unpack existing 2018-12-08 17:09:55 +01:00
Kim Alvefur
687384a94a storagemanager: Fix tests on Lua 5.3
_G.unpack moved to table.unpack
2018-10-21 21:03:54 +02:00
Kim Alvefur
93aa49462f storagemanager tests: Also cover memory driver 2018-10-12 03:43:56 +02:00
Matthew Wild
1c5c6c92c1 storagemanager tests: Remove debug print() 2018-10-11 14:18:38 +01:00
Matthew Wild
d422c3a4c0 storagemanager tests: Add many more archive tests, including (failing) cases for #1200 and #1073 2018-10-11 14:10:55 +01:00
Matthew Wild
2a92bf5c27 storagemanager tests: Add additional archive query tests 2018-10-11 13:29:14 +01:00
Matthew Wild
6b841f66fd storagemanager tests: Add some additional checks 2018-10-10 22:03:11 +01:00
Matthew Wild
038921d7e0 storagemanager tests: Add initial basic tests for archive stores 2018-10-10 22:00:37 +01:00
Matthew Wild
a9963c54c9 Fix storage tests so they run, but not by default 2018-10-01 20:21:26 +01:00
Renamed from spec/core_storagemanager.lua (Browse further)