ref: 10d683354b739ae2567c7898ae11479413dc475a biboumi/tests/end_to_end/__main__.py -rw-r--r-- 12.0 KiB
3584979c — louiz’ 2 years ago
e2e: fix the timeout code for expect_unordered
440e04c6 — louiz’ 3 years ago
e2e: Add a 10s timeout for expect_stanza

Otherwise, if we expect a stanza and biboumi never sends it, we just hang

Now, we display a nice error after 10 seconds, and move on to the next test,
as other failures (xpath doesn’t match) do
efb695be — louiz’ 3 years ago
e2e: Implicitely include the handshake in all tests

Instead of having to write it manually everytime
17366413 — louiz’ 3 years ago
Clean the __main__ file of the e2e tests

I forgot to remove some things when I moved them into functions.py
bd41bc8b — louiz’ 3 years ago
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.
7291f9c5 — louiz’ 3 years ago
Remove a duplicate e2e test
ba2d961f — louiz’ 3 years ago
Add tests for non anonymous rooms

See #3390
cbfb5629 — louiz’ 3 years ago
Expect a 210 code in the "change nick on join" e2e test
55e53852 — louiz’ 3 years ago
Update the e2e test to work with latest slixmpp
11d0262a — louiz’ 3 years ago
Update the tests to reflect the next->complete change
d6460e28 — louiz’ 3 years ago
Add a test for outgoing /me messages that confirms issue #3382
a8ce138d — Jonas Schäfer 3 years ago
XEP-0410: set not-in-the-room error condition to not-acceptable

XEP-0410 demands that. This changes the error condition for all
pings to the room, even those which aren’t self-pings, if the
sender is not joined.

The conditions of XEP-0410 were based on observing existing
b68f3605 — Jonas Schäfer 3 years ago
XEP-0410: implement server-side optimisation for self-pings

This prevents the ping from round-tripping through IRC and
possibly a random other client of the user. Please see XEP-0410
for the rationale.

Fixes #3385.
3621458d — Jonas Schäfer 4 years ago
Do not send the IRC host directly as real JID of the user

Fixes #3381
08085d86 — louiz’ 4 years ago
Add a test demonstrating #3378
e43885c4 — louiz’ 4 years ago
Flush stdout between each e2e test
7d0df9b6 — louiz’ 4 years ago
Disable the throttle limit if negative

Also, invalid values result in -1 being set
6c21edc1 — louiz’ 4 years ago
Fix a few e2e tests that could fail due to race condition

The order of the messages received can be different, if the IRC server
decides so, or lags, or something.
3782fc9c — louiz’ 4 years ago
Add two more sleeps, for the same reason
96b1e0ab — louiz’ 4 years ago
Disable the throttling for two tests that are very very long