wiki.techinc.nl/tests/phpunit/includes
daniel a8ee61d9d6 Implement rate limiting in Authority.
Rate limits will automatically be checked by definitelyCan(),
authorizeRead() and authorizeWrite(). The authorize methods also
increment the counter.

UserAuthority tracks which limits have already been incremented during
the current request, to avoid duplicate increments caused by code that
still calls pingLimiter directly.

DEPLOY: Risky! We SHOULD not hit rate limits more often, but we might.
Rate limit metrics should be monitored closely, see
<https://grafana.wikimedia.org/d/8oA6CWr4z/mw-rate-limiting-overview>.

Bug: T310476
Depends-On: Iebd62b0487af9172edaeae41c9b31aaf2f20fd06
Change-Id: Ic349f03b7040343815b60b0a2c84a5780326c797
2023-07-23 17:16:56 +00:00
..
actions Remove SpecialPageAction and associated logic, route old URLs 2023-07-11 19:22:51 +00:00
api Implement rate limiting in Authority. 2023-07-23 17:16:56 +00:00
auth AuthManagerTest: Use localhost instead of local.wmftest.net 2023-07-16 20:26:22 +02:00
block tests: Migrate Database::select usages to SelectQueryBuilder 2023-07-17 14:24:30 +02:00
cache HookContainer: deprecate old hook handler formats 2023-06-21 11:40:10 +00:00
changes EnhancedChangesList: Use HTML/CSS for collapsing 2023-07-13 23:12:45 +00:00
changetags tests: Migrate Database::delete calls to DeleteQueryBuilder 2023-07-14 14:48:42 +02:00
collation tests: Make some PHPUnit data providers static 2023-05-20 01:05:27 +02:00
config Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
content Implement rate limiting in Authority. 2023-07-23 17:16:56 +00:00
db Replace usages of deprecated MWException 2023-06-06 17:05:32 +02:00
debug tests: Change expectDeprecation to expectDeprecationAndContinue 2023-07-18 16:35:43 +00:00
deferred Merge "Migrate assertSelect() to SelectQueryBuilder" 2023-07-03 10:52:04 +00:00
diff Add SlotDiffRenderer::localizeDiff() 2023-07-20 10:09:42 +10:00
editpage editpage: Fix use of includeonly for preload of page in mw namespace 2023-07-07 19:01:59 +02:00
exception tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
externalstore tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
filebackend filebackend: Split missing file and error on getLocalReference/Copy 2023-04-29 01:01:07 +02:00
filerepo tests: Migrate calls to Database::update to UpdateQueryBuilder 2023-07-14 15:40:11 +02:00
GlobalFunctions Resolve GlobalFunctions phpunit filename deprecation errors 2023-07-01 09:30:42 +00:00
HookContainer Remove the $replace parameter from HookContainer::scopedRegister. 2023-06-14 11:00:54 +00:00
htmlform htmlform: Allow validation-callback to return Status instances 2023-07-09 19:53:01 +02:00
http Remove deprecated MWHttpRequest::factory 2023-04-26 22:23:06 +02:00
import WikiImporter: Improve error message output 2023-07-09 22:48:55 +00:00
installer
interwiki tests: Migrate Database::delete calls to DeleteQueryBuilder 2023-07-14 14:48:42 +02:00
jobqueue ParsoidCachePrewarmJob: enable deduplication 2023-07-12 21:59:52 +02:00
language tests: Use instanceof in LanguageConverterFactoryTest 2023-07-21 06:02:05 +00:00
languages Fix Chinese diff segmentation 2023-07-06 18:14:30 +10:00
libs site: Simplify SiteList by removing GenericArrayObject indirection 2023-06-05 19:39:33 +00:00
linkeddata tests: Make some PHPUnit data providers static 2023-05-20 01:05:27 +02:00
linker tests: Migrate Database::select usages to SelectQueryBuilder 2023-07-17 14:24:30 +02:00
logging tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
mail tests: Make some PHPUnit data providers static 2023-05-20 01:05:27 +02:00
media Avoid calling overrideConfigValue() multiple times 2023-07-20 14:59:42 +02:00
Message tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
Navigation tests: Change some setMwGlobals to overrideConfigValue 2023-07-17 23:02:32 +02:00
objectcache tests: Change some setMwGlobals to overrideConfigValue 2023-07-17 23:02:32 +02:00
page tests: Migrate Database::select usages to SelectQueryBuilder 2023-07-17 14:24:30 +02:00
pager tests: Make some PHPUnit data providers static 2023-05-20 01:05:27 +02:00
ParamValidator/TypeDef tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
parser Avoid calling overrideConfigValue() multiple times 2023-07-20 14:59:42 +02:00
password tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
Permissions Avoid calling overrideConfigValue() multiple times 2023-07-20 14:59:42 +02:00
poolcounter tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
preferences Avoid calling overrideConfigValue() multiple times 2023-07-20 14:59:42 +02:00
profiler profiler: Add ProfilingContext class 2023-03-23 00:08:49 +00:00
rcfeed rcfeed: Add 'notify_url' and 'title_url' to MachineReadableRCFeedFormatter 2023-05-19 15:48:40 +03:00
registration Simplify HookContainer (v2) 2023-06-06 12:06:23 +02:00
ResourceLoader Html: Move encodeJsVar() + encodeJsCall() from Xml 2023-07-14 13:42:02 -04:00
Rest tests: Prevent leaking $_SERVER in RequestFromGlobalsTest 2023-07-19 09:23:52 +02:00
Revision tests: Pass Title to editPage() when already parsed 2023-07-15 00:45:47 +02:00
search search: Make DB-backed search engines use ICP instead of LB/LBF 2023-07-13 12:31:06 +02:00
session tests: Migrate Database::delete calls to DeleteQueryBuilder 2023-07-14 14:48:42 +02:00
shell tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
site site: Use DeleteQueryBuilder in DBSiteStore 2023-07-06 22:18:36 +00:00
skins Replace array_keys in foreach to use $_ as value instead 2023-07-10 02:53:52 +00:00
sparql tests: Make some PHPUnit data providers static 2023-05-20 01:05:27 +02:00
specialpage Avoid calling overrideConfigValue() multiple times 2023-07-20 14:59:42 +02:00
specials Merge "Refactor SpecialPreferencesTest" 2023-07-18 23:50:18 +00:00
Storage Migrate assertSelect() to SelectQueryBuilder 2023-06-28 09:03:58 +10:00
title Inject extension namespaces into NamespaceInfo 2023-07-16 22:53:26 +02:00
upload API tests: Assert error codes, not error messages 2023-04-26 19:36:29 +02:00
user Implement rate limiting in Authority. 2023-07-23 17:16:56 +00:00
utils objectcache,resourceloader,rdbms,jobqueue: Widen @covers annotations 2023-04-10 22:00:17 +00:00
watcheditem tests: Pass Title to editPage() when already parsed 2023-07-15 00:45:47 +02:00
AutoLoaderTest.php AutoLoader: Drop support for $wgAutoloadAttemptLowercase 2022-12-04 02:38:57 -05:00
CategoryTest.php Category: Widen @covers annotations in unit tests 2023-05-30 15:59:25 +01:00
CommentStoreCommentTest.php
CommentStoreTest.php CommentStore: Drop temp table code 2023-06-13 23:30:58 +00:00
CommentStoreTest.sql
ContentSecurityPolicyTest.php phpunit: Update @covers annotations for namespaced classes 2023-05-27 17:43:12 +08:00
EditPageConstraintsTest.php tests: Migrate calls to Database::update to UpdateQueryBuilder 2023-07-14 15:40:11 +02:00
EditPageTest.php tests: Migrate calls to Database::update to UpdateQueryBuilder 2023-07-14 15:40:11 +02:00
ExportTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
ExtraParserTest.php Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
FauxRequestTest.php Replace some more usages of deprecated MWException 2023-06-09 02:07:08 +02:00
GitInfoTest.php
HooksTest.php Deprecate HookContainer::getHandlerCallbacks 2023-06-23 00:26:40 +00:00
HtmlTest.php tests: Change some setMwGlobals to overrideConfigValue 2023-07-17 23:02:32 +02:00
LinkerTest.php tests: Use Title::makeTitle instead of Title::newFromText 2023-06-19 21:54:57 +02:00
LinkFilterTest.php ExternalLinks: Make oneWildcard avoid adding wildcard to domain 2023-07-10 18:38:55 +02:00
MediaWikiServicesTest.php tests: Use MainConfigNames consts to refer config names 2023-06-19 20:21:08 +00:00
MediaWikiTest.php MediaWikiTest: avoid leaking values into the global state 2023-07-16 22:45:50 +02:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php phpunit: Update @covers annotations for namespaced classes 2023-05-27 17:43:12 +08:00
MessageTest.php MWTimestamp,Message: Widen @covers annotations in unit tests 2023-06-03 16:30:15 +01:00
MockServiceWiring.php
MovePageTest.php Migrate assertSelect() to SelectQueryBuilder 2023-06-28 09:03:58 +10:00
MultiHttpClientTest.php Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
MWTimestampTest.php MWTimestamp,Message: Widen @covers annotations in unit tests 2023-06-03 16:30:15 +01:00
OutputPageTest.php OutputPageTest: specify required config value 2023-07-16 15:19:58 +02:00
SampleTest.php tests: Use Title::makeTitle instead of Title::newFromText 2023-06-19 21:54:57 +02:00
SiteStatsTest.php phpunit: Update @covers annotations for namespaced classes 2023-05-27 17:43:12 +08:00
StatusTest.php Status::getPsr3MessageAndContext: Special-case rawmessage 2023-04-05 18:49:54 +00:00
TemplateCategoriesTest.php phpunit: Update @covers annotations for namespaced classes 2023-05-27 17:43:12 +08:00
TestUser.php Merge "tests: Migrate Database::update usages to UpdateQueryBuilder" 2023-06-08 13:25:06 +00:00
TestUserRegistry.php Remove non-existing password parameter in TestUserRegistry 2023-07-07 10:38:32 +02:00
TimeAdjustTest.php Use UserTimeCorrection in Language::userAdjust 2023-01-29 14:12:32 +01:00
TitleTest.php Avoid calling overrideConfigValue() multiple times 2023-07-20 14:59:42 +02:00
TitleUrlTest.php phpunit: Update @covers annotations for namespaced classes 2023-05-27 17:43:12 +08:00
TrackingCategoriesTest.php Reorg: Move category-related classes from includes/ to Category/ 2023-02-09 20:18:54 +01:00
WebRequestTest.php tests: Handle dynamic created properties on test classes 2023-01-13 21:03:42 +00:00
WikiMapTest.php phpunit: Update @covers annotations for namespaced classes 2023-05-27 17:43:12 +08:00
XmlTest.php [tests] Add a regression test for Xml::input 2023-07-11 18:17:00 +02:00