Updated sharp printer discovery and test unit

This commit is contained in:
Neil Lathwood
2016-09-16 07:59:48 +01:00
parent 5b90a71042
commit a9a982b7db
4 changed files with 14 additions and 8 deletions

View File

@@ -1538,7 +1538,7 @@ $config['os'][$os]['icon'] = 'ricoh';
$config['os'][$os]['over'][0]['graph'] = 'device_toner';
$config['os'][$os]['over'][0]['text'] = 'Toner';
$os = 'sharpprinter';
$os = 'sharp';
$config['os'][$os]['group'] = 'printer';
$config['os'][$os]['text'] = 'Sharp Printer';
$config['os'][$os]['type'] = 'printer';

View File

@@ -0,0 +1,6 @@
<?php
if (!$os) {
if (strstr($sysDescr, 'SHARP MX-')) {
$os = 'sharp';
}
}

View File

@@ -1,7 +0,0 @@
<?php
if (!$os) {
// Sharp Multifunction Printer/Scanner
if (strstr($sysDescr, 'SHARP MX-')) {
$os = 'sharpprinter';
}
}

View File

@@ -172,6 +172,13 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
$this->checkOS('qnap', 'Linux', '', $mockSnmp);
}
public function testSharp()
{
$this->checkOS('sharp', 'SHARP MX-2614N');
$this->checkOS('sharp', 'SHARP MX-C301W');
$this->checkOS('sharp', 'SHARP MX-3140N');
}
public function testSophos()
{
$this->checkOS('sophos', 'Linux g56fa85e');