Commit Graph

55 Commits

Author SHA1 Message Date
Valentin Lorentz
314fad36eb Modernize tests
Thanks to https://pypi.org/project/teyit/
2022-11-20 19:33:23 +01:00
Valentin Lorentz
2c5dc405fc test: Revert generic 'The Limnoria Contributors' in copyright notices
I forgot to include these in 63eb6672ea

(This is fine because noone but me touched these files since the initial
change in db7ef3f025).
2022-10-24 23:41:26 +02:00
Valentin Lorentz
ee9f0dc1bf STS: When persisting STS keys, use the actual port instead of the one from the policy
'Servers MAY send this key to securely connected clients, but it will be ignored.'
-- https://ircv3.net/specs/extensions/sts\#the-port-key
2021-09-03 20:15:18 +02:00
Valentin Lorentz
db7ef3f025 all: Add generic 'The Limnoria Contributors' to copyright notices.
No need to bother with details (that are all outdated / out of sync
anyway), just look up the git history.
2021-08-01 21:54:49 +02:00
Valentin Lorentz
22120ee862 Fix various issues with STS handling. 2020-05-01 19:46:19 +02:00
Valentin Lorentz
ecc2c32950 Add support for storing STS policies.
If on an insecure connection: reconnect.
If on a secure connect: store it and do nothing else.

For now, stored STS policies are not read when connecting to an
insecure server.
2020-05-01 19:46:19 +02:00
Valentin Lorentz
9891b0fca4 Replace failUnless/failIf with assertTrue/assertFalse.
The old names are deprecated.
2020-01-26 11:14:18 +01:00
Valentin Lorentz
fcb342cb2c test: Mock calls to time.sleep()
The tests now take 7 seconds instead of 30.
2019-12-15 20:20:42 +01:00
Valentin Lorentz
a8be36051f Add tests for ircdb serialization. 2016-02-07 10:49:44 +01:00
James McCoy
6361b1e856 ircdb: Deduplicate hostmasks in IrcUser.addAuth
If addAuth is called with a hostmask that already exists (exactly, not
just equivalent patterns) in self.auth, remove the entry for the old
authentication.  This essentially updates the timeout for the hostmask.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2013-09-22 11:13:52 -04:00
James Vega
a3e4fc5b1d Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
James Vega
9971e991fe Fix the modelines. 2005-03-23 20:07:45 +00:00
Jeremy Fincher
895cd3e48e Resurrected the test suite with the new supybot-test program and RCS. 2005-01-23 19:42:25 +00:00
Jeremy Fincher
3d3b1498fe Changed copyright years on test files 2005-01-24 21:27:34 +00:00
Jeremy Fincher
8ca625d339 Initial import. 2005-01-19 13:14:38 +00:00
James Vega
dbfec8afb9 Add supybot module 2007-04-22 20:10:26 +00:00
Jeremy Fincher
6002089619 Changed some non-public checkCapability methods to be prefixed with an underscore. 2004-12-27 06:58:26 +00:00
Jeremy Fincher
a238ed6298 Fixed TODO #1047283. 2004-10-22 06:21:34 +00:00
Jeremy Fincher
e5df6c87ed tightened for new asserts. 2004-09-28 07:19:25 +00:00
James Vega
23397b44b4 Remove #! lines. 2004-09-20 15:25:47 +00:00
Jeremy Fincher
4fec6def71 Allow multiple authentication. 2004-09-13 02:01:00 +00:00
Jeremy Fincher
fbb348b6e7 Copyright updates. Again, more is left to be done, but this is my part. 2004-08-23 13:14:06 +00:00
James Vega
20ebbc15d5 We have to add a non-banmask hostmask to match against. banmask hostmask is
too general.
2004-08-01 16:05:07 +00:00
Jeremy Fincher
9250d3ab32 Tons of differences, moved some registry values around, also changed some internal attributes of registry thingies. 2004-07-31 05:00:43 +00:00
Jeremy Fincher
f9c61271ea w00, less path mungingEXCLAIMEXCLAIM 2004-07-24 05:18:26 +00:00
Jeremy Fincher
48d6c982ce Made a SupyTestCase base class to handle COOL STUFF\! 2004-02-16 04:12:35 +00:00
Jeremy Fincher
96eecfd477 Fixed most tests and made some stricter policy changes, as well handled the case of getUserId returning several hostmasks a little better. 2004-02-08 09:25:14 +00:00
Jeremy Fincher
2beb507554 Fixed all current failures in the no-plugins test cases. 2004-01-31 06:47:36 +00:00
Jeremy Fincher
4b1083931d Changed channel capabilities to use commas. 2004-01-20 21:53:13 +00:00
Jeremy Fincher
6ca78924f3 HUUUUUUUUGE Configuration change. 2004-01-18 07:58:26 +00:00
Jeremy Fincher
2046e63898 Made to use the conf.confDir. 2003-12-03 02:30:41 +00:00
Jeremy Fincher
2a9d9d1b5d Reworked so there's no double-import problem. 2003-12-02 12:27:45 +00:00
Jeremy Fincher
b39e1237fc Added __iter__ to UsersDB for a cleaner interface. 2003-12-01 23:24:25 +00:00
Jeremy Fincher
e34d9deecd Fixed RFE #851183, ircdb.users.numUsers. 2003-12-01 23:17:26 +00:00
Jeremy Fincher
48166f4895 Huge update to the logging infrastructure. 2003-11-26 18:21:12 +00:00
Jeremy Fincher
9a7de79467 Made removeHostmask remove all the matching hostmasks. 2003-11-19 15:35:01 +00:00
Jeremy Fincher
b35501ceb2 Commented out a test that was causing several other failures. 2003-11-04 07:02:59 +00:00
Jeremy Fincher
f27ba11741 Added test to make sure reloading sets doesn't kill the subclasses of sets.Set (which may in the future not be subclasses of sets.Set. 2003-11-02 19:01:03 +00:00
Jeremy Fincher
d174226c5c Added the ability to do hashed passwords. 2003-10-28 15:13:53 +00:00
Jeremy Fincher
6320511166 Added a few more asserts to *SetTestCase.testReprEval. 2003-10-05 11:57:25 +00:00
Jeremy Fincher
8ef808a039 Some bugs were being shadowed for some reason, and there were bugs in the handling of the owner privilege that hadn't been found because those tests had been shadowed. 2003-10-05 11:42:58 +00:00
Jeremy Fincher
66fc538a3a Changed the anti-capability prefix to - instead of !. 2003-10-05 11:13:20 +00:00
Jeremy Fincher
b9d265c102 Added docstrings, removed some unused methods. 2003-10-04 12:00:56 +00:00
Jeremy Fincher
36984d3fa5 Added RFE #801859: no-hostmask (secure) option for users. 2003-10-03 09:57:52 +00:00
Jeremy Fincher
b50a01db7d Made sure IrcUser.removeCapability raises KeyError on capabilities the user doesn't have. 2003-09-23 17:04:53 +00:00
Jeremy Fincher
e75b92853b Fixed bug with channel capabilities for channels with . in their name. 2003-09-22 09:18:13 +00:00
Jeremy Fincher
feb85382af Made usernames case-insensitive. 2003-09-14 07:05:41 +00:00
Jeremy Fincher
5a15783e7a Made sure chanop capability supercedes everything else. 2003-09-13 12:59:22 +00:00
Jeremy Fincher
41d266f207 Updated ircdb to have persistent user ids. 2003-09-12 20:06:58 +00:00
Jeremy Fincher
ca646716b1 Removed spaces at the end of lines. 2003-08-20 16:26:23 +00:00