Commit graph

605 commits

Author SHA1 Message Date
Kim Alvefur
72cfc3161c spec/util.encodings: Test an UTF-8 sequence 2017-11-03 15:44:39 +01:00
Kim Alvefur
546aedf27a spec/util.encodings: Fix syntax 2017-11-03 15:43:36 +01:00
Kim Alvefur
f6775e1e2c spec/util.encodings: Remove workaround for a thing 2017-11-03 15:40:52 +01:00
Kim Alvefur
db152d626b spec/util.encodings: Add some base64 tests (Thanks Link Mavue) 2017-11-03 01:13:35 +01:00
Waqas Hussain
8cb654ff63 util_throttle_spec: Slight stylistic update for function test group titles 2017-09-17 13:33:38 -04:00
Waqas Hussain
f093a68045 util.throttle: Fix initial time setting (double accounting the first time) and fractional balance updates (0.1*10 was not the same as 1*1) 2017-09-17 13:29:14 -04:00
Kim Alvefur
880a7c3e32 util.random: Remove obsolete noop seed function 2017-09-16 17:22:51 +02:00
Matthew Wild
1a74016edf spec/util_queue: Add iterator and peek tests for 100% line coverage 2017-09-16 10:16:08 +01:00
Waqas Hussain
67293fc09f Port tests to the busted test runner 2017-09-15 17:07:57 -04:00
Matthew Wild
9a1b7e5627 util.table: tests: Tests for table.move() 2022-03-18 15:24:12 +00:00
Matthew Wild
d26811f5e5 net.resolvers.service: Honour record 'weight' when picking SRV targets
#NotHappyEyeballs
2022-03-17 18:20:26 +00:00
Kim Alvefur
d1c2e34e61 util.poll: Expand stub tests
Because tests good.
2022-03-17 13:15:50 +01:00
Kim Alvefur
ae48864f9d Merge 0.11->trunk 2019-06-20 22:26:46 +02:00
Kim Alvefur
48501136ee Merge 0.11->trunk 2019-06-20 22:12:49 +02:00
Kim Alvefur
3c50754860 Merge 0.11->trunk 2019-06-20 21:40:27 +02:00
Kim Alvefur
2661a6f5a3 util.format: Handle integer formats the same way on Lua versions without integer support 2019-05-30 13:54:11 +02:00
Kim Alvefur
236abc4afe util.format: Handle formats expecting an integer in Lua 5.3+ (fixes #1371) 2019-05-30 13:41:05 +02:00
Matthew Wild
46822c54b1 util.hashring: Add tests 2019-05-13 10:36:03 +01:00
Kim Alvefur
f65c017ee1 Fix various spelling mistakes [codespell] 2019-05-03 20:54:24 +02:00
Kim Alvefur
90d4d6bda8 Backed out changeset 61bc5c52c941
luaL_buffinitsize is only available in Lua 5.2+
2019-04-21 00:59:36 +02:00
Kim Alvefur
165ee3a5ef util.hashes: Allow specifying output key length
This is not needed for SCRAM but PBKDF2 takes this argument.
2019-04-20 15:11:04 +02:00
Kim Alvefur
43bb3d5756 util.hashes: Add test vectors from RFC 6070 for PBKDF2 (aka SCRAM Hi())
Number 4 is disabled by default beacuse of how long time it takes
2019-04-19 14:12:28 +02:00
Kim Alvefur
53f4351d9a util.hmac: Ignore long hex lines in tests 2019-04-19 13:17:49 +02:00
Kim Alvefur
d008744344 util.hmac: Generate test cases from RFC 4231 2019-04-11 00:41:48 +02:00
Matthew Wild
e1b559853f util.stanza: Fix :top_tag() handling of namespaced attributes 2019-03-25 14:37:43 +00:00
Matthew Wild
a274eacbbc util.queue: Add 'consume()' convenience iterator 2019-03-23 08:47:55 +00:00
Kim Alvefur
2326bed3c7 Merge 0.11->trunk 2019-03-04 13:46:09 +01:00
Kim Alvefur
0045fa7647 Merge 0.11->trunk 2019-02-27 10:29:10 +01:00
Kim Alvefur
428da9fe8a Merge 0.11->trunk 2019-01-28 01:49:04 +01:00
Kim Alvefur
3e30870220 util.http: Fix decoding of uppercase URL encoded chars
Broken in 1af5106a2c34
2019-01-16 13:53:04 +01:00
Kim Alvefur
e23c17c3a0 Merge 0.11->trunk 2018-12-29 21:49:32 +01:00
Kim Alvefur
15d5dffa63 spec: Stub tests for util.interpolation 2018-03-10 19:58:41 +01:00
Kim Alvefur
20429527b1 util.stanza: Require a type attribute for iq stanzas 2018-12-28 20:49:01 +01:00
Kim Alvefur
72f5bf7f3a Merge 0.11->trunk 2018-12-23 15:34:19 +01:00
Kim Alvefur
9ff2b47bcc util.table: Add test for create() 2018-12-23 15:01:37 +01:00
Kim Alvefur
b90dce4c20 util.table: Add test for pack() 2018-12-23 14:52:52 +01:00
Kim Alvefur
66b2c62b89 Merge 0.11->trunk 2018-12-20 14:49:50 +01:00
Matthew Wild
38f2458cd7 Merge 0.11->trunk 2018-12-19 16:54:25 +00:00
Matthew Wild
4e5c60fa37 Merge 0.11 -> trunk 2018-12-19 13:25:59 +00:00
Kim Alvefur
24a020bbaa MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667) 2018-12-16 22:59:14 +01:00
Kim Alvefur
826c511cac MUC: Add descriptive comments to #667 test 2018-12-16 22:53:56 +01:00
Kim Alvefur
09d88cefa5 MUC: Add another message to #667 test 2018-12-16 22:49:58 +01:00
Kim Alvefur
a270e6d5c8 spec/scansion/prosody.cfg.lua: Add remaining modules listened in prosody.cfg.lua.dist for easier comparisons 2018-12-11 23:26:16 +01:00
Kim Alvefur
35c3393bca spec/scansion/prosody.cfg.lua: Replace mod_vcard with mod_vcard4 and mod_vcard_legacy as in default config 2018-12-11 23:25:16 +01:00
Kim Alvefur
b1c3c4bc38 spec/scansion/prosody.cfg.lua: Update a comment from prosody.cfg.lua.dist for easier comparisons 2018-12-11 23:24:14 +01:00
Kim Alvefur
177420df39 util.format: Serialize values for the %q format
Improves eg debug logs
2018-10-12 01:29:34 +02:00
Kim Alvefur
2b289f34f9 various: Don't rely on _G.unpack existing 2018-12-08 17:09:55 +01:00
Kim Alvefur
c28be4a630 MUC: Add test case for #667 2018-12-06 17:54:50 +01:00
Kim Alvefur
a9e9c49027 Merge 0.11->trunk 2018-12-02 02:38:36 +01:00
Kim Alvefur
c295aedbfe spec/keep_full_sub_req: Make the second connect a differenct device (workaround for scansion issue)
scansion threw an error when a client connected again
2018-12-01 18:12:01 +01:00