summaryrefslogtreecommitdiffstats
path: root/composer.json
AgeCommit message (Collapse)Author
2021-03-25Make PHPstan stricterSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-02-20Add phpstan pluginsBenjamin Brahmer
remove leftovers from psalm move phpstan and phpcs to static code check Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-02-17remove psalmBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-02-05Composer: Remove favicon hackSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-02-02Composer: Remove unneeded files in releasesSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-01-26Base: Update psalm definition and dependency listSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-01-21Bump christophwurst/nextcloud from 20.0.4 to 20.0.5dependabot[bot]
Bumps [christophwurst/nextcloud](https://github.com/ChristophWurst/nextcloud_composer) from 20.0.4 to 20.0.5. - [Release notes](https://github.com/ChristophWurst/nextcloud_composer/releases) - [Commits](https://github.com/ChristophWurst/nextcloud_composer/compare/v20.0.4...v20.0.5) Signed-off-by: dependabot[bot] <support@github.com>
2021-01-08Bump phpunit/phpunit from 9.4.4 to 9.5.0dependabot[bot]
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.4.4 to 9.5.0. - [Release notes](https://github.com/sebastianbergmann/phpunit/releases) - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.5.md) - [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.4.4...9.5.0) Signed-off-by: dependabot[bot] <support@github.com>
2021-01-08Bump christophwurst/nextcloud from 20.0.0 to 20.0.4dependabot[bot]
Bumps [christophwurst/nextcloud](https://github.com/ChristophWurst/nextcloud_composer) from 20.0.0 to 20.0.4. - [Release notes](https://github.com/ChristophWurst/nextcloud_composer/releases) - [Commits](https://github.com/ChristophWurst/nextcloud_composer/compare/v20.0.0...v20.0.4) Signed-off-by: dependabot[bot] <support@github.com>
2021-01-07Bump phpunit/phpunit from 9.2.6 to 9.4.0dependabot[bot]
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.2.6 to 9.4.0. - [Release notes](https://github.com/sebastianbergmann/phpunit/releases) - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.4.md) - [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.2.6...9.4.0) Signed-off-by: dependabot[bot] <support@github.com>
2021-01-07Add psalm for static code analysisBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-11-07enable PHP 8.0 to validate for NC 21anoy
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2020-09-29OPML export command and fixesSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-29Fix repair step and test itSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-27Create V2 mapper, Service and management commandsSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-25Move to nextcloud config and update phpunitSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-08-25Add phpstan checksSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-02-20Don't install symfony/console via composerDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2019-12-27Release 14.1.0 (#597)14.1.0Benjamin Brahmer
Changed - Minimum PHP version is now 7.2 - Reimplement full-text scraping #563 - Update for nextcloud 18 #593 #583 - Update httpLastModified from the feed response #594 Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2019-12-25Bump versions and remove outdated file (#583)Sean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2019-12-24Reimplement full-text scraping (#563)DriverXX
Add readability.php scraper Fixes #482 Signed-off-by: Gioele Falcetti <thegio.f@gmail.com>
2019-12-01Release 14.0.2 (#580)14.0.2Benjamin Brahmer
Release 14.0.2 Changed - Get content:encoded of item if available #565 - update js and php dependencies #575 Fixed - Generate enclosure div only for audio & video #567 Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2019-08-16Update to feedio 4+ (#494)Benjamin Brahmer
- bumped dependencies to last supported version travis: - removed php 7.0 - move main target to nc 16 - drop support for nc 14 & 15 Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2019-03-28move guzzle to require-devBenjamin Brahmer
2019-03-22Stop assuming encoding of xml, let simplexml throw silently (#457)Sean Molenaar
2019-03-17fix/allow CDATA encoding (#428)Sean Molenaar
2019-03-12Catch FeedIO reader exception.Sean Molenaar
Closes #413 Closes #412
2019-03-06Fix generation commands and make them available in ./occ (#402)Sean Molenaar
2019-01-30Parser: Switch to feedIO for parsing instead of picoFeedSean Molenaar
2018-12-14Define an official codestyle and adhere to it.Sean Molenaar
2018-10-23PicoFeed fixJohn Molakvoæ (skjnldsv)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-10-02Put back old tests for stable nextcloud versionSean Molenaar
2018-03-18Unit: Fix unittests (#278)Sean Molenaar
* Unit: Fix unittests Issue #171 * Tests: Move test namespace to the expected nextcloud namespace
2017-06-15Update htmlpurifier and picoFeed (#189)Daniel Schaal
picoFeed moved to miniflux/picoFeed
2017-06-06Fix travis build (#178)Daniel Schaal
* Use stable12 branch for travis * Shorten db indices to max 27 characters to satisfy app:check-code * Use precise container, downgrade to psql 9.4 * Create psql role * Fix ContentController test * Fix PageController and StatusService tests * Use OCP\IDBConnection, OCP\IDb was removed * Extend IntegrationTest from \Test\Testcase, use loginAsUser to login * Require phpunit 5, nextcloud tests not compatible with phpunit 6 Change tests to use phpunit from vendor directory
2017-04-17bump versionBernhard Posselt
2017-03-18Update version of htmlpurifier to v4.9.2 (#116)Benedikt Geißler
should fix issue #83
2017-01-04Add updatedDate to item model (#81)Daniel Schaal
* Update picoFeed to v0.1.28 * Add updated_date to database and bump version to 10.1.1 * Add updatedDate to item model * Check for updatedDate when updating a feed * Fix unit test to check for newer updatedDate
2016-12-09update picofeedBernhard Posselt
2016-12-08travis updatesBernhard Posselt
2016-12-08update depsBernhard Posselt
2016-10-02revertBernhard Posselt
2016-10-01Add updatedDate to item model (#43)Daniel Schaal
* Update picoFeed to 0.1.25 * Add updated_date to database * Add updatedDate to item model * Bump version to 9.0.5 * Check for updatedDate when updating a feed * Fix unit test to check for newer updatedDate
2016-07-23removing owncloud references and updating linksBernhard Posselt
2016-04-18lock down versions in composer.jsonBernhard Posselt
2016-04-18lock picofeed versionBernhard Posselt
2016-04-16Update ircBernhard Posselt
2016-03-26update license idsBernhard Posselt
2015-08-15swap out unlicensed libBernhard Posselt
2015-08-13fix dependencyBernhard Posselt
>(plugins_to_check)) plugins_list = stats.getAllPlugins() for plugin in plugins_to_check: self.assertTrue(plugin in plugins_list) def test_002_system(self): """Check SYSTEM plugin.""" stats_to_check = ['hostname', 'os_name'] print('INFO: [TEST_002] Check SYSTEM stats: %s' % ', '.join(stats_to_check)) stats_grab = stats.get_plugin('system').get_raw() for stat in stats_to_check: # Check that the key exist self.assertTrue(stat in stats_grab, msg='Cannot find key: %s' % stat) print('INFO: SYSTEM stats: %s' % stats_grab) def test_003_cpu(self): """Check CPU plugin.""" stats_to_check = ['system', 'user', 'idle'] print('INFO: [TEST_003] Check mandatory CPU stats: %s' % ', '.join(stats_to_check)) stats_grab = stats.get_plugin('cpu').get_raw() for stat in stats_to_check: # Check that the key exist self.assertTrue(stat in stats_grab, msg='Cannot find key: %s' % stat) # Check that % is > 0 and < 100 self.assertGreaterEqual(stats_grab[stat], 0) self.assertLessEqual(stats_grab[stat], 100) print('INFO: CPU stats: %s' % stats_grab) @unittest.skipIf(WINDOWS, "Load average not available on Windows") def test_004_load(self): """Check LOAD plugin.""" stats_to_check = ['cpucore', 'min1', 'min5', 'min15'] print('INFO: [TEST_004] Check LOAD stats: %s' % ', '.join(stats_to_check)) stats_grab = stats.get_plugin('load').get_raw() for stat in stats_to_check: # Check that the key exist self.assertTrue(stat in stats_grab, msg='Cannot find key: %s' % stat) # Check that % is > 0 self.assertGreaterEqual(stats_grab[stat], 0) print('INFO: LOAD stats: %s' % stats_grab) def test_005_mem(self): """Check MEM plugin.""" stats_to_check = ['available', 'used', 'free', 'total'] print('INFO: [TEST_005] Check MEM stats: %s' % ', '.join(stats_to_check)) stats_grab = stats.get_plugin('mem').get_raw() for stat in stats_to_check: # Check that the key exist self.assertTrue(stat in stats_grab, msg='Cannot find key: %s' % stat) # Check that % is > 0 self.assertGreaterEqual(stats_grab[stat], 0) print('INFO: MEM stats: %s' % stats_grab) def test_006_swap(self): """Check MEMSWAP plugin.""" stats_to_check = ['used', 'free', 'total'] print('INFO: [TEST_006] Check SWAP stats: %s' % ', '.join(stats_to_check)) stats_grab = stats.get_plugin('memswap').get_raw() for stat in stats_to_check: # Check that the key exist self.assertTrue(stat in stats_grab, msg='Cannot find key: %s' % stat) # Check that % is > 0 self.assertGreaterEqual(stats_grab[stat], 0) print('INFO: SWAP stats: %s' % stats_grab) def test_007_network(self): """Check NETWORK plugin.""" print('INFO: [TEST_007] Check NETWORK stats') stats_grab = stats.get_plugin('network').get_raw() self.assertTrue(type(stats_grab) is list, msg='Network stats is not a list') print('INFO: NETWORK stats: %s' % stats_grab) def test_008_diskio(self): """Check DISKIO plugin.""" print('INFO: [TEST_008] Check DISKIO stats') stats_grab = stats.get_plugin('diskio').get_raw() self.assertTrue(type(stats_grab) is list, msg='DiskIO stats is not a list') print('INFO: diskio stats: %s' % stats_grab) def test_009_fs(self): """Check File System plugin.""" # stats_to_check = [ ] print('INFO: [TEST_009] Check FS stats') stats_grab = stats.get_plugin('fs').get_raw() self.assertTrue(type(stats_grab) is list, msg='FileSystem stats is not a list') print('INFO: FS stats: %s' % stats_grab) def test_010_processes(self): """Check Process plugin.""" # stats_to_check = [ ] print('INFO: [TEST_010] Check PROCESS stats') stats_grab = stats.get_plugin('processcount').get_raw() # total = stats_grab['total'] self.assertTrue(type(stats_grab) is dict, msg='Process count stats is not a dict') print('INFO: PROCESS count stats: %s' % stats_grab) stats_grab = stats.get_plugin('processlist').get_raw() self.assertTrue(type(stats_grab) is list, msg='Process count stats is not a list') print('INFO: PROCESS list stats: %s items in the list' % len(stats_grab)) # Check if number of processes in the list equal counter # self.assertEqual(total, len(stats_grab)) def test_011_folders(self): """Check File System plugin.""" # stats_to_check = [ ] print('INFO: [TEST_011] Check FOLDER stats') stats_grab = stats.get_plugin('folders').get_raw() self.assertTrue(type(stats_grab) is list, msg='Folders stats is not a list') print('INFO: Folders stats: %s' % stats_grab) def test_012_ip(self): """Check IP plugin.""" print('INFO: [TEST_012] Check IP stats') stats_grab = stats.get_plugin('ip').get_raw() self.assertTrue(type(stats_grab) is dict, msg='IP stats is not a dict') print('INFO: IP stats: %s' % stats_grab) @unittest.skipIf(not LINUX, "IRQs available only on Linux") def test_013_irq(self): """Check IRQ plugin.""" print('INFO: [TEST_013] Check IRQ stats') stats_grab = stats.get_plugin('irq').get_raw() self.assertTrue(type(stats_grab) is list, msg='IRQ stats is not a list') print('INFO: IRQ stats: %s' % stats_grab) @unittest.skipIf(not LINUX, "GPU available only on Linux") def test_013_gpu(self): """Check GPU plugin.""" print('INFO: [TEST_014] Check GPU stats') stats_grab = stats.get_plugin('gpu').get_raw() self.assertTrue(type(stats_grab) is list, msg='GPU stats is not a list') print('INFO: GPU stats: %s' % stats_grab) def test_095_methods(self): """Test mandatories methods""" print('INFO: [TEST_095] Mandatories methods') mandatories_methods = ['reset', 'update'] plugins_list = stats.getAllPlugins() for plugin in plugins_list: for method in mandatories_methods: self.assertTrue(hasattr(stats.get_plugin(plugin), method), msg='{} has no method {}()'.format(plugin, method)) def test_096_views(self): """Test get_views method""" print('INFO: [TEST_096] Test views') plugins_list = stats.getAllPlugins() for plugin in plugins_list: stats_grab = stats.get_plugin(plugin).get_raw() views_grab = stats.get_plugin(plugin).get_views() self.assertTrue(type(views_grab) is dict, msg='{} view is not a dict'.format(plugin)) def test_097_attribute(self): """Test GlancesAttribute classe""" print('INFO: [TEST_097] Test attribute') # GlancesAttribute from glances.attribute import GlancesAttribute a = GlancesAttribute('a', description='ad', history_max_size=3) self.assertEqual(a.name, 'a') self.assertEqual(a.description, 'ad') a.description = 'adn' self.assertEqual(a.description, 'adn') a.value = 1 a.value = 2 self.assertEqual(len(a.history), 2) a.value = 3 self.assertEqual(len(a.history), 3) a