diff options
author | louiz’ <louiz@louiz.org> | 2017-04-07 19:55:15 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-04-07 19:55:15 +0200 |
commit | 79b24d7eb5b729c000cce1b56ee1a64d914b9d4e (patch) | |
tree | 3cd9cdd068099f96bafd5c4ee1ed907a4952a9d2 /tests/end_to_end | |
parent | 8a912ea3a3a74f6c4d2cb67adf3f60b4ec0a1c9f (diff) | |
download | biboumi-79b24d7eb5b729c000cce1b56ee1a64d914b9d4e.tar.gz biboumi-79b24d7eb5b729c000cce1b56ee1a64d914b9d4e.tar.bz2 biboumi-79b24d7eb5b729c000cce1b56ee1a64d914b9d4e.tar.xz biboumi-79b24d7eb5b729c000cce1b56ee1a64d914b9d4e.zip |
Add an e2e test for the ad-hoc ping
Diffstat (limited to 'tests/end_to_end')
-rw-r--r-- | tests/end_to_end/__main__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index 2d33b92..bb5eb1c 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -788,6 +788,12 @@ if __name__ == '__main__': partial(send_stanza, "<iq type='set' id='hello-command2' from='{jid_one}/{resource_one}' to='{biboumi_host}'><command xmlns='http://jabber.org/protocol/commands' node='hello' sessionid='{sessionid}' action='next'><x xmlns='jabber:x:data' type='submit'><field var='name'><value>COUCOU</value></field></x></command></iq>"), partial(expect_stanza, "/iq[@type='result']/commands:command[@node='hello'][@status='completed']/commands:note[@type='info'][text()='Hello COUCOU!']") ]), + Scenario("execute_ping_adhoc_command", + [ + handshake_sequence(), + partial(send_stanza, "<iq type='set' id='ping-command1' from='{jid_one}/{resource_one}' to='{biboumi_host}'><command xmlns='http://jabber.org/protocol/commands' node='ping' action='execute' /></iq>"), + partial(expect_stanza, "/iq[@type='result']/commands:command[@node='ping'][@status='completed']/commands:note[@type='info'][text()='Pong']") + ]), Scenario("execute_forbidden_adhoc_command", [ handshake_sequence(), |