Commit graph

9375 commits

Author SHA1 Message Date
Matthew Wild
823ff40259 mod_bosh: Add tests (run with 'busted -r bosh') 2018-09-23 17:12:21 +01:00
Kim Alvefur
13d98c7080 mod_scansion_record: Record disconnection 2018-09-22 19:30:31 +02:00
Kim Alvefur
cecaab43e1 mod_scansion_record: Lower log message to 'info' level 2018-09-22 19:29:27 +02:00
Kim Alvefur
4fb620b711 mod_scansion_record: Use already composed identity string in log message 2018-09-22 19:28:52 +02:00
Kim Alvefur
7edee4c411 mod_scansion_record: Record the full identity including device name 2018-09-22 19:04:12 +02:00
Kim Alvefur
491c573ed2 mod_scansion_record: Merge header and log into one file at shutdown 2018-09-22 18:43:09 +02:00
Kim Alvefur
74ae56ade6 mod_scansion_record: Record connected clients as scansion Objects declarations 2018-09-22 18:32:22 +02:00
Kim Alvefur
61d21c9a65 mod_scansion_record: Remove unused JID mapping table [luacheck]
I have no idea what Matthew meant to use this for. Easy enough to put back.
2018-09-22 17:24:28 +02:00
Kim Alvefur
c210737024 mod_scansion_record: Close files in the cleanup stage of shutdown (fixes use after close) 2018-09-22 15:14:25 +02:00
Kim Alvefur
96e6f26aa7 mod_scansion_record: Generate a header with hostname and timestamp 2018-09-22 14:38:40 +02:00
Kim Alvefur
39c33737f0 mod_scansion_record: Open a related file for header entries
Since It's tricky to go back and insert data at the beginning of a file,
but `cat blah.sch blah.scs` ought to be fine for now.
2018-09-22 14:36:34 +02:00
Kim Alvefur
dd75571eab mod_scansion_record: Log name of scanison log on shutdown 2018-09-22 14:30:10 +02:00
Kim Alvefur
f0541eb886 mod_scansion_record: Fix missed rename of file handle 2018-09-22 14:29:39 +02:00
Kim Alvefur
26bcf9c7a7 mod_scansion_record: Split up construction of filename for reuse of parts later 2018-09-22 14:28:39 +02:00
Kim Alvefur
da949c0ec4 mod_scansion_record: Hook correct shutdown event 2018-09-22 14:27:24 +02:00
Kim Alvefur
7ee11a47ef mod_scansion_record: Avoid recording the resource binding stanza 2018-09-22 14:19:46 +02:00
Kim Alvefur
f6908980d0 mod_scansion_record: Only record stanzas in the default namespace 2018-09-22 14:19:22 +02:00
Kim Alvefur
ccd756b540 mod_scansion_record: Rename main file handle 2018-09-22 14:18:39 +02:00
Kim Alvefur
42045a538d mod_scansion_record: Record into "scansion" instead of per VirtualHost 2018-09-22 14:10:16 +02:00
Kim Alvefur
5f402060cd mod_scansion_record: Import util.filters 2018-09-22 14:08:24 +02:00
Kim Alvefur
cb0e1198a3 mod_scansion_record: Correctly retrieve resource 2018-09-22 14:07:49 +02:00
Kim Alvefur
b70932d196 mod_scansion_record: Tweak filename 2018-09-22 14:05:59 +02:00
Kim Alvefur
d43d603b11 mod_scansion_record: Record session connecting 2018-09-22 14:00:11 +02:00
Kim Alvefur
10747c00ae mod_scansion_record: Complete stanza recording functions 2018-09-22 13:58:23 +02:00
Kim Alvefur
7b3bab4806 mod_scansion_record: Remove extra " 2018-09-22 13:55:14 +02:00
Kim Alvefur
920e0d14ef mod_scansion_record: Add missing ) 2018-09-22 13:54:54 +02:00
Kim Alvefur
197f437f88 mod_scansion_record: Finish function for writing data 2018-09-22 13:53:54 +02:00
Kim Alvefur
70f86c0b66 mod_scansion_record: and close it on shutdown 2018-09-22 13:52:57 +02:00
Kim Alvefur
42adc5de68 mod_scansion_record: Open log file 2018-09-22 13:52:55 +02:00
Kim Alvefur
32684c196d mod_scansion_record: Have datamanager generate a filename for output 2018-09-22 13:51:28 +02:00
Kim Alvefur
f0d8e7a601 mod_scansion_record: Unfinished code dump from Matthew 2018-09-22 13:50:00 +02:00
Kim Alvefur
42cc508a5d util.serialization: Use deserialize instead of envload directly 2018-09-23 17:02:54 +02:00
Kim Alvefur
31cf61bea4 util.serialization: Add brief initial tests 2018-09-23 16:30:35 +02:00
Kim Alvefur
ed7c24bd0d util.serialization: Stricter type check 2018-09-23 16:11:13 +02:00
Kim Alvefur
94b922ba3f mod_storage_memory: Fix saving of remaining items during deletion
All data is compiled into functions that return new copies in order to
prevent mutation of stored data.

This has downsides.

Also an ugly hack.
2018-09-22 16:03:50 +02:00
Kim Alvefur
fdbf28899f mod_pep: Add test publishing a nickname 2018-09-22 15:34:26 +02:00
Kim Alvefur
a31b6728d4 Revert 2dc7490899ae::5d6b252bc36f: Unfinished and broken 2018-09-21 22:14:40 +02:00
Kim Alvefur
83cd0e7ba7 net.http.server: Fix default host logic
This was used to construct the event name previously
2018-09-21 21:33:41 +02:00
Kim Alvefur
7c060d6be5 mod_http: Hook the host-less event if hooked from a global module 2018-09-21 21:19:44 +02:00
Kim Alvefur
c6540b14f9 net.http.server: Move handling of hosts to mod_http
Now an event like `GET /path` is fired at first, and mod\_http
dispatches the old `GET host/path` events.
2018-09-21 21:19:41 +02:00
Kim Alvefur
2fcacff9a7 mod_server_contact_info: Update copyright header 2018-09-21 15:34:45 +02:00
Kim Alvefur
b8e5c6c7a0 mod_server_contact_info: Simplify
This relies on the new name mapping in util.dataforms
2018-09-16 22:40:35 +02:00
Matthew Wild
818a977d38 mod_admin_telnet: Split out sort function for clarity 2018-09-21 14:37:47 +01:00
Matthew Wild
f82932edec mod_adhoc: Use util.iterators.sorted_pairs() to sort commands 2018-09-21 14:37:18 +01:00
Matthew Wild
391fe2828f mod_admin_telnet: Make use of util.iterators.sorted_pairs() 2018-09-21 14:36:29 +01:00
Matthew Wild
809db57f68 util.json: Use util.iterators.sorted_pairs() in ordered mode 2018-09-21 14:35:35 +01:00
Matthew Wild
f38c79e95a util.iterators tests: Check value matches expected [luacheck] 2018-09-21 14:30:20 +01:00
Matthew Wild
c65893de6e util.iterators: Add sorted_pairs() method 2018-09-21 14:27:46 +01:00
Matthew Wild
0207b2d785 util.json tests: Add [luacheck] annotation to mark intentionally-empty if branch 2018-09-17 15:28:53 +01:00
Matthew Wild
5c12f56a9e .luacheckrc: Remove util_cache_spec.lua from the ignore list 2018-09-17 15:27:01 +01:00