Commit Graph
100 Commits
Author SHA1 Message Date
louiz’ cf9104e3e2 Update the changelog by adding (all?) the changes in 3.0 2016-07-28 11:46:24 +02:00
louiz’ d46e0a9196 Mark some more cmake variables as advanced 2016-07-28 11:12:27 +02:00
louiz’ 0d1e0629e7 Fix the timeout test, now that we don't wait 1ms too much everytime 2016-07-28 10:47:44 +02:00
louiz’ 5c78692fcd Do not add 1ms to the timeout of our poller
Can’t remember why I did this, but that must be a stupid reason. Everything
must work even with a timeout of 0.
2016-07-28 10:35:12 +02:00
louiz’ 11a1c0cc99 Always remove all the DNS sockets on an c-ares event
Because c-ares may close one of its socket, even if it’s not the one that
has the event. Otherwise we may not know when a socket has been removed from
our poller (automatically, when close()ed) and this leads to bugs.
2016-07-28 10:34:01 +02:00
louiz’ de0eff6e94 Revert "Don’t use unique_ptr to store dns socket handlers"
This reverts commit 5328d0806f.
2016-07-27 10:04:15 +02:00
louiz’ c7e4fc1386 Test the resolving of multiple hostnames at the same time 2016-07-25 14:59:25 +02:00
louiz’ db503b23e8 Use log_error instead of cerr 2016-07-24 20:03:34 +02:00
louiz’ 7cc05ab496 Refactor the CI file, build many configurations 2016-07-23 11:29:40 +02:00
louiz’ 24824a5015 In reload.cpp, only build the database things if litesql is used 2016-07-18 09:53:15 +02:00
louiz’ c6cfa69cdc Always build the artifacts 2016-07-18 09:53:01 +02:00
louiz’ 8ded8cd33e Properly use the docstring variables 2016-07-12 11:59:27 +02:00
louiz’ 2307f94e5b Clean the list of options visible in non-advanced ccmake 2016-07-12 11:57:01 +02:00
louiz’ f212b47830 Use an ugly way, because SOURCES property does not work in cmake 3.0 2016-07-12 11:39:27 +02:00
louiz’ fa42d0c178 Bring back DNSSocketHandler's destructor 2016-07-12 11:25:38 +02:00
louiz’ b0d60c0c1a Set the required cmake version to 3.0 2016-07-12 11:22:01 +02:00
louiz’ 4f730f93fa Don't use target_sources() in cmake because it's >=3.1 only 2016-07-12 11:21:43 +02:00
louiz’ 5328d0806f Don’t use unique_ptr to store dns socket handlers 2016-07-12 11:15:42 +02:00
louiz’ 9fb2e116c4 Move reload.*pp from louloulibs to src 2016-07-12 01:15:34 +02:00
louiz’ 4c1b9abe7e Properly catch and handle database errors
Do not use a singleton for the database.

