e2e: Implicitely include the handshake in all tests

Instead of having to write it manually everytime
This commit is contained in:
louiz’
2019-11-09 20:50:36 +01:00
parent 1736641368
commit efb695be6b
55 changed files with 10 additions and 71 deletions
@@ -1,7 +1,6 @@
from scenarios import *
scenario = (
sequences.handshake(),
send_stanza("<presence from='{jid_one}/{resource_one}' to='#foo%doesnotexist@{biboumi_host}/{nick_one}' />"),
expect_stanza("/message/body[text()='Connecting to doesnotexist:6697 (encrypted)']"),
expect_stanza("/message/body[re:test(text(), 'Connection failed: (Domain name not found|Name or service not known)')]"),