mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
I plan to introduce logic to "reset" the server between individual tests, which is currently triggered by the lack of any connections. This is the only test that has a point where no clients are connected, and it's not necessary, so I changed it to keep the connection open for the duration of the test.
80 lines
1.5 KiB
Text
80 lines
1.5 KiB
Text
# XEP-0054 vCard-temp writable and readable by anyone
|
|
# 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 sets his vCard
|
|
# FN and N are required by the schema and mod_vcard_legacy will always inject them
|
|
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>
|
|
|
|
Juliet connects
|
|
|
|
Juliet sends:
|
|
<iq type="get" id="lx3" to="romeo@localhost">
|
|
<vCard xmlns="vcard-temp"/>
|
|
</iq>
|
|
|
|
# Juliet can see Romeo's vCard since it's public
|
|
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
|
|
|
|
Romeo disconnects
|
|
|
|
# recording ended on 2018-10-20T15:02:14Z
|