louiz’
063e6b127e
Handle SASL failures by displaying a message and aborting the connection
2020-08-12 09:40:36 +02:00
louiz’
e4550d324f
e2e: do not fail to start if no irc database exist yet
2020-06-15 00:47:27 +02:00
louiz’
2e1ddeb654
Implement SASL plain authentication
2020-06-15 00:18:51 +02:00
louiz’
5c1f45926d
e2e: accept a regexp version of oragono, not just 2.0.0
2020-05-06 23:56:44 +02:00
louiz’
057ef25eea
Create oragono TLS certificate automatically before each e2e run
2020-05-05 21:10:46 +02:00
louiz’
a156b7514e
Remove raw_names_command e2e test
2020-05-05 21:10:46 +02:00
louiz’
91c9aa6084
Modify oragono’s conf four our tests
2020-05-05 21:10:46 +02:00
louiz’
07dbd7e7ff
Add the default oragono conf
2020-05-05 21:10:46 +02:00
louiz’
1b72faef3c
Update the tests to work with oragono
2020-05-05 21:10:46 +02:00
louiz’
81fb7389ae
Start oragono instead of charybdis
2020-05-05 21:10:46 +02:00
louiz’
eb976918f9
e2e: Switch from coroutines to async, for python3.8
2020-05-05 21:09:38 +02:00
louiz’
4ee3dd695e
Demonstrate bug #3429
2020-04-19 11:41:58 +02:00
louiz’
212e8e5989
Merge remote-tracking branch 'linkmauve/die-gc1.0-die'
2020-03-11 18:41:43 +01:00
louiz’
470ba2e4e4
Remove the part of the force-join test that checks the nick changed
...
Because we actually don’t change the nick, we ignore it, just like in the
case of a normal join (of an other resource, or an other channel on the same
server).
2020-03-11 18:14:19 +01:00
louiz’
8013bb1cfe
And modify the tests to work, by adding the <x/> node in all join presences
2020-03-11 15:27:11 +01:00
louiz’
fc22e06317
Fix a type stable-id -> stanza-id, and add a test case to be exhaustive
2020-03-11 00:32:18 +01:00
louiz’
40d2168ae5
Announce the urn:xmpp:sid:0 NS in MUC's disco#info
...
As required by XEP 0359
Should fix #3369
2020-03-11 00:19:19 +01:00
louiz’
e967088986
Make sure we keep the stable-id and origin-id nodes when required
...
See https://xmpp.org/extensions/xep-0359.html
2020-03-11 00:13:46 +01:00
louiz’
49a3931784
Add a test to check that XEP-45 stable ID thing is respected
...
See https://xmpp.org/extensions/xep-0045.html#message
2020-03-10 23:12:10 +01:00
louiz’
77c134a47b
Demonstrate issue #3423 with e2e tests
2020-03-02 23:20:47 +01:00
louiz’
3584979cc2
e2e: fix the timeout code for expect_unordered
2020-03-02 23:20:47 +01:00
louiz’
f06fac2a13
Rename the e2e nicks to make things easier to debug
2020-03-02 23:20:47 +01:00
louiz’
440e04c6ba
e2e: Add a 10s timeout for expect_stanza
...
Otherwise, if we expect a stanza and biboumi never sends it, we just hang
here.
Now, we display a nice error after 10 seconds, and move on to the next test,
as other failures (xpath doesn’t match) do
2019-11-13 23:23:13 +01:00
louiz’
efb695be6b
e2e: Implicitely include the handshake in all tests
...
Instead of having to write it manually everytime
2019-11-09 20:50:36 +01:00
louiz’
1736641368
Clean the __main__ file of the e2e tests
...
I forgot to remove some things when I moved them into functions.py
2019-11-09 20:50:22 +01:00
louiz’
e4a4addaf8
Add a missing max_history_length field in the IRC server option form
2019-11-06 17:23:43 +01:00
louiz’
752cb86d8a
e2e: Test the behaviour on bad integer value for ad-hoc confs
2019-11-06 17:22:38 +01:00
louiz’
7ca1b33ae3
Add a test for MAM without an “end” value
2019-11-06 17:22:38 +01:00
louiz’
bd41bc8b02
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.
2019-10-31 02:27:42 +01:00
louiz’
7291f9c504
Remove a duplicate e2e test
2019-09-23 22:47:41 +02:00
louiz’
ba2d961ff0
Add tests for non anonymous rooms
...
See #3390
2019-09-23 22:41:34 +02:00
louiz’
cbfb562903
Expect a 210 code in the "change nick on join" e2e test
2019-09-22 15:54:13 +02:00
louiz’
55e53852d7
Update the e2e test to work with latest slixmpp
2019-09-18 12:26:38 +02:00
louiz’
11d0262a7a
Update the tests to reflect the next->complete change
2019-09-14 11:50:21 +02:00
louiz’
d6460e2828
Add a test for outgoing /me messages that confirms issue #3382
2019-08-25 21:58:07 +02:00
Jonas Schäfer
a8ce138dd2
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
implementations.
2019-08-20 21:42:43 +02:00
Jonas Schäfer
b68f36056d
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 .
2019-08-20 21:42:43 +02:00
Jonas Schäfer
3621458d3f
Do not send the IRC host directly as real JID of the user
...
Fixes #3381
2018-10-04 20:16:17 +02:00
louiz’
08085d862f
Add a test demonstrating #3378
2018-09-17 22:35:59 +02:00
louiz’
e43885c47d
Flush stdout between each e2e test
2018-08-26 19:06:24 +02:00
louiz’
7d0df9b6dd
Disable the throttle limit if negative
...
Also, invalid values result in -1 being set
2018-08-23 22:18:49 +02:00
louiz’
6c21edc1b8
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.
2018-07-27 22:19:54 +02:00
louiz’
3782fc9ca4
Add two more sleeps, for the same reason
2018-07-25 14:43:10 +02:00
louiz’
96b1e0ab39
Disable the throttling for two tests that are very very long
2018-07-25 14:12:00 +02:00
louiz’
20f36df05f
Add a timer for each e2e test
2018-07-25 14:11:49 +02:00
louiz’
3b96b2e0b1
Add a sleep in a e2e test
...
Reasons explained in the comment in the code
2018-07-25 13:52:52 +02:00
louiz’
780eea53e7
Trivially improve a e2e test
2018-07-24 23:25:30 +02:00
louiz’
09b10cc801
Throttle all commands sent to IRC servers
...
fix #3354
2018-06-25 22:54:32 +02:00
louiz’
21a79b7bad
Reject messages from unjoined resources, with an error
...
fix #3346
2018-06-19 21:33:33 +02:00
louiz’
2f0e26db4c
Channels’ disco#info includes the number of participants
...
fix #3311
2018-06-17 15:16:49 +02:00