Annotate

spec/scansion/muc_subject_issue_667.scs @ 10175:4dac771ddf9f

util.startup: Improved how .set_plugindir updates prosody.paths.plugins, package.path and package.cpath
author João Duarte <jvsDuarte08@gmail.com>
date Fri, 26 Jul 2019 17:54:37 -0700
parent 9708:6507df6d2c55
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9685
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 # #667 MUC message with subject and body SHALL NOT be interpreted as a subject change
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 [Client] Romeo
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 password: password
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 jid: romeo@localhost
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7 -----
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
9 Romeo connects
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
10
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11 # and creates a room
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12 Romeo sends:
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13 <presence to="issue667@conference.localhost/Romeo">
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 <x xmlns="http://jabber.org/protocol/muc"/>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15 </presence>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
17 Romeo receives:
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
18 <presence from="issue667@conference.localhost/Romeo">
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
19 <x xmlns="http://jabber.org/protocol/muc#user">
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
20 <status code="201"/>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21 <item affiliation="owner" role="moderator" jid="${Romeo's full JID}"/>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 <status code="110"/>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
23 </x>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
24 </presence>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
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
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 Romeo receives:
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
28 <message type="groupchat" from="issue667@conference.localhost">
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
29 <subject/>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
30 </message>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
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
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
33 Romeo sends:
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
34 <message to="issue667@conference.localhost" type="groupchat">
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
35 <subject>Greetings</subject>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
36 <body>Hello everyone</body>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
37 </message>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
38
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
39 Romeo receives:
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
40 <message type="groupchat" from="issue667@conference.localhost/Romeo">
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
41 <subject>Greetings</subject>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
42 <body>Hello everyone</body>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
43 </message>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
44
9708
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
45 # Resync
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
46 Romeo sends:
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
47 <presence to="issue667@conference.localhost/Romeo">
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
48 <x xmlns="http://jabber.org/protocol/muc"/>
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
49 </presence>
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
50
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
51 # Presences
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
52 Romeo receives:
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
53 <presence from="issue667@conference.localhost/Romeo">
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
54 <x xmlns="http://jabber.org/protocol/muc#user">
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
55 <item affiliation="owner" role="moderator" jid="${Romeo's full JID}"/>
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
56 <status code="110"/>
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
57 </x>
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
58 </presence>
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
59
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
60 Romeo receives:
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
61 <message type="groupchat" from="issue667@conference.localhost/Romeo">
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
62 <subject>Greetings</subject>
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
63 <body>Hello everyone</body>
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
64 </message>
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
65
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
66 # the still empty subject
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
67 Romeo receives:
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
68 <message type="groupchat" from="issue667@conference.localhost">
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
69 <subject/>
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
70 </message>
6507df6d2c55 MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Kim Alvefur <zash@zash.se>
parents: 9707
diff changeset
71
9707
9171eddcce93 MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents: 9706
diff changeset
72 # this is a subject change
9685
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
73 Romeo sends:
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
74 <message to="issue667@conference.localhost" type="groupchat">
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
75 <subject>Something to talk about</subject>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
76 </message>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
77
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
78 Romeo receives:
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
79 <message type="groupchat" from="issue667@conference.localhost/Romeo">
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
80 <subject>Something to talk about</subject>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
81 </message>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
82
9707
9171eddcce93 MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents: 9706
diff changeset
83 # a message without <subject>
9685
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
84 Romeo sends:
9706
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
85 <message to="issue667@conference.localhost" type="groupchat">
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
86 <body>Lorem ipsum dolor sit amet</body>
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
87 </message>
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
88
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
89 Romeo receives:
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
90 <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
91 <body>Lorem ipsum dolor sit amet</body>
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
92 </message>
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
93
9707
9171eddcce93 MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents: 9706
diff changeset
94 # Resync
9706
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
95 Romeo sends:
9685
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
96 <presence to="issue667@conference.localhost/Romeo">
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
97 <x xmlns="http://jabber.org/protocol/muc"/>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
98 </presence>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
99
9707
9171eddcce93 MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents: 9706
diff changeset
100 # Presences
9685
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
101 Romeo receives:
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
102 <presence from="issue667@conference.localhost/Romeo">
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
103 <x xmlns="http://jabber.org/protocol/muc#user">
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
104 <item affiliation="owner" role="moderator" jid="${Romeo's full JID}"/>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
105 <status code="110"/>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
106 </x>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
107 </presence>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
108
9707
9171eddcce93 MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents: 9706
diff changeset
109 # History
9685
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
110 # These have delay tags but we ignore those for now
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
111 Romeo receives:
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
112 <message type="groupchat" from="issue667@conference.localhost/Romeo">
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
113 <subject>Greetings</subject>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
114 <body>Hello everyone</body>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
115 </message>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
116
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
117 Romeo receives:
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
118 <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
119 <body>Lorem ipsum dolor sit amet</body>
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
120 </message>
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
121
9707
9171eddcce93 MUC: Add descriptive comments to #667 test
Kim Alvefur <zash@zash.se>
parents: 9706
diff changeset
122 # Finally, the topic
9706
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
123 Romeo receives:
d3c2c9248734 MUC: Add another message to #667 test
Kim Alvefur <zash@zash.se>
parents: 9685
diff changeset
124 <message type="groupchat" from="issue667@conference.localhost/Romeo">
9685
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
125 <subject>Something to talk about</subject>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
126 </message>
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
127
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
128 Romeo disconnects
e98b901446d0 MUC: Add test case for #667
Kim Alvefur <zash@zash.se>
parents:
diff changeset
129