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

scenario = (
    sequences.handshake(),
    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"),
)