Annotate

spec/scansion/vcard_temp.scs @ 9523:e9122479e5d8

tests: Remove initial read since XEP is unclear (see #1104) If the store is empty then either this empty vCard element or an item-not-found error is acceptable.
author Kim Alvefur <zash@zash.se>
date Sat, 20 Oct 2018 17:29:31 +0200
parent 9522:4ea7298d3401
child 9524:1f6f3b941eb1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9522
4ea7298d3401 tests: Set a proper title for vCard test
Kim Alvefur <zash@zash.se>
parents: 9521
diff changeset
1 # XEP-0054 vCard-temp writable and readable by anyone
9521
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2 # mod_scansion_record on host 'localhost' recording started 2018-10-20T15:00:12Z
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 [Client] Romeo
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 jid: romeo@localhost
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6 password: password
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8 [Client] Juliet
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
9 jid: juliet@localhost
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
10 password: password
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12 -----
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 Romeo connects
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16 Romeo sends:
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
17 <iq id="lx3" type="set">
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
18 <vCard xmlns="vcard-temp">
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
19 <FN>Romeo Montague</FN>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
20 <N>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21 <FAMILY>Montague</FAMILY>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 <GIVEN>Romeo</GIVEN>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
23 <MIDDLE/>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
24 <PREFIX/>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
25 <SUFFIX/>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
26 </N>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 </vCard>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
28 </iq>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
29
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
30 Romeo receives:
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
31 <iq type="result" id="lx3" to="${Romeo's full JID}"/>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
32
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
33 Romeo sends:
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
34 <iq id="lx4" type="get">
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
35 <vCard xmlns="vcard-temp"/>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
36 </iq>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
37
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
38 Romeo receives:
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
39 <iq type="result" id="lx4" to="${Romeo's full JID}">
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
40 <vCard xmlns="vcard-temp">
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
41 <FN>Romeo Montague</FN>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
42 <N>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
43 <FAMILY>Montague</FAMILY>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
44 <GIVEN>Romeo</GIVEN>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
45 <MIDDLE/>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
46 <PREFIX/>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
47 <SUFFIX/>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
48 </N>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
49 </vCard>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
50 </iq>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
51
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
52 Romeo disconnects
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
53
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
54 Juliet connects
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
55
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
56 Juliet sends:
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
57 <iq type="get" id="lx3" to="romeo@localhost">
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
58 <vCard xmlns="vcard-temp"/>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
59 </iq>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
60
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
61 Juliet receives:
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
62 <iq type="result" from="romeo@localhost" id="lx3" to="${Juliet's full JID}">
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
63 <vCard xmlns="vcard-temp">
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
64 <FN>Romeo Montague</FN>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
65 <N>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
66 <FAMILY>Montague</FAMILY>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
67 <GIVEN>Romeo</GIVEN>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
68 <MIDDLE/>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
69 <PREFIX/>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
70 <SUFFIX/>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
71 </N>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
72 </vCard>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
73 </iq>
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
74
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
75 Juliet disconnects
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
76
e57f6cd1af50 tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff changeset
77 # recording ended on 2018-10-20T15:02:14Z