Software /
code /
prosody
Comparison
spec/scansion/mam_prefs_prep.scs @ 9729:4f6413ec08a8 0.11
mod_mam: Add test for JID normalization in prefs (see #1275)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 23 Dec 2018 15:22:49 +0100 |
child | 11727:f3aee8a825cc |
comparison
equal
deleted
inserted
replaced
9728:d41ce505cdf9 | 9729:4f6413ec08a8 |
---|---|
1 # mod_mam shold apply JIDprep in prefs | |
2 | |
3 [Client] Romeo | |
4 jid: romeo@localhost | |
5 password: password | |
6 | |
7 ----- | |
8 | |
9 Romeo connects | |
10 | |
11 Romeo sends: | |
12 <iq id="lx2" type="set"> | |
13 <prefs xmlns="urn:xmpp:mam:2" default="roster"> | |
14 <always> | |
15 <jid>JULIET@MONTAGUE.LIT</jid> | |
16 </always> | |
17 <never> | |
18 <jid>MONTAGUE@MONTAGUE.LIT</jid> | |
19 </never> | |
20 </prefs> | |
21 </iq> | |
22 | |
23 Romeo receives: | |
24 <iq id="lx2" type="result"> | |
25 <prefs xmlns="urn:xmpp:mam:2" default="roster"> | |
26 <always> | |
27 <jid>juliet@montague.lit</jid> | |
28 </always> | |
29 <never> | |
30 <jid>montague@montague.lit</jid> | |
31 </never> | |
32 </prefs> | |
33 </iq> | |
34 | |
35 Romeo disconnects | |
36 |