In order to ensure compatibility of the new ReadingList REST endpoints with the old ones in RESTbase, we should have a suite of Mocha tests in the extension. The new tests should mirror the assertions made in https://github.com/wikimedia/restbase/blob/master/test/features/lists.js, but the tests need to be re-written to make use of MediaWiki's api-testing framework. This will allow the tests to run reliably and safely in CI and local dev environments.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Stalled | None | T324931 Clean up open RESTBase related tickets | |||
In Progress | None | T262315 <CORE TECHNOLOGY> API Migration & RESTBase Sunset | |||
In Progress | BPirkle | T336693 Re-implement reading lists REST interface outside RESTbase | |||
Resolved | BPirkle | T348491 Reading List REST Interface: create REST endpoints | |||
Resolved | BPirkle | T355648 ReadingLists: Create a Mocha test suite |
Event Timeline
Change 992667 had a related patch set uploaded (by WQuarshie; author: WQuarshie):
[mediawiki/extensions/ReadingLists@master] Mocha Test
Change 992885 had a related patch set uploaded (by Atieno; author: Atieno):
[mediawiki/extensions/ReadingLists@master] tests: Mocha tests for ReadingList extension
Change 995062 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):
[integration/config@master] Enabloe Mocha tests for ReadingLists
Change 995062 merged by jenkins-bot:
[integration/config@master] Zuul: [mediawiki/extensions/ReadingLists] Enable Mocha tests
Mentioned in SAL (#wikimedia-releng) [2024-02-02T21:03:55Z] <James_F> Zuul: [mediawiki/extensions/ReadingLists] Enable Mocha tests for T355648
Change 992885 merged by jenkins-bot:
[mediawiki/extensions/ReadingLists@master] tests: Mocha tests for ReadingList extension
Change 992667 merged by jenkins-bot:
[mediawiki/extensions/ReadingLists@master] Mocha Test