Software /
code /
prosody
Annotate
spec/scansion/muc_subject_issue_667.scs @ 9707:9171eddcce93
MUC: Add descriptive comments to #667 test
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 16 Dec 2018 22:53:56 +0100 |
parent | 9706:d3c2c9248734 |
child | 9708:6507df6d2c55 |
rev | line source |
---|---|
9685 | 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 | |
9707
9171eddcce93
MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents:
9706
diff
changeset
|
26 # the default (empty) subject |
9685 | 27 Romeo receives: |
28 <message type="groupchat" from="issue667@conference.localhost"> | |
29 <subject/> | |
30 </message> | |
31 | |
9707
9171eddcce93
MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents:
9706
diff
changeset
|
32 # this should be treated as a normal message |
9685 | 33 Romeo sends: |
34 <message to="issue667@conference.localhost" type="groupchat"> | |
35 <subject>Greetings</subject> | |
36 <body>Hello everyone</body> | |
37 </message> | |
38 | |
39 Romeo receives: | |
40 <message type="groupchat" from="issue667@conference.localhost/Romeo"> | |
41 <subject>Greetings</subject> | |
42 <body>Hello everyone</body> | |
43 </message> | |
44 | |
9707
9171eddcce93
MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents:
9706
diff
changeset
|
45 # this is a subject change |
9685 | 46 Romeo sends: |
47 <message to="issue667@conference.localhost" type="groupchat"> | |
48 <subject>Something to talk about</subject> | |
49 </message> | |
50 | |
51 Romeo receives: | |
52 <message type="groupchat" from="issue667@conference.localhost/Romeo"> | |
53 <subject>Something to talk about</subject> | |
54 </message> | |
55 | |
9707
9171eddcce93
MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents:
9706
diff
changeset
|
56 # a message without <subject> |
9685 | 57 Romeo sends: |
9706
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
58 <message to="issue667@conference.localhost" type="groupchat"> |
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
59 <body>Lorem ipsum dolor sit amet</body> |
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
60 </message> |
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
61 |
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
62 Romeo receives: |
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
63 <message type="groupchat" from="issue667@conference.localhost/Romeo"> |
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
64 <body>Lorem ipsum dolor sit amet</body> |
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
65 </message> |
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
66 |
9707
9171eddcce93
MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents:
9706
diff
changeset
|
67 # Resync |
9706
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
68 Romeo sends: |
9685 | 69 <presence to="issue667@conference.localhost/Romeo"> |
70 <x xmlns="http://jabber.org/protocol/muc"/> | |
71 </presence> | |
72 | |
9707
9171eddcce93
MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents:
9706
diff
changeset
|
73 # Presences |
9685 | 74 Romeo receives: |
75 <presence from="issue667@conference.localhost/Romeo"> | |
76 <x xmlns="http://jabber.org/protocol/muc#user"> | |
77 <item affiliation="owner" role="moderator" jid="${Romeo's full JID}"/> | |
78 <status code="110"/> | |
79 </x> | |
80 </presence> | |
81 | |
9707
9171eddcce93
MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents:
9706
diff
changeset
|
82 # History |
9685 | 83 # These have delay tags but we ignore those for now |
84 Romeo receives: | |
85 <message type="groupchat" from="issue667@conference.localhost/Romeo"> | |
86 <subject>Greetings</subject> | |
87 <body>Hello everyone</body> | |
88 </message> | |
89 | |
90 Romeo receives: | |
91 <message type="groupchat" from="issue667@conference.localhost/Romeo"> | |
9706
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
92 <body>Lorem ipsum dolor sit amet</body> |
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
93 </message> |
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
94 |
9707
9171eddcce93
MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents:
9706
diff
changeset
|
95 # Finally, the topic |
9706
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
96 Romeo receives: |
d3c2c9248734
MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents:
9685
diff
changeset
|
97 <message type="groupchat" from="issue667@conference.localhost/Romeo"> |
9685 | 98 <subject>Something to talk about</subject> |
99 </message> | |
100 | |
101 Romeo disconnects | |
102 |