Commit Graph
21 Commits
Author SHA1 Message Date
Tony MurrayandGitHub 1b1907a09f Update database tests to prepare for more (#6500)
* Update database tests to prepare for more
Add test_db_name, test_db_user, test_db_pass to allow developers to have a dedicated testing database.
Extract DBTestCase to include common functionality for database based tests. Use transactions to isolate tests.
Enable STRICT_TRANS_TABLE, test for it's existence (only when we have a user that can set it)
Move the database cleanup to register_shutdown_function, this makes it happen every time at the end of tests.
If the was not empty, only truncate the tables (that aren't prepopulated) instead of drop the database.
Use our schema functions for schema tests.
Fix some missing array indexes so it doesn't clutter test output.

* Fix style
2017-04-26 07:56:00 -05:00
Tony MurrayandNeil Lathwood b1a414e785 feature: support non-standard unix socket (#5724)
* Add support for custom MySQL unix-socket

* NULL must be lowercase!

* Naive edit of html/install.php

* fixup

* Refactor dbConnect
Use it everywhere

* $config needs to be global
Don't need to set $database_link

* small cleanups
2017-04-06 22:02:37 +01:00
Neil LathwoodandTony Murray cf509f138b fix: Fixed the dbTest units so they work (#6293)
* fix: Fixed the dbTest units so they work

* fix schema, should now pass
2017-03-29 16:13:30 -05:00
Falk SternandTony Murray affe5090f4 feature: Send collected data to graphite server (#6201)
* Initial support for graphite

* Enable graphite include

* fixed typos.

* Fixed port naming to graphite metric names

* Added documentation for Graphite

* added documentation for graphite

* fixed style

* replace / with _ in interface names for graphite

* sets default graphite port

* adds rrd-name tags to the metric, otherwise metrics get lost

* add suggested storage schema for graphite

* add whitespace

* Updated to show some output

* bad english
2017-03-22 10:35:44 -05:00
Neil LathwoodandGitHub 296360b204 fix: Update OSTicket transport to use the from email address #5739 (#5927) 2017-03-03 18:22:33 +00:00
Neil LathwoodandGitHub 24a5f6bd37 Db collation standardisation (#5932)
* initial work to standardise collation

* more updates

* final bits for collation update (famous last words)

* Rename 165.sql to 166.sql

* Update schema version inside 166.sql

* moved schema file 166->171
2017-02-27 18:28:01 +00:00
Neil LathwoodandGitHub 200b762478 feature: Added phpunit db setup tests (#5594) 2017-02-07 15:08:52 +00:00
David BellandNeil Lathwood 5dd030f438 refactor: Added config option for database port (#5517) 2017-01-27 23:16:04 +00:00
Tony MurrayandNeil Lathwood afe887d85e webui: New LibreNMS logo assets (#5629) 2017-01-27 18:02:49 +00:00
Tony MurrayandNeil Lathwood 2f1095cb8d fix: html purify init wasn't done always when it was used (#5626) 2017-01-26 19:23:03 +00:00
Tony MurrayandNeil Lathwood 59706194bf refactor: move HTMLPurifier init to init.php so we only create one object. (#5601) 2017-01-25 20:56:59 +00:00
Neil LathwoodandSøren Rosiak e552bb4a95 fix: dark/mono logo was incorrect (#5342) 2017-01-08 15:08:12 +02:00
Tony MurrayandNeil Lathwood e20a242785 refactor: use Composer to manage php dependencies (#5216) 2017-01-01 09:37:15 +00:00
Neil LathwoodandGitHub c06cceeeb5 fix: Fixed passing of data to load_all_os() function (#5235) 2016-12-24 18:53:50 +00:00
Neil LathwoodandGitHub f5a16be0e3 refactor: Move OS definitions into yaml files (#5189) 2016-12-23 17:53:19 +00:00
barryodonovanandNeil Lathwood fc941bc14e feature: enable override of $config values set in includes/definitions.inc.php (#5096) 2016-12-09 18:38:21 +00:00
Neil LathwoodandGitHub 78f5c26cd6 fix: Allow html but not script, head and html tags in notes widget #4898 (#5006) 2016-11-26 20:54:49 +00:00
Neil LathwoodandGitHub 58582c82c1 fix: Fixed loaded modules for ajax search (#5043)
* fix: Fixed loaded modules for ajax search

* fixed eventlog widget
2016-11-22 09:46:41 +00:00
Tony MurrayandGitHub ccb76a7de9 fix: init php 5.3 (#5042)
This will require a git pull.
2016-11-22 02:14:19 -06:00
Tony MurrayandGitHub d9bcd53eda fix: always include rewrites.php (#5040) 2016-11-21 19:18:18 -06:00
Tony MurrayandNeil Lathwood 9a33464c52 refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00