Add an execute_incomplete_hello_adhoc_command e2e test
This commit is contained in:
@@ -857,11 +857,22 @@ if __name__ == '__main__':
|
||||
"/iq/commands:command/commands:actions/commands:next",
|
||||
),
|
||||
after = partial(save_value, "sessionid", partial(extract_attribute, "/iq[@type='result']/commands:command[@node='hello']", "sessionid"))
|
||||
|
||||
),
|
||||
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_incomplete_hello_adhoc_command",
|
||||
[
|
||||
handshake_sequence(),
|
||||
partial(send_stanza, "<iq type='set' id='hello-command1' from='{jid_one}/{resource_one}' to='{biboumi_host}'><command xmlns='http://jabber.org/protocol/commands' node='hello' action='execute' /></iq>"),
|
||||
partial(expect_stanza, ("/iq[@type='result']/commands:command[@node='hello'][@sessionid][@status='executing']",
|
||||
"/iq/commands:command/commands:actions/commands:next",
|
||||
),
|
||||
after = partial(save_value, "sessionid", partial(extract_attribute, "/iq[@type='result']/commands:command[@node='hello']", "sessionid"))
|
||||
),
|
||||
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'></x></command></iq>"),
|
||||
partial(expect_stanza, "/iq[@type='error']")
|
||||
]),
|
||||
Scenario("execute_ping_adhoc_command",
|
||||
[
|
||||
handshake_sequence(),
|
||||
|
||||
Reference in New Issue
Block a user