summaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)Author
2023-04-16Improve sql query performance by removing unused payloadDaniel Starzmann
Signed-off-by: Daniel Starzmann <daniel@starze.de>
2023-04-16add sleep commandBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-04-16Also adjust dates on other test feedsBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-04-16Change dates to far future and leave commentBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-04-05Set lastmodified in read allBenjamin Brahmer
if this is not updated the API won't work correctly and we get sync errors. Adjust test to use item api Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-03-24Create tests for the updating and purging functions via the APIBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-03-23If timestamp is null use timestamp "one year ago"Benjamin Brahmer
if timestamp is not set during creation of a feed use date one year ago code fixes and linting fixes. Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com> Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-03-13add cron status badge to admin settingBenjamin Brahmer
Display a info card in the settings, indicating when the last news update job ran. Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-02-14Implement item searchBenjamin Brahmer
The search result can only link to the feed. Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-01-21remove id part from pattern matching since website changes ID too oftenBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-10-24Use app password, change setup methodBenjamin Brahmer
The app password is nice in local testing, since Nextcloud logs too much data if you use the user password. Setup_file and teardown_file are only executed once instead of running before and after every job. Use bats from npm as ubuntu's version is old. Switch to occ for app password Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-10-12Remove setting for minimum purge interval settingBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-10-08New administrator setting for deleting unread items automaticallyBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-31fix readAllBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-30Port admin settings to vue (#1880)Carl Schwan
* Port admin settings to vue Co-authored-by: anoy. <anoymouserver@users.noreply.github.com> Co-authored-by: Benjamin Brahmer <info@b-brahmer.de> Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-21fix unittestBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-21try to speedup the api testing by hosting the feeds locally (#1874)Benjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-19Fix deprecation warnings from Nextcloud. (#1869)Benjamin Brahmer
* don't use private class anymore * execute is deprecated * fix migration execute statement * fix unittest Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-19Fix Test and adjust codeBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-08Change Autodiscover behaviour (#1860)Benjamin Brahmer
* change autodiscover behaviour to only run if the provided url is not already a feed * Execute feed check after the final url is found Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
2022-05-31If items of feed do not provide an author fallback to feed author (#1803)Benjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-05-29Enable API testing (#1699)Benjamin Brahmer
Enable API testing with local php server. This adds many tests for API v1.2, more still possible. Which increased the quality of news already. Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-05-24Use Feed Link as GUID when Feed omits Guid. (#1785)Accalia Elementia
* Use Feed Link as GUID when Feed omits Guid. As noted in nextcloud/news#1702 some feeds omit the GUID and are therefore not a valid RSS feed. nextcloud/news#1738 resolved the issue to allow valid feeds to update correctly when an invalid feed is present. This commit allows parsing of the invalid feed as well by assuming that the item link of the feed is unique to the feed and using it in place of the GUID when the feed omits the GUID. This will allow NextCloud News to accept and behave like many other popular feed aggregators when presented with such an invalid feed. Signed-off-by: Accalia <Accalia@Elementia.me> * Add basic Logging when using fallback guid Signed-off-by: Accalia <Accalia@Elementia.me> * Add basic Logging when using fallback guid - Fix Fatfinger Typo Signed-off-by: Accalia <Accalia@Elementia.me> * Add basic Logging when using fallback guid - Update tests to account for additional logging Signed-off-by: Accalia <Accalia@Elementia.me>
2022-05-02update last_modified when marking an item as readBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> this way it works Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> add changelog entry Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> Partly fix test Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> test passing Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-04-30rename parameter for read/unread api callPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-30also allow starring/unstarring multiple items by idPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-30remove duplicate functionPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-30add tests for starring/unstarring items by idPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-18Fix malformed feeds (without GUIDs) stopping the update process (fixes #1738)nextcloud486153
Signed-off-by: nextcloud486153 <78801830+nextcloud486153@users.noreply.github.com>
2022-03-08adjust testBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-11-18chore: use executeStatement instead of executeUpdateSean Molenaar
Signed-off-by: Sean Molenaar sean@seanmolenaar.eu Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-10-18Download feed logos via guzzle to have better error handlingBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-07-24Update all feeds from commandDavid Baucum
Closes #1359 Signed-off-by: David Baucum <david@baucum.me>
2021-07-17adapt tests to QBMapper changes in NC22anoy
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-06-16Search: add feed searchSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-06-01Chore: implement removals from #935Sean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-05-27db: no longer order by items.last_modifiedSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu> Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-05-27controller: getRead + all_items is now unread typeSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu> Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-05-03[Backport] Prevent some of the favicon fetching errorsBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-04-24Search: Fix app prefix in search redirectSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-04-24replace deprecated getDescription callanoy
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-04-14DB: only sort on item IDsSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-04-10Search: Fix and test folder searchSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-04-08🩹 Fix rebase issuesMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🩹 Fix rebase errorsMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🎨 Rename $l to $l10nMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ Added test for sharedByDisplayName fieldMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ Add + update sharer display name testsMarco Nassabain
- added testMapSharedByDisplayNames - updated ItemController tests to expect call to function Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🔥 Remove UserManager code from ItemMapper & testsMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🩹 Fix issues after rebaseMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>