diff options
author | louiz’ <louiz@louiz.org> | 2017-07-20 21:29:33 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-07-20 21:34:27 +0200 |
commit | 407f95a108c275db5e9b07398f553ab573cd46bc (patch) | |
tree | 08e997dd7ff7c01f5c7d1b6db1d7ba9c30928dad /tests | |
parent | 24f2511d7ba105d65c9684dd5606a57c5af95445 (diff) | |
download | biboumi-407f95a108c275db5e9b07398f553ab573cd46bc.tar.gz biboumi-407f95a108c275db5e9b07398f553ab573cd46bc.tar.bz2 biboumi-407f95a108c275db5e9b07398f553ab573cd46bc.tar.xz biboumi-407f95a108c275db5e9b07398f553ab573cd46bc.zip |
Do not reply with an error when receiving a presence for a user JID
fix #3224
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end_to_end/__main__.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index 2eb7f6c..ce9add6 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -2696,22 +2696,6 @@ if __name__ == '__main__': partial(send_stanza, "<iq type='set' id='command2' from='{jid_one}/{resource_one}' to='{biboumi_host}'><command xmlns='http://jabber.org/protocol/commands' node='get-irc-connection-info' action='execute' /></iq>"), partial(expect_stanza, r"/iq/commands:command/commands:note[re:test(text(), 'Connected to IRC server irc.localhost on port 6667 since \d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d \(\d+ seconds ago\)\.\n#foo from 1 resource: {resource_one}.*')]"), ], conf='fixed_server'), - Scenario("invalid_room_jid", - [ - handshake_sequence(), - partial(send_stanza, "<presence from='{jid_one}/{resource_one}' to='invalid%{irc_server_one}/{nick_one}' />"), - partial(expect_stanza, ("/presence[@type='error'][@to='{jid_one}/{resource_one}'][@from='invalid%{irc_server_one}/{nick_one}']/error[@type='cancel']/stanza:item-not-found", - "/presence/muc:x", - "/presence/error/stanza:text")), - ]), - Scenario("invalid_room_jid_fixed", - [ - handshake_sequence(), - partial(send_stanza, "<presence from='{jid_one}/{resource_one}' to='invalid@{biboumi_host}/{nick_one}' />"), - partial(expect_stanza, ("/presence[@type='error'][@to='{jid_one}/{resource_one}'][@from='invalid@{biboumi_host}/{nick_one}']/error[@type='cancel']/stanza:item-not-found", - "/presence/muc:x", - "/presence/error/stanza:text")), - ], conf='fixed_server'), Scenario("irc_server_presence_subscription", [ handshake_sequence(), |