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
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
louiz’
cec396f6eb
ci: only run build:freebsd on louiz’ repository
2019-10-10 23:57:04 +02:00
louiz’
05ba076a0e
Use return {...} instead of make_tuple
2019-09-27 20:57:30 +02:00
louiz’
06abd6e69a
Add a missing "virtual", and remove a trivial "private" redundancy
2019-09-27 20:57:30 +02:00
louiz’
d839792f60
Add the svg logo
2019-09-26 17:46:51 +02:00
louiz’
7291f9c504
Remove a duplicate e2e test
2019-09-23 22:47:41 +02:00
louiz’
61757e4822
Mark all rooms as non-anonymous
...
close #3390
2019-09-23 22:47:20 +02:00
louiz’
ba2d961ff0
Add tests for non anonymous rooms
...
See #3390
2019-09-23 22:41:34 +02:00
louiz’
3339ce2cc0
Trivial little naming changes
2019-09-23 22:17:27 +02:00
louiz’
b7b54d8f0e
Trivial cleanup
2019-09-23 22:08:48 +02:00
louiz’
7c660c3f39
Add a missing pragma once
2019-09-23 22:08:36 +02:00
louiz’
6ab064d04d
USe safer functions, gmtime_r and localtime_r
2019-09-23 22:07:57 +02:00
louiz’
89bb886a1b
Always add a 210 status in our self join presence
...
Because it's much much simpler than to track if we changed the nick that
was requested in the join request. And client will probably not get confused,
I hope.
2019-09-22 15:54:13 +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’
016ee7121e
rpm: force sphinx-build-3 binary to be used
2019-09-19 23:25:42 +02:00
louiz’
1ad4470567
ci: alpine image, create the tls key with the correct user and permissions
2019-09-19 23:06:07 +02:00
louiz’
55e53852d7
Update the e2e test to work with latest slixmpp
2019-09-18 12:26:38 +02:00
louiz’
cd5f7f5cd1
ci: remove the packaging:deb job
...
Too hard to maintain...
2019-09-17 17:21:42 +02:00
louiz’
b5f7e599e0
Update the images and .spec to use sphinx instead of pandoc
2019-09-17 17:20:46 +02:00
louiz’
2f0078ebfc
Fix the argument list for SETUP_TARGET_FOR_COVERAGE cmake function
2019-09-17 12:43:14 +02:00
louiz’
0508a44897
ci: Add a junit output to test_suite and give it to gitlab
2019-09-17 11:26:12 +02:00
louiz’
26d9445029
ci: Remove the doc:deploy:mr job because gitlab is too broken
...
Nobody would use that, anyway.
2019-09-16 22:54:39 +02:00
louiz’
b085df4018
ci: simplify freebsd test, also add “needs”
2019-09-15 22:36:27 +02:00
louiz’
5ea0f8c7db
ci: do not trigger the archlinux job on louiz’ branches, only schedules
2019-09-15 22:33:11 +02:00
louiz’
14fc9c04c3
ci: explicitely set the freebsd compiler to clang++
2019-09-15 22:32:10 +02:00
louiz’
9e950158dc
ci: make the archlinux build on schedules only
2019-09-15 22:27:02 +02:00
louiz’
4abc357ecc
Ci: split freebsd into build+test
2019-09-15 22:26:55 +02:00
louiz’
2ad098de92
Properly build and install the man page, also in the rpm
2019-09-15 21:45:06 +02:00
louiz’
db3c5f4bc4
ci: Add a job to deploy the doc for MRs
2019-09-15 21:41:39 +02:00
louiz’
f16a9882f2
ci: Rename deploy jobs
2019-09-15 21:41:39 +02:00
louiz’
db24caad3d
ci: only run the build and test jobs if sources changed
2019-09-15 21:41:39 +02:00
louiz’
c392d7127f
ci: use the "extends" key instead of the ugly anchor syntax
2019-09-15 21:41:39 +02:00
louiz’
9ed6442fc1
ci: Add "needs" in the test stage
2019-09-15 21:41:39 +02:00
louiz’
dc6dc28c5f
ci: Only run the archlinux test on triggers
2019-09-15 21:41:39 +02:00
louiz’
11d0262a7a
Update the tests to reflect the next->complete change
2019-09-14 11:50:21 +02:00
louiz’
c13f3005e6
Use a “complete” action for the last step of ad-hoc commands instead of next
2019-09-14 11:50:21 +02:00
louiz’
f1936fdd08
Actually fix that correctly instead of the opposite
2019-09-09 22:04:54 +02:00
louiz’
8a6d053be9
Remove trailing / of fulljids if IRC host is missing
2019-09-09 12:27:27 +02:00
louiz’
8ac2645b02
Fix a few dates in the spec file
2019-09-09 12:25:57 +02:00
louiz’
6e30f0c194
Add an error message for udns error DNS_E_NODATA
...
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).
2019-08-30 11:40:42 +02:00
louiz’
224eb9223f
Properly re-convert \01ACTION into a /me when reflected to the sender
...
fix #3382
It still needs to be fixed properly by cleaning the way we send the messages
in all direction etc. And this is ugly because, with just one message, we do
a conversion in one direction, and then re-convert in the other
direction. But at least it works and users will be happy, even if I’m not
entirely satisfied with the code.
2019-08-25 21:58:07 +02:00
louiz’
d6460e2828
Add a test for outgoing /me messages that confirms issue #3382
2019-08-25 21:58:07 +02:00
louiz’
0deeaa7aaf
Only deploy the doc from the master branch
2019-08-25 21:58:07 +02:00
louiz’
a8cd241485
Disable systemd’s watchdog by default
2019-08-04 04:55:33 +02:00
louiz’
ce7b8395d0
Add an error message on DNS resolution failure for IPv6 only
2019-07-29 23:14:47 +02:00
louiz’
f831978abf
Only run the freebsd tests on louiz’ repository
...
For “security” reason, the freebsd runner is not accessible for anyone else,
so it just yields an error when it tries to run. With this change, it is
just not run.
2018-10-03 20:29:30 +02:00
louiz’
bf97478b89
Add a job to deploy and undeploy the doc for tags
...
fix #3377
2018-09-19 17:12:51 +02:00
louiz’
6dbac489b7
Only save the coverage artifacts in the actual coverage job
2018-09-17 22:58:48 +02:00
louiz’
88fe1783bf
Do not change our nick if we send a presence to a non-joined channel
...
fix #3378
2018-09-17 22:36:59 +02:00
louiz’
08085d862f
Add a test demonstrating #3378
2018-09-17 22:35:59 +02:00
louiz’
eb082d152d
Revert "Use alpine's botan package in the docker image"
...
This reverts commit 57889718f1 .
2018-09-12 15:31:27 +02:00
louiz’
57889718f1
Use alpine's botan package in the docker image
2018-09-11 11:41:49 +02:00
louiz’
cd20177429
Remove the example values for hostname and password
2018-09-03 22:58:04 +02:00
louiz’
e249672fa5
Remove one of the two example conf, because one is enough
2018-09-03 22:45:48 +02:00
louiz’
28acbed948
Change the doc files listed in the spec file
2018-09-03 22:26:10 +02:00
louiz’
e75b551a52
Add the contributing.rst doc in the index
2018-09-01 23:12:39 +02:00
louiz’
b9fab4aafb
Fix a few things (formatting, wrong page, etc) in the doc
2018-09-01 23:07:26 +02:00
louiz’
67ed7b59af
Add the homepage URL in the doc, and reformat a few paragraphs
2018-08-30 16:52:47 +02:00
louiz’
23e6c7f8c8
Add an environment for the doc
2018-08-29 22:35:50 +02:00
louiz’
c70b97d761
Use sphinx instead of pandoc, and add a deploy job
2018-08-29 22:10:25 +02:00
louiz’
d421ebd788
Use git_strategy: clone for the freebsd job
2018-08-27 10:23:18 +02:00
louiz’
e43885c47d
Flush stdout between each e2e test
2018-08-26 19:06:24 +02:00
louiz’
793831539a
test:alpine depends on build:alpine, not debian
2018-08-26 18:55:48 +02:00
louiz’
7f50a3c3d2
Run the test_suite in the test phase, and do the coverage only on fedora
2018-08-26 18:13:48 +02:00
louiz’
b9f6fbd840
Remove an unused function (and a useless debug log)
2018-08-26 18:08:14 +02:00
louiz’
21f69cf068
Remove the coverity job entirely
2018-08-26 18:07:55 +02:00