Software /
code /
prosody
Comparison
spec/scansion/muc_subject_issue_667.scs @ 9685:e98b901446d0
MUC: Add test case for #667
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 06 Dec 2018 17:54:50 +0100 |
child | 9706:d3c2c9248734 |
comparison
equal
deleted
inserted
replaced
9684:b2d6b79c9513 | 9685:e98b901446d0 |
---|---|
1 # #667 MUC message with subject and body SHALL NOT be interpreted as a subject change | |
2 | |
3 [Client] Romeo | |
4 password: password | |
5 jid: romeo@localhost | |
6 | |
7 ----- | |
8 | |
9 Romeo connects | |
10 | |
11 # and creates a room | |
12 Romeo sends: | |
13 <presence to="issue667@conference.localhost/Romeo"> | |
14 <x xmlns="http://jabber.org/protocol/muc"/> | |
15 </presence> | |
16 | |
17 Romeo receives: | |
18 <presence from="issue667@conference.localhost/Romeo"> | |
19 <x xmlns="http://jabber.org/protocol/muc#user"> | |
20 <status code="201"/> | |
21 <item affiliation="owner" role="moderator" jid="${Romeo's full JID}"/> | |
22 <status code="110"/> | |
23 </x> | |
24 </presence> | |
25 | |
26 Romeo receives: | |
27 <message type="groupchat" from="issue667@conference.localhost"> | |
28 <subject/> | |
29 </message> | |
30 | |
31 Romeo sends: | |
32 <message to="issue667@conference.localhost" type="groupchat"> | |
33 <subject>Greetings</subject> | |
34 <body>Hello everyone</body> | |
35 </message> | |
36 | |
37 Romeo receives: | |
38 <message type="groupchat" from="issue667@conference.localhost/Romeo"> | |
39 <subject>Greetings</subject> | |
40 <body>Hello everyone</body> | |
41 </message> | |
42 | |
43 Romeo sends: | |
44 <message to="issue667@conference.localhost" type="groupchat"> | |
45 <subject>Something to talk about</subject> | |
46 </message> | |
47 | |
48 Romeo receives: | |
49 <message type="groupchat" from="issue667@conference.localhost/Romeo"> | |
50 <subject>Something to talk about</subject> | |
51 </message> | |
52 | |
53 Romeo sends: | |
54 <presence to="issue667@conference.localhost/Romeo"> | |
55 <x xmlns="http://jabber.org/protocol/muc"/> | |
56 </presence> | |
57 | |
58 Romeo receives: | |
59 <presence from="issue667@conference.localhost/Romeo"> | |
60 <x xmlns="http://jabber.org/protocol/muc#user"> | |
61 <item affiliation="owner" role="moderator" jid="${Romeo's full JID}"/> | |
62 <status code="110"/> | |
63 </x> | |
64 </presence> | |
65 | |
66 # These have delay tags but we ignore those for now | |
67 Romeo receives: | |
68 <message type="groupchat" from="issue667@conference.localhost/Romeo"> | |
69 <subject>Greetings</subject> | |
70 <body>Hello everyone</body> | |
71 </message> | |
72 | |
73 Romeo receives: | |
74 <message type="groupchat" from="issue667@conference.localhost/Romeo"> | |
75 <subject>Something to talk about</subject> | |
76 </message> | |
77 | |
78 Romeo disconnects | |
79 |