summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-04-07 19:57:42 +0200
committerlouiz’ <louiz@louiz.org>2017-04-10 10:09:00 +0200
commitdec3e42ae32e61df4de8d58b3cea0f48b4c5d3d8 (patch)
tree2c2d555566faf30538b39e0fc948385af32c5dff /tests
parent451f28f5c41d692fad5ec04da2907691e2a5fab8 (diff)
downloadbiboumi-dec3e42ae32e61df4de8d58b3cea0f48b4c5d3d8.tar.gz
biboumi-dec3e42ae32e61df4de8d58b3cea0f48b4c5d3d8.tar.bz2
biboumi-dec3e42ae32e61df4de8d58b3cea0f48b4c5d3d8.tar.xz
biboumi-dec3e42ae32e61df4de8d58b3cea0f48b4c5d3d8.zip
Add an e2e test for the ad-hoc reload command
Diffstat (limited to 'tests')
-rw-r--r--tests/end_to_end/__main__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index d08d3ae..e9c9429 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -811,6 +811,12 @@ if __name__ == '__main__':
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_reload_adhoc_command",
+ [
+ handshake_sequence(),
+ partial(send_stanza, "<iq type='set' id='ping-command1' from='{jid_admin}/{resource_one}' to='{biboumi_host}'><command xmlns='http://jabber.org/protocol/commands' node='reload' action='execute' /></iq>"),
+ partial(expect_stanza, "/iq[@type='result']/commands:command[@node='reload'][@status='completed']/commands:note[@type='info'][text()='Configuration reloaded.']")
+ ]),
Scenario("execute_forbidden_adhoc_command",
[
handshake_sequence(),