Alexey Sokolov
c106d430eb
Fix my recent fix and pass the parameter correctly
2019-11-06 00:00:34 +00:00
Alexey Sokolov
961881b032
Build integration test with the same compiler
...
Fix https://bugs.gentoo.org/699258
2019-11-05 21:01:57 +00:00
Alexey Sokolov
964747e6b4
Increase znc-buildmod timeout in the test.
...
For some slow systems 30s is too small.
2019-04-19 12:13:44 +01:00
Alexey Sokolov
64613bc8b6
Don't crash if user specified invalid encoding.
...
This is CVE-2019-9917
2019-03-22 00:22:00 +00:00
Alexey Sokolov
abee9f9bfc
Fix a warning in integration test / gmake / znc-buildmod interaction.
...
It was requested on https://github.com/gentoo/gentoo/pull/8901
2018-06-28 23:57:29 +01:00
Alexey Sokolov
ff8b629884
Don't throw from destructor in the integration test
2018-06-20 01:28:46 +01:00
Alexey Sokolov
4b92790562
Fix #1543 for modperl too
...
While at it, fix a memory leak in NV handling
Add some tests
2018-06-04 22:03:10 +01:00
Alexey Sokolov
c6a04023a4
Reformat test
2018-04-04 01:21:09 +01:00
Alexey Sokolov
f3ddbccedd
Fix unit test after string changes
2018-04-02 12:19:01 +01:00
Alexey Sokolov
1e08e5c702
Move gtest's printer for CString to a place visible to all tests
2018-04-02 12:17:14 +01:00
Alexey Sokolov
d8327977ca
Add socket test to modperl
2018-03-27 22:49:23 +01:00
Alexey Sokolov
6eaa93f8da
Fix python sockets after latest changes.
...
The issue was triggered by CCoreTranslationMixin being parent of
CZNCSock, and DisableReadLine wasn't found as attribute anymore.
Thanks to obiw4n for report.
2018-03-27 22:26:05 +01:00
Alexey Sokolov
5cb50eccd1
Save channel key on user JOIN even if user was not on the channel yet,
...
which is the usual case.
Fix #1223
2018-02-14 08:30:21 +00:00
Alexey Sokolov
986bb8dc6d
Add test for away-notify and cap-notify
...
Fix #1360
2018-02-13 21:55:32 +00:00
Alexey Sokolov
70dabc07dc
Split integration test file to several files.
2018-02-13 21:25:17 +00:00
Alexey Sokolov
e3a1308a04
Make order of EXPECT_EQ more natural, after upgrade to new GTest.
2018-02-13 08:41:53 +00:00
Alexey Sokolov
c30e5ef9fd
Fix tests for #1402
2018-02-12 09:04:50 +00:00
Alexey Sokolov
5a09a81c35
Fix interaction between crypt and echo-message.
...
Close #1481
2018-02-11 14:17:51 +00:00
Alexey Sokolov
9ff4127e33
Merge branch 'master' of github.com:znc/znc
2018-02-09 20:41:58 +00:00
Alexey Sokolov
01507188c3
Update googletest to latest version and cleanup integration test.
...
https://github.com/google/googletest/pull/1439 makes it possible to
remove horrible hacks I wrote before.
2018-02-09 20:40:28 +00:00
Falk Seidel
d647eaabc0
Welcome to 2018
...
The same procedure as last year, Miss Sophie?
The same procedure as every year, James.
[skip ci]
2018-01-19 19:38:58 +00:00
Fox Wilson
42939c998f
Add "AuthOnlyViaModule" global/user setting
...
Setting AuthOnlyViaModule on a user causes CheckPass to never return true,
causing all authentication attempts using the configured password to fail, both
on IRC connections and for webadmin. This is useful in situations where an
external module (cyrusauth, certauth, imapauth) handles authentication. Setting
the global AuthOnlyViaModule option causes similar behavior across every
user. If AuthOnlyViaModule is set to true globally, it cannot be overridden
per-user.
Close #1474
Close #331
2017-12-22 14:23:17 +00:00
Alexey Sokolov
bd51ebcdca
Merge pull request #1455 from CyberShadow/timeval
...
Add sub-second precision for timestamp formatting
2017-12-10 11:46:22 +00:00
Vladimir Panteleev
15b1f8d8fa
Change format syntax to a simple custom %f/%#f scheme
2017-12-10 09:45:58 +00:00
Alexey Sokolov
1a4990c033
Don't use features of Qt 5.6 in the integration test yet
2017-11-12 18:00:33 +00:00
Alexey Sokolov
44418f5aaf
Add ability to install an inline python module to integration test
2017-11-12 15:54:19 +00:00
Alexey Sokolov
fd8a36d3ea
Use value-parameterized tests for FormatTime
2017-11-04 21:37:55 +00:00
Vladimir Panteleev
901a21e91b
Utils: Add FormatTime overload taking timeval
...
This overload also supports additional format sequences for formatting
the sub-second part of timeval.
2017-10-26 00:00:50 +00:00
Alexey Sokolov
ca578843fc
Fix test after previous commit
2017-10-23 00:17:49 +01:00
Alexey Sokolov
9cbd58439f
Fix test of crypt module after changing messages of controlpanel
2017-08-27 14:32:23 +01:00
Alexey Sokolov
1e8512aa85
Delete controlpanel integration test.
...
It didn't actually test any behavior, but only messages which it sends
to user.
2017-08-27 14:14:15 +01:00
Rubin
96c92ef8ca
Change default flood rates to match RFC1459, prevent excess flood problems
...
I noticed that the default network flood rates are wrong (for most
networks). It has been very standard since the beginning of IRC to use a
value of 2 seconds per line, with a 10 line head start. Almost all
networks work this way, and if you don't follow, having a lot of
channels or a lot of clients connected to ZNC results in excess flood
disconnections and much frustration for the user.
I think you should make the default value for these 2 and 9 instead of 1
and 4 so that this nasty bug doesn't hit people who will not know how to
debug it. You find these same types of settings built into every IRC
client. 2 and 10 is the standard. 2 and 9 provides a slight buffer so
there is no mistake.
Thanks
-Rubin
Close #1416
2017-06-01 08:22:21 +01:00
Eli Young
6d0ec644d0
Support custom message tags
...
This provides a way for modules to register message tags and updates the
core to send tags to clients if the relevant capabilities are enabled.
2017-05-08 18:01:46 -07:00
Eli Young
823ac07240
Add OnSendToIRCMessage and OnSendToClientMessage
...
This also alters PutClient such that the CMessage variant handles
sending messages, rather than the CString variant. As a side bonus, this
gives callers better information on whether the message was sent to the
client. Additionally, it eliminates the need for a hook to let modules
set the tags sent to a client, as that can now be done inside
OnSendToClientMessage.
2017-04-18 15:43:16 -07:00
Alexey Sokolov
aefc97d09a
Merge pull request #1383 from Phansa/master
...
Adding comments to modules, updating dates to 2017
2017-03-23 22:49:29 +00:00
Cizzle
ab34760613
crypt: Add Get/SetNickPrefix commands ( #1382 )
...
Hide the internal keyword from ListKeys
2017-03-15 18:28:00 +00:00
Phansa
3189ce7f8a
Welcome to 2017
...
Welcome to 2017
temp
temp2
2017-03-12 20:34:26 -04:00
Alexey Sokolov
9e941cb972
Fix test for autoconf build
2017-03-01 23:37:23 +00:00
Christophe Beauval
cba58ca862
Add DH1080 keyexchange to the crypt module.
...
Close #1378
2017-03-01 01:16:06 +00:00
Alexey Sokolov
88d1e27cc6
Fix CMake build:
...
* VERSION_EXTRA is now supported
* znc-buildmod uses the correct ZNC library instead of one in /usr/share
2017-02-28 23:01:09 +00:00
Uli Schlachter
74bfbea6f2
Speed up FixCVE20149403 test
...
The test was unnecessarily waiting for ZNC to join some channel, which
took a long time.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2017-02-28 13:07:15 +01:00
Uli Schlachter
7b2a127841
Fix tests relying on table output
...
The output style of tables was recently changed. This broke the
ControlpanelModule integration test. Adapt some of the patterns used so
that they work again.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2017-02-28 12:59:00 +01:00
Uli Schlachter
1543635abf
integration tests: Improve message when ZNC is missing
...
Previously, "more or less unrelated" things would fail. After this
change, also a message is printing that gives a hint on what went wrong.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2017-02-28 12:57:13 +01:00
Alexey Sokolov
c803a85e13
Rename new On...Message modules callbacks to be more consistent.
...
OnPrivMessage -> OnPrivTextMessage
OnChanMessage -> OnChanTextMessage
Fix #1191
2016-12-25 15:48:29 +00:00
Alexey Sokolov
6fbab7b44c
Add CIDR support to TrustedProxy setting
...
Fix #1219
2016-12-25 13:00:02 +00:00
lol768
d40d87e268
Fix race condition by using ReadUntil per review
2016-10-05 09:32:02 +01:00
lol768
e066f896ef
Add integration test for module CSRF overrides
2016-10-05 09:32:02 +01:00
Alexey Sokolov
222ae86fcc
Fix newest additions to keepnick module and write the test for it.
...
Fix the documentation.
See #1324 and #1325
2016-10-05 09:21:21 +01:00
Alexey Sokolov
ac0048cc01
Make ZNC faster in the integration test.
...
This is not appropriate for normal usage.
2016-10-04 01:19:34 +01:00
Alexey Sokolov
87ca820bda
Make integration test to load until module is loaded before testing it.
2016-10-03 23:55:35 +01:00