summaryrefslogtreecommitdiff
path: root/tests/end_to_end/scenarios/execute_forbidden_adhoc_command.py
blob: 10c98ab46f6c57c642007afaf1b5c03251597fc6 (plain)
1
2
3
4
5
6
7
from scenarios import *

scenario = (
    send_stanza("<iq type='set' id='command1' from='{jid_one}/{resource_one}' to='{biboumi_host}'><command xmlns='http://jabber.org/protocol/commands' node='disconnect-user' action='execute' /></iq>"),
    expect_stanza("/iq[@type='error'][@id='command1']/commands:command[@node='disconnect-user']",
                  "/iq/commands:command/commands:error[@type='cancel']/stanza:forbidden"),
)