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’
4a583c7b7e
Trivial move of a variable in a smaller “ifndef” scope
2018-08-23 18:54:16 +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
louiz’
5ff3696d6f
Merge branch 'v8'
2018-06-01 12:49:33 +02:00
louiz’
760076a33a
Make the global ad-hoc configure command available in fixed mode
...
fix #3360
2018-06-01 12:44:40 +02:00
louiz’
28d79a9eaa
Merge branch 'v8'
2018-05-15 19:58:03 +02:00
louiz’
861f55ed83
Add a e2e test for a raw NAMES command
2018-05-15 19:48:50 +02:00
louiz’
ba61d20340
Empty the <command/> nodes before reusing them in our responses
...
fix #3356
2018-05-14 22:07:29 +02:00
louiz’
678f5d079b
Add a test for the <max>0</max> MAM query
2018-04-29 23:25:53 +02:00
louiz’
b0168fd45b
mam: Send “fin complete” only when appropriate
...
Also simplify how we did the whole “limit + 1”
And fix one bad interpretation of the XEP for the case where the query has
no after or before restriction.
fix #3349
2018-04-29 22:18:26 +02:00
louiz’
7592d966e6
Missing fields in a data-form response are now interpreted as an empty value
2018-04-29 01:40:46 +02:00
louiz’
61de6b1dac
Revert "Use a different Date data type"
...
This reverts commit 857c7d3972 .
2018-04-24 20:25:40 +02:00
louiz’
4bd7b6981b
Refactor that fixes a compilation issue in Release mode
...
Some template specialization were not found, because they were not declared
at the point they were used.
We moved things around, things are less inter-dependant, and also now it
works.
2018-04-13 23:35:06 +02:00
louiz’
857c7d3972
Use a different Date data type
...
PLEASE backup your database before testing this commit, and report any
migration issue.
In postgresql, we use timestamp with timezone.
In sqlite3 we use REAL (the date is expressed as julianday)
This requires a migration of the muclogline_ table:
In postgresql it’s pretty simple, we convert all the integer into timestamps
With sqlite3, we actually rename the table, create the new one with the
correct type, then copy everything to the new table, with a conversion
function for the Date_ column, and then we delete the old table.
fix #3343
2018-04-11 00:25:18 +02:00
louiz’
0cd848e532
Send the stanza-id for messages received by other users
...
fix #3347
2018-03-31 02:10:39 +02:00
louiz’
99c364892a
Fix the e2e test broken by previous commit
2018-03-26 22:34:48 +02:00
louiz’
d81a9456ac
Change the nick of the joining user AFTER sending all the join stuff
...
fix #3305
2018-03-23 21:18:52 +01:00
louiz’
e2fc3cf68e
Properly handle force-join presences by sending everything in return
...
fix #3305
2018-03-23 16:16:30 +01:00
louiz’
619c991a69
Add a nick field in the IRC server configuration form
...
fix #3317
2018-03-19 20:15:44 +01:00
louiz’
1320dc6db4
Don’t reflect an empty id if it was not included
...
Instead, generate a uuid for that message
2018-03-18 19:41:52 +01:00
louiz’
9500bfd4cc
Reflect message IDs in channel MUCs
...
fix #3283
2018-03-18 19:33:07 +01:00
louiz’
68e1480075
Add a multiline_message e2e test
2018-03-18 13:55:35 +01:00
louiz’
c8e96fc31b
Add some missing include
2018-03-18 02:35:07 +01:00
louiz’
577984faf2
Allow the execution of multiple commands after the IRC connection
...
fix #3275
2018-03-18 02:31:18 +01:00
louiz’
03714c6ceb
Revert "Use std::optional<bool> instead of OptionalBool"
...
This reverts commit ba879a882e .
2018-03-17 17:28:47 +01:00