aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion/mam_prefs_prep.scs
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-23 15:22:49 +0100
committerKim Alvefur <zash@zash.se>2018-12-23 15:22:49 +0100
commit67a3bf56f3d74c27bc49918e5b4ed5a891ed5b92 (patch)
treebfeb9d91bbcf76ca0ba45eedc2071647e4bac9e4 /spec/scansion/mam_prefs_prep.scs
parent6282f9029c3ea12eca3630ce40658ebe0c3c9b46 (diff)
downloadprosody-67a3bf56f3d74c27bc49918e5b4ed5a891ed5b92.tar.gz
prosody-67a3bf56f3d74c27bc49918e5b4ed5a891ed5b92.zip
mod_mam: Add test for JID normalization in prefs (see #1275)
Diffstat (limited to 'spec/scansion/mam_prefs_prep.scs')
-rw-r--r--spec/scansion/mam_prefs_prep.scs36
1 files changed, 36 insertions, 0 deletions
diff --git a/spec/scansion/mam_prefs_prep.scs b/spec/scansion/mam_prefs_prep.scs
new file mode 100644
index 00000000..9589ec65
--- /dev/null
+++ b/spec/scansion/mam_prefs_prep.scs
@@ -0,0 +1,36 @@
+# mod_mam shold apply JIDprep in prefs
+
+[Client] Romeo
+ jid: romeo@localhost
+ password: password
+
+-----
+
+Romeo connects
+
+Romeo sends:
+ <iq id="lx2" type="set">
+ <prefs xmlns="urn:xmpp:mam:2" default="roster">
+ <always>
+ <jid>JULIET@MONTAGUE.LIT</jid>
+ </always>
+ <never>
+ <jid>MONTAGUE@MONTAGUE.LIT</jid>
+ </never>
+ </prefs>
+ </iq>
+
+Romeo receives:
+ <iq id="lx2" type="result">
+ <prefs xmlns="urn:xmpp:mam:2" default="roster">
+ <always>
+ <jid>juliet@montague.lit</jid>
+ </always>
+ <never>
+ <jid>montague@montague.lit</jid>
+ </never>
+ </prefs>
+ </iq>
+
+Romeo disconnects
+