Annotate

spec/scansion/blocking.scs @ 10051:7d312e77c857 0.11

mod_blocklist: Update test case with correct behavior (see #1380) Expect failure
author Kim Alvefur <zash@zash.se>
date Thu, 20 Jun 2019 21:18:46 +0200
parent 10050:f29d662d16f8
child 10055:d67e8ef63235
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:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
20 <presence from="${Romeo's full JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21 <x xmlns="vcard-temp:x:update"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 </presence>
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 connects
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
25
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
26 Juliet sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 <presence/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
28
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
29 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
30 <presence from="${Juliet's full JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
31 <x xmlns="vcard-temp:x:update"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
32 </presence>
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 # They add each other
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
35 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
36 <presence type="subscribe" to="${Juliet's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
37
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
38 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
39 <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
40
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
41 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
42 <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
43
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
44 Juliet sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
45 <presence type="subscribed" to="${Romeo's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
46
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
47 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
48 <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
49 <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
50 <x xmlns="vcard-temp:x:update"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
51 </presence>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
52
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
53 Juliet sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
54 <presence type="subscribe" to="${Romeo's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
55
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
56 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
57 <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
58
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
59 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
60 <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
61
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
62 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
63 <presence type="subscribed" to="${Juliet's JID}"/>
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 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
66 <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
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 <x xmlns="vcard-temp:x:update"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
69 </presence>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
70
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
71 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
72 <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
73 <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
74 <x xmlns="vcard-temp:x:update"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
75 </presence>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
76
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
77 # They can now talk
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
78 Juliet sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
79 <message type="chat" to="${Romeo's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
80 <body>ohai</body>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
81 </message>
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 receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
84 <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
85 <body>ohai</body>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
86 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
87
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
88 # And now to the blockining
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 sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
91 <iq type="set" id="lx2">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
92 <block xmlns="urn:xmpp:blocking">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
93 <item jid="${Juliet's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
94 </block>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
95 </iq>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
96
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
97 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
98 <iq type="result" id="lx2"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
99
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
100 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
101 <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
102
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
103 # Can"t talk anymore
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
104 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
105 <message type="chat" to="${Juliet's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
106 <body>hello?</body>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
107 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
108
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
109 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
110 <message type="error" from="${Juliet's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
111 <error type="cancel">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
112 <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
113 <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
114 <blocked xmlns="urn:xmpp:blocking:errors"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
115 </error>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
116 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
117
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
118 Juliet sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
119 <message type="chat" to="${Romeo's JID}"/>
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 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
122 <message type="error" from="${Romeo's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
123 <error type="cancel">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
124 <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
125 </error>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
126 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
127
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
128 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
129 <iq type="set" id="lx3">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
130 <unblock xmlns="urn:xmpp:blocking">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
131 <item jid="${Juliet's JID}"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
132 </unblock>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
133 </iq>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
134
10051
7d312e77c857 mod_blocklist: Update test case with correct behavior (see #1380)
Kim Alvefur <zash@zash.se>
parents: 10050
diff changeset
135 Juliet receives:
7d312e77c857 mod_blocklist: Update test case with correct behavior (see #1380)
Kim Alvefur <zash@zash.se>
parents: 10050
diff changeset
136 <presence to="${Juliet's JID}" from="${Romeo's full JID}">
7d312e77c857 mod_blocklist: Update test case with correct behavior (see #1380)
Kim Alvefur <zash@zash.se>
parents: 10050
diff changeset
137 <delay xmlns="urn:xmpp:delay" stamp="{scansion:any}" from="localhost"/>
7d312e77c857 mod_blocklist: Update test case with correct behavior (see #1380)
Kim Alvefur <zash@zash.se>
parents: 10050
diff changeset
138 <x xmlns="vcard-temp:x:update"/>
7d312e77c857 mod_blocklist: Update test case with correct behavior (see #1380)
Kim Alvefur <zash@zash.se>
parents: 10050
diff changeset
139 </presence>
7d312e77c857 mod_blocklist: Update test case with correct behavior (see #1380)
Kim Alvefur <zash@zash.se>
parents: 10050
diff changeset
140
10050
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
141 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
142 <iq type="result" id="lx3"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
143
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
144 # Can talk again
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
145 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
146 <message type="chat" to="${Juliet's JID}">
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
147 <body>hello!</body>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
148 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
149
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
150 Juliet receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
151 <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
152 <body>hello!</body>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
153 </message>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
154
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
155 # Bye
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
156 Juliet disconnects
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
157
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
158 Juliet sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
159 <presence type="unavailable"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
160
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
161 Romeo receives:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
162 <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
163
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
164 Romeo disconnects
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
165
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
166 Romeo sends:
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
167 <presence type="unavailable"/>
f29d662d16f8 mod_blocklist: Add test case capturing current behavior
Kim Alvefur <zash@zash.se>
parents:
diff changeset
168