aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion/vcard_temp.scs
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-20 17:12:35 +0200
committerKim Alvefur <zash@zash.se>2018-10-20 17:12:35 +0200
commitbc24ae76299cf2985779d185c082a2b6091ed172 (patch)
tree02ff930e4fbd38df2b16a7377044602445ef3caf /spec/scansion/vcard_temp.scs
parentf057768a9b47caad2fdd9ce779da59db1740c883 (diff)
downloadprosody-bc24ae76299cf2985779d185c082a2b6091ed172.tar.gz
prosody-bc24ae76299cf2985779d185c082a2b6091ed172.zip
tests: Add simple test case for XEP-0054
Diffstat (limited to 'spec/scansion/vcard_temp.scs')
-rw-r--r--spec/scansion/vcard_temp.scs86
1 files changed, 86 insertions, 0 deletions
diff --git a/spec/scansion/vcard_temp.scs b/spec/scansion/vcard_temp.scs
new file mode 100644
index 00000000..6bc2d7df
--- /dev/null
+++ b/spec/scansion/vcard_temp.scs
@@ -0,0 +1,86 @@
+# mod_scansion_record on host 'localhost' recording started 2018-10-20T15:00:12Z
+
+[Client] Romeo
+ jid: romeo@localhost
+ password: password
+
+[Client] Juliet
+ jid: juliet@localhost
+ password: password
+
+-----
+
+Romeo connects
+
+Romeo sends:
+ <iq id="lx2" type="get">
+ <vCard xmlns="vcard-temp"/>
+ </iq>
+
+Romeo receives:
+ <iq type="result" id="lx2" to="${Romeo's full JID}">
+ <vCard xmlns="vcard-temp"/>
+ </iq>
+
+Romeo sends:
+ <iq id="lx3" type="set">
+ <vCard xmlns="vcard-temp">
+ <FN>Romeo Montague</FN>
+ <N>
+ <FAMILY>Montague</FAMILY>
+ <GIVEN>Romeo</GIVEN>
+ <MIDDLE/>
+ <PREFIX/>
+ <SUFFIX/>
+ </N>
+ </vCard>
+ </iq>
+
+Romeo receives:
+ <iq type="result" id="lx3" to="${Romeo's full JID}"/>
+
+Romeo sends:
+ <iq id="lx4" type="get">
+ <vCard xmlns="vcard-temp"/>
+ </iq>
+
+Romeo receives:
+ <iq type="result" id="lx4" to="${Romeo's full JID}">
+ <vCard xmlns="vcard-temp">
+ <FN>Romeo Montague</FN>
+ <N>
+ <FAMILY>Montague</FAMILY>
+ <GIVEN>Romeo</GIVEN>
+ <MIDDLE/>
+ <PREFIX/>
+ <SUFFIX/>
+ </N>
+ </vCard>
+ </iq>
+
+Romeo disconnects
+
+Juliet connects
+
+Juliet sends:
+ <iq type="get" id="lx3" to="romeo@localhost">
+ <vCard xmlns="vcard-temp"/>
+ </iq>
+
+Juliet receives:
+ <iq type="result" from="romeo@localhost" id="lx3" to="${Juliet's full JID}">
+ <vCard xmlns="vcard-temp">
+ <FN>Romeo Montague</FN>
+ <N>
+ <FAMILY>Montague</FAMILY>
+ <GIVEN>Romeo</GIVEN>
+ <MIDDLE/>
+ <PREFIX/>
+ <SUFFIX/>
+ </N>
+ </vCard>
+ </iq>
+
+Juliet disconnects
+
+# recording ended on 2018-10-20T15:02:14Z