summaryrefslogtreecommitdiff
path: root/tests/end_to_end
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-05-14 22:03:26 +0200
committerlouiz’ <louiz@louiz.org>2018-05-14 22:07:29 +0200
commitba61d2034058818fe76cef6b23f311259d37b3fe (patch)
treea7a86d887584e6338edda7230a20c84711b1de55 /tests/end_to_end
parented36c26598892c60c6d2c9a096f536cc1f4705cc (diff)
downloadbiboumi-ba61d2034058818fe76cef6b23f311259d37b3fe.tar.gz
biboumi-ba61d2034058818fe76cef6b23f311259d37b3fe.tar.bz2
biboumi-ba61d2034058818fe76cef6b23f311259d37b3fe.tar.xz
biboumi-ba61d2034058818fe76cef6b23f311259d37b3fe.zip
Empty the <command/> nodes before reusing them in our responses
fix #3356
Diffstat (limited to 'tests/end_to_end')
-rw-r--r--tests/end_to_end/__main__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index a7a6a91..fe4587e 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -2907,11 +2907,12 @@ if __name__ == '__main__':
Scenario("irc_channel_configure",
[
handshake_sequence(),
- partial(send_stanza, "<iq type='set' id='id1' from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}'><command xmlns='http://jabber.org/protocol/commands' node='configure' action='execute' /></iq>"),
+ partial(send_stanza, "<iq type='set' id='id1' from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}'><command xmlns='http://jabber.org/protocol/commands' node='configure' action='execute'><dummy/></command></iq>"),
partial(expect_stanza, ("/iq[@type='result']/commands:command[@node='configure'][@sessionid][@status='executing']",
"/iq/commands:command/dataform:x[@type='form']/dataform:field[@type='text-single'][@var='encoding_in']",
"/iq/commands:command/dataform:x[@type='form']/dataform:field[@type='text-single'][@var='encoding_out']",
"/iq/commands:command/dataform:x[@type='form']/dataform:field[@type='list-single'][@var='record_history']/dataform:value[text()='unset']",
+ "!/iq/commands:command/commands:dummy",
),
after = partial(save_value, "sessionid", partial(extract_attribute, "/iq[@type='result']/commands:command[@node='configure']", "sessionid"))
),