1666 Commits
Author SHA1 Message Date
louiz’ 12feb1509e Fix a compile error with gcc 10
Fix #3431
2020-05-02 21:15:28 +02:00
louiz’ 1833946c07 Revert "Temporarily disable freebsd tests until I fix my freebsd machine"
This reverts commit 1492eed3c9.
2020-05-02 17:32:47 +02:00
louiz’ e1ef3ae5d1 ci: Always upload the test: artifacts 2020-05-02 13:49:12 +02:00
louiz’ 2ef41e1afc Add missing affiliation and role in nick change presence
Fix #3429
2020-04-19 11:49:07 +02:00
louiz’ 4ee3dd695e Demonstrate bug #3429 2020-04-19 11:41:58 +02:00
louiz’ 1492eed3c9 Temporarily disable freebsd tests until I fix my freebsd machine 2020-04-19 11:41:11 +02:00
Maxime “pep” Buquet 444a48339a Update version in doc configuration
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-03-11 18:44:10 +01: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’ 2c4ffbf25a Consider the nick change only if it is NOT a join 2020-03-11 15:27:16 +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’ a0d24b4847 add CAP_NET_BIND_SERVICE in biboumi.service to be able to bind on port 113
fix #3419
2020-03-11 14:37:03 +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’ fd98e60a1d Avoid nick changes when joining a room that was already joined
By an other resource, or anything

fix #3423
2020-03-02 23:20:54 +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’ 76b81cec55 Small trivial readability improvement 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’ 38fbca5bc0 Merge branch 'v8' 2020-02-25 23:40:16 +01:00
louiz’ f6dd3c4656 Release version 8.4 2020-02-25 23:38:20 +01:00
louiz’ c35e1aaa76 Merge branch 'v8' 2020-02-25 23:30:29 +01:00
louiz’ 4b0fb8b37e Remove all identd sockets on exit signal
fix #3420
2020-02-25 23:20:54 +01:00
louiz’ 9913518178 Add an error message for udns error DNS_E_NODATA (cherry-picked from master)
In cases where the DNS server does not respond “domain not found” but
“domain found, but no IP for that record type”, we just say “domain not
found” too (instead of nothing, previously).
2020-02-25 23:11:38 +01:00
louiz’ 5fbd900fd6 Ignore malformed identd queries
fix #3422
2020-02-25 23:07:26 +01:00
louiz’ 23f3f48b4a Only consider sockets that are in valid states as identd candidates
When an identd query happens, we check all the connected sockets for their
local and remote ports, to compare them with the query.  But we MUST only
consider the connected ones because:

- It doesn’t make sense to answer for a connection that has just been closed
- A non-connected sockets is not in a valid state for this (specifically
  here: its ::port attribute is empty)

fix #3421
2020-02-25 22:53:37 +01:00
louiz’ b18d81ae9f Fix a typo in a function name (match_pairt)
It’s totally harmless
2020-02-25 22:52:58 +01:00
Emmanuel Gil Peyrot 14fe971183 Don’t treat presence updates as MUC joins
If the user sends a directed presence to an unjoined MUC without a <x/>
element, send a presence error back instead of attempting to join it
again, as this is almost never what the user wants.

Fixes #3415.
2019-11-13 23:25:17 +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’ 0cb62d993b Rename the build directory in the e2e docker doc
To avoid conflicting with the “host” build/ directory. This way we don’t
need to remove/empty the build/ directory beforehand, etc.
2019-11-13 22:14:18 +01:00
louiz’ acc0458054 Give a little unsecure docker tip :^) 2019-11-13 22:14:18 +01:00
louiz’ 00c1c9dfb3 Doc: add a missing “cd build/” in one example 2019-11-12 00:30:14 +01:00
louiz’ 1dd0d69458 Forgot this typo… 2019-11-11 02:53:56 +01:00
louiz’ c8f47230bb Document how to run the e2e tests with docker, locally 2019-11-11 02:43:13 +01:00
louiz’ b4368aaa0d Rename the doc from developper to developer
Shame.
2019-11-11 01:17:06 +01:00
louiz’ 67cfa4ae8d Merge branch 'e2e-doc' 2019-11-09 21:06:31 +01:00
louiz’ 7f2e74c091 Add a doc describing how to write e2e tests 2019-11-09 21:06:02 +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’ 7571020243 Make is_empty work with any integral type 2019-11-06 17:47:35 +01:00
louiz’ 4484a5f8ce Remove a useless std::move() and copy 2019-11-06 17:23:43 +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’ 34b4caeccf Properly set the default values for invalid integer conf options
fix #3372
2019-11-06 17:23:35 +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’ 438b7fb803 Remove a useless “givin up” debug line 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’ cedf441281 Use the right int64 type for INTEGER rows in the db 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