fix #3203
2016-07-12 00:31:57 +02:00
louiz’ 03feb403f8 Send the iq requests to one random resource instead of the bare JID 2016-07-04 18:49:00 +02:00
louiz’ 81f8f45b37 Replace all include guards by #pragma once
It’s $CURRENT_YEAR
2016-07-04 17:53:53 +02:00
louiz’ 5321d29cbd List of channels are saved per-request and not globally
The list would keep the previous results in memory, forever, and the list
would grow each time a new request was made (even with results from
unrelated servers)…
2016-07-04 17:00:05 +02:00
louiz’ 964784497a Remove forgotten comment 2016-07-04 10:20:16 +02:00
louiz’ 0ce75ab521 Properly remove the resource from the server when we leave the last channel 2016-07-03 16:01:15 +02:00
louiz’ dadfc349d9 Use latest git of botan in the dockerfiles 2016-07-03 14:36:38 +02:00
louiz’ 29567eefcf Add https to the unit file DOC thing 2016-07-02 15:10:30 +02:00
louiz’ 8cef730318 Add a valgrind suppression file 2016-07-02 15:10:23 +02:00
louiz’ 79002aa5c9 Run e2e through with valgrind if BIBOUMI_E2E_VALGRIND is set in the env 2016-06-29 19:53:37 +02:00
louiz’ 2fe8878169 Add a e2e test that checks self-ping with multiple resources behind one nick 2016-06-24 11:43:13 +02:00
louiz’ 7ae29890c3 Add a e2e for self-ping, with a single channel resource 2016-06-24 11:25:04 +02:00
louiz’ fcb2681b7b Log a warning when we receive an iq without a from 2016-06-24 11:24:40 +02:00
louiz’ 7d2a2dc8cc Forward ping requests from IRC to XMPP, to one single resource 2016-06-24 11:23:51 +02:00
louiz’ b2e7edeea8 Properly set the “from” of the ping results to the correct full JID 2016-06-24 11:23:01 +02:00
louiz’ 4e959a3869 Add a simple e2e test that joins a channel with xep0106-encoded name 2016-06-23 22:50:05 +02:00
louiz’ 9206f4723b Fix a bug in cut() 2016-06-23 22:40:53 +02:00
louiz’ 6bd9b1ec14 Remove unused function 2016-06-23 22:18:42 +02:00
louiz’ 11dcae704a Merge remote-tracking branch 'linkmauve/escaped-iid-support' 2016-06-23 22:17:08 +02:00
louiz’ 57263961b4 Fix a use after free in IrcChannel::remove_user 2016-06-23 22:16:13 +02:00
louiz’ c1f678e450 Fix a missing include for strlen 2016-06-15 16:47:11 +02:00
louiz’ 430bf3a661 Properly calculate the maximum size of each message line, before cutting
fix #3067
2016-06-15 15:51:13 +02:00
louiz’ 849c50f9f3 Save our own host, as reported by the server 2016-06-15 15:51:13 +02:00
louiz’ 4b1c580bb9 cut messages at 512 bytes, taking into account the UTF-8 codepoints
ref #3067
2016-06-15 15:50:45 +02:00
louiz’ 6235fb2d03 Add get_next_codepoint_size 2016-06-15 00:38:43 +02:00
louiz’ 80d0c19c5a Refactor, test and improve the way we cut too-long messages for IRC 2016-06-14 20:14:36 +02:00
louiz’ 19bca5c2f2 Add a missing return bool in Config 2016-06-14 20:08:55 +02:00
louiz’ 4661f7fe5b Fix a doc typo 2016-06-14 14:52:04 +02:00
louiz’ e8671042f7 Improve the signal handling by disabling them while an handler is running 2016-06-14 12:15:31 +02:00
louiz’ 46ff73662c Clean the Config module, use static things instead of a stupid singleton 2016-06-14 03:02:36 +02:00
louiz’ 550ab46f02 Make the logger tests more useful 2016-06-13 20:46:30 +02:00
louiz’ 5a2e611617 Show off, with some variadic templates, for the logger module 2016-06-13 20:46:30 +02:00
louiz’ ad4ccdbbea Display a message to tell if we found pandoc or not
fix #3177
2016-06-13 20:02:04 +02:00
louiz’ 272c0e4995 Reset the preferred private JID when all resources leave a room
For example if we are talking in private with nick Joe from
room #foo, and then we leave that room, we start receiving Joe’s
message from the server-wide JID

