summaryrefslogtreecommitdiff
path: root/tests/end_to_end
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-05-17 00:30:07 +0200
committerlouiz’ <louiz@louiz.org>2017-05-17 00:31:21 +0200
commitbb150d587f080af38a74f2420457f1e0b2606a62 (patch)
treed4c4f48f1abf63020ebebdc653097dc2b4cb75b3 /tests/end_to_end
parent0180ea7e404a90dd36f771eee2538a17daa590d1 (diff)
downloadbiboumi-bb150d587f080af38a74f2420457f1e0b2606a62.tar.gz
biboumi-bb150d587f080af38a74f2420457f1e0b2606a62.tar.bz2
biboumi-bb150d587f080af38a74f2420457f1e0b2606a62.tar.xz
biboumi-bb150d587f080af38a74f2420457f1e0b2606a62.zip
Redirect welcome NOTICE to their channel, instead of sending a global one
fix #3236
Diffstat (limited to 'tests/end_to_end')
-rw-r--r--tests/end_to_end/__main__.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index 53860d7..3fddedf 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -1114,6 +1114,19 @@ if __name__ == '__main__':
),
partial(expect_stanza, "/message[@from='#bar%{irc_server_one}'][@type='groupchat'][@to='{jid_one}/{resource_one}']/subject[not(text())]"),
]),
+ Scenario("notices",
+ [
+ handshake_sequence(),
+ partial(send_stanza,
+ "<presence from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}/{nick_one}' />"),
+ connection_sequence("irc.localhost", '{jid_one}/{resource_one}'),
+ partial(expect_stanza, "/message"),
+ partial(expect_stanza, "/presence"),
+ partial(expect_stanza, "/message"),
+
+ partial(send_stanza, "<message from='{jid_one}/{resource_one}' to='{irc_server_one}' type='chat'><body>NOTICE {nick_one} :[#foo] Hello in a notice.</body></message>"),
+ partial(expect_stanza, "/message[@from='#foo%{irc_server_one}/{nick_one}'][@type='groupchat']/body[text()='[notice] [#foo] Hello in a notice.']"),
+ ]),
Scenario("channel_messages",
[
handshake_sequence(),