Comparison

spec/scansion/pubsub_advanced.scs @ 9266:c5267f5fd6e6

spec/scansion: Add scansion scripts used for testing All past, except issue978-multi which fails randomly based on ordering of elements - this is a scansion issue to be resolved.
author Matthew Wild <mwild1@gmail.com>
date Thu, 06 Sep 2018 16:44:48 +0100
child 9290:decdaaf78f32
comparison
equal deleted inserted replaced
9265:585ef5c1b226 9266:c5267f5fd6e6
1 [Client] Balthasar
2 jid: admin@localhost
3 password: password
4
5 [Client] Romeo
6 jid: romeo@localhost
7 password: password
8
9 [Client] Juliet
10 jid: juliet@localhost
11 password: password
12
13 ---------
14
15 Romeo connects
16
17 Romeo sends:
18 <iq type="set" to="pubsub.localhost" id='create1'>
19 <pubsub xmlns="http://jabber.org/protocol/pubsub">
20 <create node="princely_musings"/>
21 </pubsub>
22 </iq>
23
24 Romeo receives:
25 <iq type="error" id='create1'>
26 <error type="auth">
27 <forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
28 </error>
29 </iq>
30
31 Balthasar connects
32
33 Balthasar sends:
34 <iq type='set' to='pubsub.localhost' id='create2'>
35 <pubsub xmlns='http://jabber.org/protocol/pubsub'>
36 <create node='princely_musings'/>
37 </pubsub>
38 </iq>
39
40 Balthasar receives:
41 <iq type="result" id='create2'/>
42
43 Balthasar sends:
44 <iq type="set" to="pubsub.localhost" id='create3'>
45 <pubsub xmlns="http://jabber.org/protocol/pubsub">
46 <create node="princely_musings"/>
47 </pubsub>
48 </iq>
49
50 Balthasar receives:
51 <iq type="error" id='create3'>
52 <error type="cancel">
53 <conflict xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
54 </error>
55 </iq>
56
57 Juliet connects
58
59 Juliet sends:
60 <iq type="set" to="pubsub.localhost" id='sub1'>
61 <pubsub xmlns="http://jabber.org/protocol/pubsub">
62 <subscribe node="princely_musings" jid="${Romeo's full JID}"/>
63 </pubsub>
64 </iq>
65
66 Juliet receives:
67 <iq type="error" id='sub1'/>
68
69 Juliet sends:
70 <iq type="set" to="pubsub.localhost" id='sub2'>
71 <pubsub xmlns="http://jabber.org/protocol/pubsub">
72 <subscribe node="princely_musings" jid="${Juliet's full JID}"/>
73 </pubsub>
74 </iq>
75
76 Juliet receives:
77 <iq type="result" id='sub2'>
78 <pubsub xmlns='http://jabber.org/protocol/pubsub'>
79 <subscription jid="${Juliet's full JID}" node='princely_musings' subscription='subscribed'/>
80 </pubsub>
81 </iq>
82
83 Balthasar sends:
84 <iq type="get" id='aff1' to='pubsub.localhost'>
85 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
86 <affiliations node="princely_musings"/>
87 </pubsub>
88 </iq>
89
90 Balthasar receives:
91 <iq type="result" id='aff1' from='pubsub.localhost'>
92 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
93 <affiliations node="princely_musings"/>
94 </pubsub>
95 </iq>
96
97 Balthasar sends:
98 <iq type="set" id='aff2' to='pubsub.localhost'>
99 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
100 <affiliations node="princely_musings">
101 <affiliation jid="${Romeo's JID}" affiliation="publisher"/>
102 </affiliations>
103 </pubsub>
104 </iq>
105
106 Balthasar receives:
107 <iq type="result" id='aff2' from='pubsub.localhost'/>
108
109 Romeo sends:
110 <iq type="set" to="pubsub.localhost" id='pub1'>
111 <pubsub xmlns="http://jabber.org/protocol/pubsub">
112 <publish node="princely_musings">
113 <item id="current">
114 <entry xmlns="http://www.w3.org/2005/Atom">
115 <title>Soliloquy</title>
116 <summary>Lorem ipsum dolor sit amet</summary>
117 </entry>
118 </item>
119 </publish>
120 </pubsub>
121 </iq>
122
123 Juliet receives:
124 <message type="headline" from="pubsub.localhost">
125 <event xmlns="http://jabber.org/protocol/pubsub#event">
126 <items node="princely_musings">
127 <item id="current">
128 <entry xmlns="http://www.w3.org/2005/Atom">
129 <title>Soliloquy</title>
130 <summary>Lorem ipsum dolor sit amet</summary>
131 </entry>
132 </item>
133 </items>
134 </event>
135 </message>
136
137 Romeo receives:
138 <iq type="result" id='pub1'/>
139
140 Juliet sends:
141 <iq type="set" to="pubsub.localhost" id='unsub1'>
142 <pubsub xmlns="http://jabber.org/protocol/pubsub">
143 <unsubscribe node="princely_musings" jid="${Juliet's full JID}"/>
144 </pubsub>
145 </iq>
146
147 Juliet receives:
148 <iq type="result" id='unsub1'/>
149
150 Balthasar sends:
151 <iq type="set" to="pubsub.localhost" id='del1'>
152 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
153 <delete node="princely_musings"/>
154 </pubsub>
155 </iq>
156
157 Balthasar receives:
158 <iq type="result" from='pubsub.localhost' id='del1'/>
159
160 Romeo disconnects
161
162 // vim: syntax=xml: