Comparison

spec/scansion/pep_nickname.scs @ 9339:a35a636481c6

mod_pep: Add test publishing a nickname
author Kim Alvefur <zash@zash.se>
date Sat, 22 Sep 2018 15:34:26 +0200
child 11714:d783716103c1
comparison
equal deleted inserted replaced
9338:9beb767295d4 9339:a35a636481c6
1 # Publishing a nickname in PEP and receiving a notification
2
3 [Client] Romeo
4 jid: romeo@localhost/nJi7BeTR
5 password: password
6
7 -----
8
9 Romeo connects
10
11 Romeo sends:
12 <iq id="4" type="set">
13 <pubsub xmlns="http://jabber.org/protocol/pubsub">
14 <publish node="http://jabber.org/protocol/nick">
15 <item id="current">
16 <nickname xmlns="http://jabber.org/protocol/nick"/>
17 </item>
18 </publish>
19 </pubsub>
20 </iq>
21
22 Romeo receives:
23 <iq id="4" to="romeo@localhost/nJi7BeTR" type="result">
24 <pubsub xmlns="http://jabber.org/protocol/pubsub">
25 <publish node="http://jabber.org/protocol/nick">
26 <item id="current"/>
27 </publish>
28 </pubsub>
29 </iq>
30
31 Romeo sends:
32 <presence>
33 <c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://code.matthewwild.co.uk/clix/" ver="jC32N+FhQoLrZ7nNQtZK3aqR0Fk="/>
34 </presence>
35
36 Romeo receives:
37 <iq id="disco" to="romeo@localhost/nJi7BeTR" from="romeo@localhost" type="get">
38 <query xmlns="http://jabber.org/protocol/disco#info" node="http://code.matthewwild.co.uk/clix/#jC32N+FhQoLrZ7nNQtZK3aqR0Fk="/>
39 </iq>
40
41 Romeo receives:
42 <presence from="romeo@localhost/nJi7BeTR">
43 <c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://code.matthewwild.co.uk/clix/" ver="jC32N+FhQoLrZ7nNQtZK3aqR0Fk="/>
44 </presence>
45
46 Romeo sends:
47 <iq id="disco" type="result" to="romeo@localhost">
48 <query xmlns="http://jabber.org/protocol/disco#info" node="http://code.matthewwild.co.uk/clix/#jC32N+FhQoLrZ7nNQtZK3aqR0Fk=">
49 <identity type="console" name="clix" category="client"/>
50 <feature var="http://jabber.org/protocol/disco#items"/>
51 <feature var="http://jabber.org/protocol/disco#info"/>
52 <feature var="http://jabber.org/protocol/caps"/>
53 <feature var="http://jabber.org/protocol/nick+notify"/>
54 </query>
55 </iq>
56
57 Romeo receives:
58 <message type="headline" from="romeo@localhost" to="romeo@localhost/nJi7BeTR">
59 <event xmlns="http://jabber.org/protocol/pubsub#event">
60 <items node="http://jabber.org/protocol/nick">
61 <item id="current">
62 <nickname xmlns="http://jabber.org/protocol/nick"/>
63 </item>
64 </items>
65 </event>
66 </message>
67
68 Romeo sends:
69 <presence type="unavailable"/>
70
71 Romeo disconnects
72