louiz’
d2f4235ebf
Replace : with _ in the codecov flag
2017-03-07 09:12:46 +01:00
louiz’
a834a8dad5
Use CI_BUILD_NAME as the codecov tag
2017-03-07 03:17:13 +01:00
louiz’
470fdaf8bd
ci: Use the build:7 artifacts for test:without_udns
2017-03-07 02:58:07 +01:00
louiz’
3316218145
ci: Run a e2e test without udns (and upload to codecov)
2017-03-07 02:48:39 +01:00
louiz’
f4ffbcabc8
e2e: Make the tests work without udns too
2017-03-07 02:48:20 +01:00
louiz’
d9811320e2
Do not pass the build artifacts to packaging:deb job
2017-03-07 01:47:58 +01:00
louiz’
03d608e9a7
Improve the make coverage_* commands
2017-03-07 01:26:12 +01:00
louiz’
cf2d4fb6a2
ci: refactor, comments, use the artifacts from a stage to the next
2017-03-07 01:26:12 +01:00
louiz’
11c63ebceb
Add the gcrypt dependency to the biboumi-test docker images
2017-03-06 01:22:51 +01:00
louiz’
99a4ddedaf
Remove the embedded sha1 code, and use one of botan or gcrypt
...
This adds a hard dependency on one of Botan or gcrypt. Botan is already a
recommended dependency, and gcrypt is probably packaged almost everywhere,
so this should not be a big deal.
ref #3241
2017-03-06 00:57:33 +01:00
louiz’
d81c3ad5ac
Fix the order of from and to address in muc traffic info reply
...
And add a test for it.
fix #3238
2017-03-04 14:03:08 +01:00
louiz’
e6e37a6f20
Don’t wrap the lines in docker/README.md
2017-03-01 14:14:39 +01:00
louiz’
ecdf18dfc6
ci: remove packaging:docker
2017-02-28 23:57:13 +01:00
louiz’
ea0151165a
Use markdown for the docker readme
2017-02-28 23:54:02 +01:00
louiz’
90b3c07b6c
Revert "Split the biboumi dockerfile into two, to be able to disable the cache"
...
This reverts commit 26eb28dc23 .
2017-02-28 23:46:55 +01:00
louiz’
58b3345f85
e2e: Add an outgoing_bind= conf option
2017-02-28 23:35:23 +01:00
louiz’
fa3d44e7aa
Use AI_NUMERICHOST when using getaddrinfo to bind() our client sockets
2017-02-28 23:34:11 +01:00
louiz’
73915e889d
Remove the sonar-qube build
...
[ci skip]
2017-02-28 23:48:38 +01:00
louiz’
c716379110
Add a test for the ad-hoc command disconnect-from-irc-server
2017-02-28 23:09:10 +01:00
louiz’
9a4b5d96ce
Also test the channel config on a fixed_irc_server instance
2017-02-28 22:04:20 +01:00
louiz’
26eb28dc23
Split the biboumi dockerfile into two, to be able to disable the cache
2017-02-28 19:39:09 +01:00
louiz’
dcb48c5a20
Add a irc channel ad-hoc configure test
2017-02-28 18:24:51 +01:00
louiz’
d81cbc4a33
Use uname() instead of CMAKE_SYSTEM
...
fix #3235
2017-02-27 18:01:20 +01:00
louiz’
9f978cda94
docker: fix the SECRET->PASSWORD in entrypoint.sh
2017-02-17 22:59:16 +01:00
louiz’
27d847711c
docker: Add the XMPP_SERVER_IP option, and document the --network=host usage
2017-02-17 14:58:23 +01:00
louiz’
f90969e1a1
docker: Properly handle and document the /var/lib/biboumi directory
2017-02-17 22:57:30 +01:00
louiz’
a03fd18d0a
ci: remove all mention of docker.io in packaging:docker
2017-02-17 20:27:26 +01:00
louiz’
384f3591e7
ci: Empty the before_script for the packaging:docker job
2017-02-17 10:51:44 +01:00
louiz’
724b7bf8e9
ci: Add a packaging:docker job that builds and push to the image docker.io
2017-02-17 18:32:55 +01:00
louiz’
6c35f49dd8
Add a biboumi Dockerfile
2017-02-17 18:25:49 +01:00
louiz’
679bf94192
Only call freeaddrinfo if an actual addrinfo struct has been allocated
2017-02-15 01:46:29 +01:00
louiz’
efb8a11c57
Add missing include
2017-02-15 01:27:45 +01:00
louiz’
561bbe9c14
Fix a leak on getaddrinfo, thank you LeakSanitizer!
2017-02-15 01:19:36 +01:00
louiz’
fef585ad66
Surround ipv6 with [], and properly cleanup otherwise invalid domains
...
fix #2694 (yeah, it was closed, but it was badly fixed)
2017-02-15 01:07:32 +01:00
louiz’
7f08cf83aa
Little scopeguard cleanup, and add a test
2017-02-15 01:07:32 +01:00
louiz’
fa6635e548
Add a e2e test for the previous 2 commits
...
ref #3231
2017-02-13 10:24:16 +01:00
louiz’
3a288340df
Fix the previous commit
...
fix #3231
2017-02-13 10:21:25 +01:00
louiz’
8b2f748b1d
Do not send a not-connected error, on "unavailable" presences
...
fix #3231
2017-02-13 10:00:49 +01:00
louiz’
5ae33d6b9e
e2e: add tests for the linger time option
2017-02-12 16:50:47 +01:00
louiz’
70014a7f66
ci: run apt update before apt install in packaging:deb
2017-02-12 15:23:41 +01:00
louiz’
7d41577bc4
The form fields in the Configure ad-hoc commands are not required
2017-02-12 15:11:13 +01:00
louiz’
4ec2e1f794
ci: packaging:deb try move the build artifacts into the build directory
2017-02-01 21:27:29 +01:00
louiz’
9ce29fa76c
ci: packaging:deb, build for debian branch, include built .deb file
2017-02-01 21:16:40 +01:00
louiz’
f197e30398
ci: in packaging:deb, override the before_script
2017-02-01 20:53:27 +01:00
louiz’
e2da6fcddd
Properly destroy the dns_handler socket when first start fails
...
To correctly exit the process
2017-02-01 20:52:50 +01:00
louiz’
835c650ef5
Actually, just use the C locale for the date formats
...
We don’t need any UTF-8 support here, and it’s more portable
2017-02-01 20:33:16 +01:00
louiz’
479b718993
Only use the C.UTF-8 LANG value
2017-02-01 18:37:51 +01:00
louiz’
5eb5e9e0af
ci: add a packaging:debian job, based on the debian branch
2017-02-01 18:16:27 +01:00
louiz’
a5d35c2455
Add some missing ifndef for udns
2017-01-31 23:47:45 +01:00
louiz’
45f7396c8d
Cancel the IRC server linger timer when we try to-rejoin a channel on it
2017-01-25 19:55:45 +01:00
louiz’
b660a47367
grammar: than <-> as
2017-01-22 21:32:37 +01:00
louiz’
5d801ddcd0
Add a linger_time configuration option on IRC servers
2017-01-22 21:31:50 +01:00
louiz’
dd12936657
Do not require revocation info for a certificate to be valid
...
If anyone has any reason to believe this is a bad idea, please let me know.
2017-01-19 18:41:29 +01:00
louiz’
3699463e2a
Refactor and split the Dockerfiles, to build a base without litesql
2017-01-17 23:42:02 +01:00
louiz’
81b21bfc26
Update INSTALL.rst to talk about botan-2, and give priority to 2 over 1.11
2017-01-10 23:27:01 +01:00
louiz’
5e33b6184a
Look for botan-2 in addition to botan-1.11
2017-01-10 23:02:24 +01:00
louiz’
3ae4937fb4
Add missing <algorithm> include for last commit
2017-01-10 00:21:15 +01:00
louiz’
6ececd9f39
Only try to join chans only once, even if we received multiple presences
...
ref #3228
2017-01-10 00:18:59 +01:00
louiz’
e31ff3e9e9
Fix some issues found by sonar cube
2017-01-06 23:45:26 +01:00
louiz’
6bf9cedbeb
Add a missing errno include
2017-01-06 23:13:47 +01:00
louiz’
17411e6b44
Fix an use-after-free
...
Because we “delete all node” and then we use the content of one of these
nodes we got earlier.
2017-01-06 23:09:17 +01:00
louiz’
5b56007828
Use udns instead of c-ares
...
fix #3226
2017-01-06 22:58:18 +01:00
louiz’
eecb95352e
Add libasan and libubsan in the test docker images
2017-01-04 01:53:53 +01:00
louiz’
493b0d1754
Remove the PrintBuildParameter make target
2017-01-04 01:46:38 +01:00
louiz’
3cd0f7bbc0
Use fsanitize=address and undefined in debug builds if ubsan and asan are there
2017-01-04 01:44:46 +01:00
louiz’
57e4f2a89f
The “build” badge links to a more useful URL
2017-01-04 01:22:10 +01:00
louiz’
16feed7e9e
Update the DockerFiles to include openssl
2016-12-24 16:20:50 +01:00
louiz’
94f7a18c01
Update the doc to avoid using “” or "" and other chars
2016-12-24 16:20:50 +01:00
louiz’
37200bc61e
CI: Use our own registry for docker images
2016-12-24 00:49:20 +01:00
louiz’
e397fc837e
Send iq error/result when the user changed a MODE command with an iq
...
And add tests for all the mode changes
2016-12-18 17:21:15 +01:00
louiz’
36a9eb0e00
Use the codecov badge instead of the gitlab coverage one
...
[skip-ci]
2016-12-14 22:54:01 +01:00
louiz’
452bf1756b
Test the TLS connection
2016-12-14 19:52:51 +01:00
louiz’
5a5bb7f632
Introduce a XmlSubNode class that automatically adds itself into its parent
2016-12-14 18:28:44 +01:00
louiz’
f512c9c666
e2e: test connection failure
2016-12-14 18:20:57 +01:00
louiz’
ca86189412
Include the <text/> element in stanza error when there IS a text
2016-12-13 23:57:19 +01:00
louiz’
6b245ee64a
Switch back to using std::cout instead of std::clog
2016-12-13 23:37:43 +01:00
louiz’
810c4343c7
Remove the useless nullptr argument for the XmlNode constructor
2016-12-13 23:01:32 +01:00
louiz’
4792c70635
Send a presence error from the room, when receiving command ERR_BADCHANNELKEY
...
fix #2886
2016-12-13 14:48:41 +01:00
louiz’
2e4a9fe4c7
Include the optional <text/> node in the send_presence_error
2016-12-13 22:47:19 +01:00
louiz’
35e1155232
Remove a line from a WIP that should not have been added
2016-12-12 00:43:39 +01:00
louiz’
59a73c93ec
Do not send an “not-implemented” error when receiving an iq error
2016-12-12 00:39:56 +01:00
louiz’
c65ae47549
Auto accept presence subscription
2016-12-12 00:39:03 +01:00
louiz’
e45902ba26
ci: make it two uploads and flag them (e2e, and test_suite)
2016-12-11 21:47:02 +01:00
louiz’
8bae00716e
ci: upload our own total_coverage.info to codecov
...
Is a lot faster, and is more consistent
2016-12-11 21:36:00 +01:00
louiz’
fc50888074
Run codecov upload from the root directory
2016-12-11 17:18:55 +01:00
louiz’
eca31ce8db
Do not change the nick when joining a second room with a different nick
...
As the doc says, the nick changes must be explicit in an already joined
room, and not when joining a room.
2016-12-11 17:05:52 +01:00
louiz’
f653906f9d
Add a None type for the Iid class (when the iid is completely empty)
2016-12-11 16:34:38 +01:00
louiz’
36252ad217
ci: sonar-qube upload is allowed to fail
2016-12-11 13:51:11 +01:00
louiz’
b4223288ca
Add a codecov.yml file to ignore the tests/ directory
2016-12-10 20:12:05 +01:00
louiz’
4860201d8c
Add a make coverage target to merge all other coverages, and upload to codecov
2016-12-10 20:11:30 +01:00
louiz’
3961df3d54
ci: Do not try to gem install coveralls-lcov
2016-12-10 17:06:53 +01:00
louiz’
45e8de8e00
Upload the coverage results to coveralls
2016-12-10 15:48:41 +01:00
louiz’
10c126a286
Do not remove the .info generated by lcov
2016-12-10 15:40:56 +01:00
louiz’
379fe026fb
Properly convert the data into a number of seconds by using duration_cast
2016-12-10 04:15:49 +01:00
louiz’
f9c31cb129
The logger writes to std::clog
2016-12-10 03:59:26 +01:00
louiz’
4cc3dc03fc
The config module doesn’t use the logger at all
2016-12-10 03:59:00 +01:00
louiz’
e63f79169b
Use an other implementation of a null_stream for the logger
2016-12-09 01:34:46 +01:00
louiz’
0a45b09665
e2e: remove the log_message step, because it causes race conditions
...
After printing the message, it calls “call_soon(run_scenario)”, and
sometimes, if a stanza handler has already been queued, then that handler
will be called BEFORE the “run_scenario” function could be run, and so no
stanza_checker had the possibility to be set.
2016-12-09 00:50:16 +01:00
louiz’
e1e740e35e
Don’t use global static members but functions that return a reference to an internal static object
...
See https://github.com/randombit/botan/issues/761
2016-12-08 21:26:42 +01:00
louiz’
7f2eb60737
Init some members of TcpClientSocketHandler
2016-12-08 18:41:12 +01:00