summaryrefslogtreecommitdiff
path: root/tests/end_to_end
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-12-27 19:23:28 +0100
committerlouiz’ <louiz@louiz.org>2017-12-27 19:23:28 +0100
commit2d9f516d1d36bbdd4b114dd3652bbeaebd2fa379 (patch)
tree5ca4c98f548a8f42977ca2a2523be61e84d363a3 /tests/end_to_end
parente4122880b5a9208aa97807ea517f70375a824a1e (diff)
downloadbiboumi-2d9f516d1d36bbdd4b114dd3652bbeaebd2fa379.tar.gz
biboumi-2d9f516d1d36bbdd4b114dd3652bbeaebd2fa379.tar.bz2
biboumi-2d9f516d1d36bbdd4b114dd3652bbeaebd2fa379.tar.xz
biboumi-2d9f516d1d36bbdd4b114dd3652bbeaebd2fa379.zip
Don’t answer to some requests towards MUC participants
These requests are only meant to be received by the room itself. The participant must answer with not-implemented instead. fix #3323
Diffstat (limited to 'tests/end_to_end')
-rw-r--r--tests/end_to_end/__main__.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index 271f87b..649e073 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -909,7 +909,13 @@ if __name__ == '__main__':
partial(expect_stanza, ("/iq[@type='result']/disco_items:query[@node='http://jabber.org/protocol/commands']",
"/iq/disco_items:query/disco_items:item[6]")),
], conf='fixed_server'),
-
+ Scenario("list_muc_user_adhoc",
+ [
+ handshake_sequence(),
+ partial(send_stanza, "<iq type='get' id='idwhatever' from='{jid_admin}/{resource_one}' to='#foo%{irc_server_one}/{nick_one}'><query xmlns='http://jabber.org/protocol/disco#items' node='http://jabber.org/protocol/commands' /></iq>"),
+ partial(expect_stanza, "/iq[@type='error']/error[@type='cancel']/stanza:feature-not-implemented"),
+ ]
+ ),
Scenario("execute_hello_adhoc_command",
[
handshake_sequence(),