diff options
author | louiz’ <louiz@louiz.org> | 2016-04-25 11:29:52 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-04-27 11:03:52 +0200 |
commit | 1e56c59e8241dbfc6a2526c371cc2e894f9d0f18 (patch) | |
tree | 5f4e2de755e26e751f03e09c8ad02ebb17a31b09 /tests | |
parent | 82e0cf99b0dd0ba48f31060656d03a9586b939c6 (diff) | |
download | biboumi-1e56c59e8241dbfc6a2526c371cc2e894f9d0f18.tar.gz biboumi-1e56c59e8241dbfc6a2526c371cc2e894f9d0f18.tar.bz2 biboumi-1e56c59e8241dbfc6a2526c371cc2e894f9d0f18.tar.xz biboumi-1e56c59e8241dbfc6a2526c371cc2e894f9d0f18.zip |
Include the Configure ad-hoc command on biboumi's JID for fixed_irc_server
Because a jid like “freenode.example.org” is both the JID for the configured
IRC server, and biboumi’s JID.
fix #3175
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end_to_end/__main__.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index 786c4e9..fbfd3ce 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -514,6 +514,31 @@ 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[5]")), ], conf='fixed_server'), + + + Scenario("list_adhoc_irc", + [ + handshake_sequence(), + partial(send_stanza, "<iq type='get' id='idwhatever' from='{jid_one}/{resource_one}' to='{irc_host_one}@{biboumi_host}'><query xmlns='http://jabber.org/protocol/disco#items' node='http://jabber.org/protocol/commands' /></iq>"), + partial(expect_stanza, ("/iq[@type='result']/disco_items:query[@node='http://jabber.org/protocol/commands']", + "/iq/disco_items:query/disco_items:item[1]")), + ]), + Scenario("list_adhoc_irc_fixed_server", + [ + handshake_sequence(), + partial(send_stanza, "<iq type='get' id='idwhatever' from='{jid_one}/{resource_one}' to='{biboumi_host}'><query xmlns='http://jabber.org/protocol/disco#items' node='http://jabber.org/protocol/commands' /></iq>"), + partial(expect_stanza, ("/iq[@type='result']/disco_items:query[@node='http://jabber.org/protocol/commands']", + "/iq/disco_items:query/disco_items:item[4]")), + ], conf='fixed_server'), + Scenario("list_admin_adhoc_irc_fixed_server", + [ + handshake_sequence(), + partial(send_stanza, "<iq type='get' id='idwhatever' from='{jid_admin}/{resource_one}' to='{biboumi_host}'><query xmlns='http://jabber.org/protocol/disco#items' node='http://jabber.org/protocol/commands' /></iq>"), + 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'), + + ) failures = 0 |