Split all the e2e tests in their own files

Some duplication is avoided, but most importantly: it’s much much cleaner,
easier to find, functions have been cleaned up (functools.partial usages are
now hidden), etc.
This commit is contained in:
louiz’
2019-10-31 02:27:42 +01:00
parent cec396f6eb
commit bd41bc8b02
87 changed files with 2693 additions and 3096 deletions
+11
View File
@@ -0,0 +1,11 @@
from scenarios import *
scenario = (
sequences.handshake(),
send_stanza("<iq type='get' id='idwhatever' from='{jid_one}/{resource_one}' to='{biboumi_host}'><query xmlns='http://jabber.org/protocol/disco#items' node='http://jabber.org/protocol/commands' /></iq>"),
expect_stanza("/iq[@type='result']/disco_items:query[@node='http://jabber.org/protocol/commands']",
"/iq/disco_items:query/disco_items:item[@node='configure']",
"/iq/disco_items:query/disco_items:item[4]",
"!/iq/disco_items:query/disco_items:item[5]"),
)