e2e tests included!!!
2016-06-10 10:00:48 +02:00
louiz’ 7540f67933 Add some e2e tests to check that private messages come from the right JIDs 2016-06-09 16:32:23 +02:00
louiz’ 199f010f52 Add a basic e2e test for channel and private messages 2016-06-08 11:49:44 +02:00
louiz’ 28300dff5b Add a missing vector include 2016-06-08 10:31:19 +02:00
louiz’ 2d11a5f494 Support multiple nick session, except for IQs
ref #2556
2016-06-08 01:42:43 +02:00
louiz’ 507d0c2cbe Forward everything to all concerned XMPP resources 2016-06-08 01:42:43 +02:00
louiz’ 66609cfba2 Remove all usage of std::list 2016-06-08 01:42:43 +02:00
louiz’ 711861d40e Add methods to know which resource is on which server or channel 2016-06-08 01:42:43 +02:00
louiz’ 367de4826c Associate a bridge with a bare JID instead of a full JID
ref #2556
2016-06-08 01:42:43 +02:00
louiz’ 0a2123f8a2 Changelog into rst 2016-06-08 01:42:43 +02:00
louiz’ a641a26327 Check the length of the JID parts when copying into the jidprep buffer
We trust the XMPP server, but maybe not enough to not check that
2016-06-02 16:03:28 +02:00
louiz’ 62c88a62ae Changelog into rst 2016-05-26 22:26:58 +02:00
louiz’ d78bc8c6ba ci: include only the rpm and srpm directory in the artifacts
The rest is useless and takes a lot of space
2016-05-23 18:00:17 +02:00
louiz’ 38202e5f6e Update the build process to take into account the rst files 2016-05-23 11:51:03 +02:00
louiz’ c7299656fc Merge branch 'rst' 2016-05-23 11:38:22 +02:00
louiz’ 6f3dacc40d First rst attempt 2016-05-23 11:34:33 +02:00
louiz’ 8f80b9c530 Test the execution of the hello command 2016-05-13 15:17:29 +02:00
louiz’ 0b1bf92479 e2e: possibility to extract a value from a stanza and reuse it in send_stanza 2016-05-13 15:17:29 +02:00
louiz’ fdddd447b3 Use “using” instead of typedef 2016-05-13 01:22:49 +02:00
louiz’ ce2b8a15f1 ci: Have two builds: on fedora and on debian 2016-05-12 11:41:54 +02:00
louiz’ e8e60b715c Add a Dockerfile for biboumi-test-debian 2016-05-12 11:41:34 +02:00
louiz’ cef238e700 Do not use std::endl for each line when saving the conf file 2016-05-11 00:56:49 +02:00
louiz’ ce798b1e8c Fix build with POLLER=POLL 2016-05-10 12:50:05 +02:00
louiz’ 06439fa2fc Run e2e in a subdirectory and lighten the build artifacts 2016-05-04 14:25:30 +02:00
louiz’ af42073830 Style fix
Move all constructors at the top of classes
2016-05-04 14:16:40 +02:00
louiz’ 305e01c0b5 Update .gitignore 2016-04-28 15:52:30 +02:00
louiz’ 98517e9a7b Change the name of the DB in the e2e tests 2016-04-27 11:04:05 +02:00
louiz’ 1e56c59e82 Include the Configure ad-hoc command on biboumi's JID for fixed_irc_server
Because a jid like “freenode.example.org” is both the JID for the configured
IRC server, and biboumi’s JID.

fix #3175
2016-04-27 11:03:52 +02:00
louiz’ 82e0cf99b0 Trivial cleanup 2016-04-25 10:43:20 +02:00
louiz’ d452c2ff18 Add e2e tests for the ad-hoc listing on the server jid 2016-04-25 10:43:20 +02:00
louiz’ b98402c972 Remove a forgotten comment
[ci skip]
2016-04-22 15:06:45 +02:00
louiz’ 254249dd78 Test the the virtual channel 2016-04-22 15:03:29 +02:00
louiz’ 376b28172b tests: Split the connection sequence into two
We can now insert steps between the two parts
2016-04-22 15:02:28 +02:00
louiz’ 38a59c38ff Add a Dockerfile to build a biboumi-test image 2016-04-22 11:58:18 +02:00
louiz’ 3fe55ab0b3 Remove an unused variable 2016-04-22 11:57:58 +02:00
louiz’ 439ea26223 Add a basic fixed_server e2e scenario 2016-04-22 11:57:58 +02:00
louiz’ ea35a12d5b Each e2e scenario can provide its own config name 2016-04-22 11:57:32 +02:00
louiz’ 747f04ee6d Move the e2e tests out of make check 2016-04-22 10:49:07 +02:00
louiz’ 3119ec72f3 Force LANG to en_US when generating biboumi.spec (fixes the date format) 2016-04-22 10:49:07 +02:00
louiz’ 327c821f46 Write irc output into a file 2016-04-22 10:49:07 +02:00
louiz’ ee9b7f55bb Run make rpm, in the ci 2016-04-22 10:49:07 +02:00
louiz’ 3ddca86851 Debug and exit if IRC server startup fails 2016-04-22 10:49:07 +02:00
louiz’ 71b3f8f50b Correct charybdis config file path 2016-04-22 10:49:07 +02:00
louiz’ 04facc515c Provide a conf for charybdis 2016-04-22 10:49:07 +02:00
louiz’ 04d28f968b Forward the topic authors, handle the author from 333 messages
fix #2
2016-04-22 10:49:07 +02:00
louiz’ 64f341ee80 e2etests: Use charybdis and update the scenarios accordingly 2016-04-22 10:49:06 +02:00
louiz’ bd625aa59b e2etests: we are able to receive optional stanzas 2016-04-22 10:49:06 +02:00
louiz’ 45f442b67d More tests 2016-04-22 10:49:06 +02:00