Debian Codegraph @

testing/integration/xmpp/README.md

raw
1 # XMPP Integration Tests
2
3 These tests exercise the XMPP service through its public API with a mocked
4 session. They do not open a network connection to an XMPP server.
5
6 ## Coverage
7
8 ### Configuration
9
10 - URL parsing for `xmpp://` and `xmpps://`
11 - Default ports (5222 / 5223)
12 - Full auth JID vs dial host
13 - `disabletls`, `skiptlsverify`, `nick`, `roompassword`
14 - Invalid URLs (`disabletls` on xmpps, missing targets/password, invalid JIDs)
15 - `GetURL` round-trip
16
17 ### Sending
18
19 - 1:1 chat
20 - MUC with default nick
21 - Combined chat and MUC with title prepend
22 - Multiple chat recipients
23 - Params override for nick and title
24
25 ### Errors
26
27 - Dial failures
28 - Session factory failures
29 - Chat and MUC send failures
30 - Unknown params
31 - Params that clear all targets
32
33 ### Edge cases
34
35 - Empty body
36 - Title-only
37 - Unicode
38 - Long bodies
39 - Newlines, tabs, and JSON
40
41 ## Run
42
43 ```bash
44 go test ./testing/integration/xmpp/ -v
45 ```