Comparison

spec/scansion/basic_roster.scs @ 9305:f14c81fd44a4

spec/scansion/basic_roster.scs: Add tests for actually modifying the roster
author Matthew Wild <mwild1@gmail.com>
date Thu, 13 Sep 2018 16:18:59 +0100
parent 9291:329a670ae975
comparison
equal deleted inserted replaced
9304:0616412409c5 9305:f14c81fd44a4
28 Romeo receives: 28 Romeo receives:
29 <iq type="result" id="roster1"> 29 <iq type="result" id="roster1">
30 <query ver='{scansion:any}' xmlns="jabber:iq:roster"/> 30 <query ver='{scansion:any}' xmlns="jabber:iq:roster"/>
31 </iq> 31 </iq>
32 32
33 # Add nurse to roster
34
35 Romeo sends:
36 <iq type="set" id="roster2">
37 <query xmlns="jabber:iq:roster">
38 <item jid='nurse@localhost'/>
39 </query>
40 </iq>
41
42 # Receive the roster add result
43
44 Romeo receives:
45 <iq type="result" id="roster2"/>
46
47 # Receive the roster push
48
49 Romeo receives:
50 <iq type="set" id="{scansion:any}">
51 <query xmlns='jabber:iq:roster' ver='{scansion:any}'>
52 <item jid='nurse@localhost' subscription='none'/>
53 </query>
54 </iq>
55
56 Romeo sends:
57 <iq type="result" id="fixme"/>
58
59 # Fetch the roster, it should include nurse now
60
61 Romeo sends:
62 <iq type="get" id="roster3">
63 <query xmlns='jabber:iq:roster'/>
64 </iq>
65
66 Romeo receives:
67 <iq type="result" id="roster3">
68 <query xmlns='jabber:iq:roster' ver="{scansion:any}">
69 <item subscription='none' jid='nurse@localhost'/>
70 </query>
71 </iq>
72
33 Romeo disconnects 73 Romeo disconnects
34
35 #Juliet receives:
36 # <presence from="${Romeo's full JID}" />
37 #
38 #Juliet receives:
39 # <presence from="${Romeo's full JID}" type="unavailable" />
40 #
41 #Juliet disconnects