Comparison

spec/scansion/muc_mediated_invite.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 9291:329a670ae975
comparison
equal deleted inserted replaced
9265:585ef5c1b226 9266:c5267f5fd6e6
1 [Client] Romeo
2 jid: user@localhost
3 password: password
4
5 [Client] Juliet
6 jid: user2@localhost
7 password: password
8
9 -----
10
11 Romeo connects
12
13 Romeo sends:
14 <presence to="room@conference.localhost/Romeo">
15 <x xmlns="http://jabber.org/protocol/muc"/>
16 </presence>
17
18 Romeo receives:
19 <presence from='room@conference.localhost/Romeo'>
20 <x xmlns='http://jabber.org/protocol/muc#user'>
21 <status code='201'/>
22 <item jid="${Romeo's full JID}" affiliation='owner' role='moderator'/>
23 <status code='110'/>
24 </x>
25 </presence>
26
27 Romeo receives:
28 <message type='groupchat' from='room@conference.localhost'><subject/></message>
29
30 # Submit config form
31 Romeo sends:
32 <iq id='config1' to='room@conference.localhost' type='set'>
33 <query xmlns='http://jabber.org/protocol/muc#owner'>
34 <x xmlns='jabber:x:data' type='submit'>
35 <field var='FORM_TYPE'>
36 <value>http://jabber.org/protocol/muc#roomconfig</value>
37 </field>
38 </x>
39 </query>
40 </iq>
41
42 Romeo receives:
43 <iq id="config1" from="room@conference.localhost" type="result">
44 </iq>
45
46 # Juliet connects
47 Juliet connects
48
49 Juliet sends:
50 <presence/>
51
52 Juliet receives:
53 <presence/>
54
55
56 # Romeo invites Juliet to join the room
57
58 Romeo sends:
59 <message to="room@conference.localhost" id="invite1">
60 <x xmlns="http://jabber.org/protocol/muc#user">
61 <invite to="${Juliet's JID}" />
62 </x>
63 </message>
64
65 Juliet receives:
66 <message from="room@conference.localhost" id="invite1">
67 <x xmlns="http://jabber.org/protocol/muc#user">
68 <invite from="room@conference.localhost/Romeo">
69 <reason/>
70 </invite>
71 </x>
72 <body>room@conference.localhost/Romeo invited you to the room room@conference.localhost</body>
73 <x xmlns="jabber:x:conference" jid="room@conference.localhost"/>
74 </message>