Annotate

spec/scansion/blocking.scs @ 12953:ebe3b2f96cad

mod_tokenauth: Switch to new token format (invalidates existing tokens!) The new format has the following properties: - 5 bytes longer than the previous format - The token now has separate 'id' and 'secret' parts - the token itself is no longer stored in the DB, and the secret part is hashed - The only variable length field (JID) has been moved to the end - The 'secret-token:' prefix (RFC 8959) is now included Compatibility with the old token format was not maintained, and all previously issued tokens are invalid after this commit (they will be removed from the DB if used).
author Matthew Wild <mwild1@gmail.com>
date Tue, 21 Mar 2023 14:33:29 +0000
parent 10812:3bd846c76701
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10050
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 # XEP-0191: Blocking Command
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 [Client] Romeo
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 jid: blocker@localhost
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 password: password
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7 [Client] Juliet
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8 jid: blockee@localhost
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
9 password: password
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
10
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11 -----
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13 # The parties connect
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 Romeo connects
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
17 <presence/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
18
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
19 Romeo receives:
10055
d67e8ef63235 mod_blocklist: Remove unrelated tags from test case
Kim Alvefur <zash@zash.se>
parents: 10051
diff changeset
20 <presence from="${Romeo's full JID}"/>
10050
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 Juliet connects
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
23
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
24 Juliet sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
25 <presence/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
26
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 Juliet receives:
10055
d67e8ef63235 mod_blocklist: Remove unrelated tags from test case
Kim Alvefur <zash@zash.se>
parents: 10051
diff changeset
28 <presence from="${Juliet's full JID}"/>
10050
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
29
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
30 # They add each other
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
31 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
32 <presence type="subscribe" to="${Juliet's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
33
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
34 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
35 <presence from="${Juliet's JID}" to="${Romeo's JID}" type="unavailable"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
36
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
37 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
38 <presence type="subscribe" to="${Juliet's JID}" from="${Romeo's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
39
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
40 Juliet sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
41 <presence type="subscribed" to="${Romeo's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
42
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
43 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
44 <presence from="${Juliet's full JID}" to="${Romeo's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
45 <delay xmlns="urn:xmpp:delay" stamp="{scansion:any}" from="localhost"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
46 </presence>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
47
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
48 Juliet sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
49 <presence type="subscribe" to="${Romeo's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
50
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
51 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
52 <presence from="${Romeo's JID}" to="${Juliet's JID}" type="unavailable"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
53
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
54 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
55 <presence type="subscribe" to="${Romeo's JID}" from="${Juliet's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
56
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
57 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
58 <presence type="subscribed" to="${Juliet's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
59
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
60 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
61 <presence from="${Romeo's full JID}" to="${Juliet's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
62 <delay xmlns="urn:xmpp:delay" stamp="{scansion:any}" from="localhost"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
63 </presence>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
64
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
65 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
66 <presence from="${Juliet's full JID}" to="${Romeo's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
67 <delay xmlns="urn:xmpp:delay" stamp="{scansion:any}" from="localhost"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
68 </presence>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
69
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
70 # They can now talk
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
71 Juliet sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
72 <message type="chat" to="${Romeo's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
73 <body>ohai</body>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
74 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
75
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
76 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
77 <message type="chat" to="${Romeo's JID}" from="${Juliet's full JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
78 <body>ohai</body>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
79 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
80
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
81 # And now to the blockining
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
82
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
83 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
84 <iq type="set" id="lx2">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
85 <block xmlns="urn:xmpp:blocking">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
86 <item jid="${Juliet's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
87 </block>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
88 </iq>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
89
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
90 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
91 <iq type="result" id="lx2"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
92
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
93 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
94 <presence type="unavailable" to="${Juliet's JID}" from="${Romeo's full JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
95
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
96 # Can"t talk anymore
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
97 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
98 <message type="chat" to="${Juliet's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
99 <body>hello?</body>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
100 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
101
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
102 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
103 <message type="error" from="${Juliet's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
104 <error type="cancel">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
105 <not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
106 <text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">You have blocked this JID</text>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
107 <blocked xmlns="urn:xmpp:blocking:errors"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
108 </error>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
109 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
110
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
111 Juliet sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
112 <message type="chat" to="${Romeo's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
113
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
114 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
115 <message type="error" from="${Romeo's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
116 <error type="cancel">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
117 <service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
118 </error>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
119 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
120
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
121 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
122 <iq type="set" id="lx3">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
123 <unblock xmlns="urn:xmpp:blocking">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
124 <item jid="${Juliet's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
125 </unblock>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
126 </iq>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
127
10051
7d312e77c857 mod_blocklist: Update test case with correct behavior (see #1380)
Kim Alvefur <zash@zash.se>
parents: 10050
diff changeset
128 Juliet receives:
7d312e77c857 mod_blocklist: Update test case with correct behavior (see #1380)
Kim Alvefur <zash@zash.se>
parents: 10050
diff changeset
129 <presence to="${Juliet's JID}" from="${Romeo's full JID}">
10057
5c9341a1b36f scansion/blocking: Remove the right irrelevant thing
Kim Alvefur <zash@zash.se>
parents: 10055
diff changeset
130 <delay xmlns="urn:xmpp:delay" stamp="{scansion:any}" from="localhost"/>
10051
7d312e77c857 mod_blocklist: Update test case with correct behavior (see #1380)
Kim Alvefur <zash@zash.se>
parents: 10050
diff changeset
131 </presence>
7d312e77c857 mod_blocklist: Update test case with correct behavior (see #1380)
Kim Alvefur <zash@zash.se>
parents: 10050
diff changeset
132
10050
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
133 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
134 <iq type="result" id="lx3"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
135
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
136 # Can talk again
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
137 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
138 <message type="chat" to="${Juliet's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
139 <body>hello!</body>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
140 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
141
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
142 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
143 <message type="chat" to="${Juliet's JID}" from="${Romeo's full JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
144 <body>hello!</body>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
145 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
146
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
147 # Bye
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
148 Juliet sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
149 <presence type="unavailable"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
150
10812
3bd846c76701 spec/scansion/blocking: Don't send stanzas after disconnecting
Kim Alvefur <zash@zash.se>
parents: 10057
diff changeset
151 Juliet disconnects
3bd846c76701 spec/scansion/blocking: Don't send stanzas after disconnecting
Kim Alvefur <zash@zash.se>
parents: 10057
diff changeset
152
10050
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
153 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
154 <presence from="${Juliet's full JID}" to="${Romeo's JID}" type="unavailable"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
155
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
156 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
157 <presence type="unavailable"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
158
10812
3bd846c76701 spec/scansion/blocking: Don't send stanzas after disconnecting
Kim Alvefur <zash@zash.se>
parents: 10057
diff changeset
159 Romeo disconnects
3bd846c76701 spec/scansion/blocking: Don't send stanzas after disconnecting
Kim Alvefur <zash@zash.se>
parents: 10057
diff changeset
160