Commit Graph

1196 Commits

Author SHA1 Message Date
Tony Murray
c31b3c0301 feature: use snmpsim for testing
fallback feature so we don't have to run snmpsim on devel computers, should be adequate for now
./scripts/pre-commit.php -u -snmpsim will start an snmpsimd.py process automatically
2016-09-23 14:57:31 -05:00
Florian Beer
3272b82958 newdevice: Add OS detection for macOS Sierra (#4557)
* Add OS detection for macOS Sierra

Darwin Kernel Version 16

* Add OS discovery test for macOS Sierra
2016-09-23 12:38:22 -05:00
Neil Lathwood
edbbc7fddd fix: Fixed swos discovery 2016-09-21 22:17:51 +01:00
Neil Lathwood
b27d90162f Split out all tests to OS names 2016-09-20 20:00:35 +01:00
Neil Lathwood
936b8b2e4a Added more testing for Linux based devices 2016-09-20 19:25:37 +01:00
Neil Lathwood
15b48c4af3 rebased 2016-09-20 18:22:58 +01:00
Neil Lathwood
c16b6e6674 Merge pull request #4499 from murrant/fix-swos
fix: swos os discovery fixes #3593
2016-09-20 14:28:09 +01:00
Neil Lathwood
e2d4f43fbd refactor: Added all os tests 2016-09-20 13:22:33 +01:00
Tony Murray
a7e9976f8f fix: swos os discovery 2016-09-19 13:43:17 -05:00
Neil Lathwood
7ad946f85d refactor: F5 device discovery cleanup + test unit
refactor: F5 device discovery cleanup + test unit
2016-09-19 16:10:20 +01:00
Neil Lathwood
6c07e4dc06 fix: vyos discovery fix #4486
fix: vyos discovery fix #4486
2016-09-19 16:09:02 +01:00
Tony Murray
aceb572065 refactor: F5 discovery cleanup 2016-09-19 08:46:19 -05:00
Tony Murray
12a428136d fix: vyos discovery
add discovery tests for vyos, vyatta, and edgeos
2016-09-19 08:33:56 -05:00
Neil Lathwood
fa330cf333 Added Callmanager test 2016-09-18 19:11:10 +01:00
Neil Lathwood
a9a982b7db Updated sharp printer discovery and test unit 2016-09-16 07:59:48 +01:00
Tony Murray
6d93dc0572 newdevice: Add support for APC Netbotz 200 (#4443)
Unfortunately, it is clobbered by other devices because it returns a value for all sorts of snmpget requests
2016-09-15 08:21:29 +01:00
Tony Murray
7f7e3d22bc Fix: NIOS detection #4420 2016-09-13 22:16:02 +01:00
Neil Lathwood
a710c4a33c newdevice: Added support for Axis network video encoder #4395 (#4400)
* newdevice: Added support for Axis network video encoder #4395

* Merge the preg_match

* Add Network Camera test

Couldn't find one for "Video Server"
2016-09-12 12:19:24 -05:00
Neil Lathwood
66bc0a7826 newdevice: Updated zxr10 device support #4380 (#4381)
* newdevice: Updated zxr10 device support #4380

* Space :(
2016-09-09 12:10:58 -05:00
Neil Lathwood
f76f0f7b96 newdevice: Added support for Eaton 5P units #3508 (#4376)
* newdevice: Added support for Eaton 5P units #3508

* Small fix

* Keep OSDiscoveryTest.php alphebetized
2016-09-09 11:57:05 -05:00
Tony Murray
1bff4f4a55 Update OSDiscoveryTest.php (#4390)
remove hostname
2016-09-09 10:22:35 -05:00
Tony Murray
b8cc59922e fix: NIOS discovery (#4389)
* fix: NIOS discovery
Add nios test

* Add actual sysDescr string for nios
2016-09-09 15:57:40 +01:00
Neil Lathwood
5ea4d3154d Small change from previous PR (#4357) 2016-09-06 11:58:22 +01:00
Tony Murray
f6134f429c refactor: OS Discovery cleanup (Part 1) (#4335)
* refactor: OS Discovery cleanup (Part 1)
Convert linux.inc.php to use new string functions
Create OS discovery tests
Use glob instead of readdir in os discovery (could change discovery order)
Stop discovering once $os is set

* Remove duplicate file header.
2016-09-06 11:43:04 +01:00
Tony Murray
9b93fc5fd7 Combined case sensitive and insensitive functions
Added tests
2016-08-31 00:11:04 -05:00
Tony Murray
abc6a5b799 PSR-2 Final cleanup (#4247)
refactor: Final PSR2 cleanup
2016-08-28 23:32:55 +01:00
Tony Murray
7b93b564da Centralize class loader (#4169)
Move the classloader to as early as possible in defaults.inc.php
This should cover all application entrances.
Set install_dir based on the location of defaults.inc.php
2016-08-22 23:59:59 +01:00
Tony Murray
e80a385b7f RRDtool dual process (remote creation/check) (#4104)
* Prepare for dual rrdtool processes
Disabled at this time
Split out rrdtool version checks into rrdtool_create_command()
Tests for rrdtool_create_command()
Fixes a few small issues.

* Enable dual process and remote rrd check/creation

* remove full path for remote commands

* Doc updates
minor fix to rrdtool_tune()

* Set up bootstrap for phpunit
Fix issues with FileExistsException

* Attempt to fix phpunit

* Fix classloader and bootstrap to use full paths only (not depending on $config)

* Fix phpunit tests, config.php does not exist.
2016-08-22 16:32:05 +01:00
Tony Murray
65f929d1f2 Fix log entries with timestamps included and incorrect time (leading * or .)
Issue #3316
2016-04-12 00:05:16 -05:00
Tony Murray
81a626713a Fix indentation. 2016-03-09 14:31:00 -06:00
Tony Murray
d59fc01b61 Another test case for the cisco syslog timestamp prefix. 2016-03-09 10:49:12 -06:00
Tony Murray
33c4cca8a4 Reduce memory cosumption for tests by running one assert at a time rather than building all the data then testing. 2016-03-09 09:07:00 -06:00
Tony Murray
bca965e2ae Some devices have "logging timestamp" enabled, try to remove that from the start of the message.
Fixes #3199
2016-03-09 08:20:51 -06:00
Neil Lathwood
ab67f7870c Merge pull request #3171 from Ultra2D/syslog-trim
Syslog trim whitespace
2016-03-05 11:26:09 +00:00
Ultra2D
f97f9c824b Added syslog Procurve unit testing 2016-03-05 11:59:49 +01:00
Ultra2D
fb34fb7ab5 Syslog trim whitespace 2016-03-05 11:06:29 +01:00
Neil Lathwood
7ea7bd4c92 Merge pull request #3036 from Ultra2D/issue-3035
Linux syslog processing cleanup
2016-03-04 23:34:00 +00:00
Ultra2D
488f7f44c4 array_walk does not work like that, apparently input is trimmed later on 2016-03-04 15:51:49 +01:00
Ultra2D
99cd9f96cf Proper tags and facilities; additional example 2016-03-04 15:18:24 +01:00
Ultra2D
24d7926ea6 Fix build failure 2016-03-04 13:10:07 +01:00
Ultra2D
70ad24157f PHPunit tests for Linux syslog parsing 2016-03-04 12:32:06 +01:00
Ultra2D
9773b3bade Tabs to spaces 2016-03-04 11:30:11 +01:00
laf
f395cbdefe Updated to work with php 5.3 2016-03-03 21:21:28 +00:00
laf
89f0952bc3 Couple of small fixes 2016-03-03 19:56:18 +00:00
Tony Murray
2af1b517e5 Notifcation and tab->spaces fix. 2016-03-03 06:46:39 -06:00
Tony Murray
734d1bcd9d PHPunit tests for Cisco syslog parsing. 2016-03-03 00:06:53 -06:00