Software /
code /
prosody
Annotate
spec/scansion/vcard_temp.scs @ 12482:b193f8a2737e
mod_tls: Do not offer TLS if the connection is considered secure
This may be necessary if the session.conn object is not exchanged by the
network backend when establishing TLS. In that case, the starttls method
will always exist and thus that is not a good indicator for offering
TLS.
However, the secure bit already tells us that TLS has been established
or is not to be established on the connection, so we use that instead.
author | Jonas Schäfer <jonas@wielicki.name> |
---|---|
date | Fri, 17 Sep 2021 21:18:30 +0200 |
parent | 9524:1f6f3b941eb1 |
child | 12967:53b0730093d8 |
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 |
9524
1f6f3b941eb1
tests: Add some comments to xep54 test
Kim Alvefur <zash@zash.se>
parents:
9523
diff
changeset
|
16 # Romeo sets his vCard |
1f6f3b941eb1
tests: Add some comments to xep54 test
Kim Alvefur <zash@zash.se>
parents:
9523
diff
changeset
|
17 # FN and N are required by the schema and mod_vcard_legacy will always inject them |
9521
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
18 Romeo sends: |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
19 <iq id="lx3" type="set"> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
20 <vCard xmlns="vcard-temp"> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
21 <FN>Romeo Montague</FN> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
22 <N> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
23 <FAMILY>Montague</FAMILY> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
24 <GIVEN>Romeo</GIVEN> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
25 <MIDDLE/> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
26 <PREFIX/> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
27 <SUFFIX/> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
28 </N> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
29 </vCard> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
30 </iq> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
31 |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
32 Romeo receives: |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
33 <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
|
34 |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
35 Romeo sends: |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
36 <iq id="lx4" type="get"> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
37 <vCard xmlns="vcard-temp"/> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
38 </iq> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
39 |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
40 Romeo receives: |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
41 <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
|
42 <vCard xmlns="vcard-temp"> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
43 <FN>Romeo Montague</FN> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
44 <N> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
45 <FAMILY>Montague</FAMILY> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
46 <GIVEN>Romeo</GIVEN> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
47 <MIDDLE/> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
48 <PREFIX/> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
49 <SUFFIX/> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
50 </N> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
51 </vCard> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
52 </iq> |
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 Romeo disconnects |
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 connects |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
57 |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
58 Juliet sends: |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
59 <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
|
60 <vCard xmlns="vcard-temp"/> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
61 </iq> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
62 |
9524
1f6f3b941eb1
tests: Add some comments to xep54 test
Kim Alvefur <zash@zash.se>
parents:
9523
diff
changeset
|
63 # Juliet can see Romeo's vCard since it's public |
9521
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
64 Juliet receives: |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
65 <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
|
66 <vCard xmlns="vcard-temp"> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
67 <FN>Romeo Montague</FN> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
68 <N> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
69 <FAMILY>Montague</FAMILY> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
70 <GIVEN>Romeo</GIVEN> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
71 <MIDDLE/> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
72 <PREFIX/> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
73 <SUFFIX/> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
74 </N> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
75 </vCard> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
76 </iq> |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
77 |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
78 Juliet disconnects |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
79 |
e57f6cd1af50
tests: Add simple test case for XEP-0054
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
80 # recording ended on 2018-10-20T15:02:14Z |