diff options
author | louiz’ <louiz@louiz.org> | 2016-12-12 00:36:59 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-12-12 00:39:03 +0100 |
commit | c65ae4754921fe1f9888afc30d26ed11d5275258 (patch) | |
tree | d0993745374cf0a3a10aac74b525c41ecdeeb788 /tests | |
parent | e45902ba260acd1ce5b296150c2eab0f6983c632 (diff) | |
download | biboumi-c65ae4754921fe1f9888afc30d26ed11d5275258.tar.gz biboumi-c65ae4754921fe1f9888afc30d26ed11d5275258.tar.bz2 biboumi-c65ae4754921fe1f9888afc30d26ed11d5275258.tar.xz biboumi-c65ae4754921fe1f9888afc30d26ed11d5275258.zip |
Auto accept presence subscription
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end_to_end/__main__.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index b265200..dcdd560 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -1840,6 +1840,19 @@ if __name__ == '__main__': "/presence/muc:x", "/presence/error/stanza:text")), ], conf='fixed_server'), + Scenario("irc_server_presence_subscription", + [ + handshake_sequence(), + partial(send_stanza, "<presence type='subscribe' from='{jid_one}/{resource_one}' to='{irc_server_one}' id='sub1' />"), + partial(expect_stanza, "/presence[@to='{jid_one}'][@from='{irc_server_one}'][@type='subscribed']") + ]), + Scenario("fixed_irc_server_presence_subscription", + [ + handshake_sequence(), + partial(send_stanza, "<presence type='subscribe' from='{jid_one}/{resource_one}' to='{biboumi_host}' id='sub1' />"), + partial(expect_stanza, "/presence[@to='{jid_one}'][@from='{biboumi_host}'][@type='subscribed']") + ], conf='fixed_server') + ) |