From 12a428136d93599b6cf4b46aec4865f948b9a361 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Mon, 19 Sep 2016 08:33:56 -0500 Subject: [PATCH] fix: vyos discovery add discovery tests for vyos, vyatta, and edgeos --- includes/discovery/os/edgeos.inc.php | 6 ++---- includes/discovery/os/vyatta.inc.php | 6 ++---- includes/discovery/os/vyos.inc.php | 6 ++---- tests/OSDiscoveryTest.php | 17 +++++++++++++++++ 4 files changed, 23 insertions(+), 12 deletions(-) diff --git a/includes/discovery/os/edgeos.inc.php b/includes/discovery/os/edgeos.inc.php index add88a191e..54b3ecbd95 100644 --- a/includes/discovery/os/edgeos.inc.php +++ b/includes/discovery/os/edgeos.inc.php @@ -1,7 +1,5 @@ checkOS('eatonups', 'Eaton 5PX 2000'); } + public function testEdgeos() + { + $this->checkOS('edgeos', 'EdgeOS'); + } + public function testEndian() { $this->checkOS('endian', 'Linux endian'); @@ -205,6 +210,18 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase $this->checkOS('unifi', 'Linux', '.1.3.6.1.4.1.10002.1', $mockSnmp); } + public function testVyatta() + { + $this->checkOS('vyatta', 'Vyatta'); + } + + public function testVyos() + { + $this->checkOS('vyos', 'Vyatta VyOS'); + $this->checkOS('vyos', 'VyOS'); + $this->checkOS('vyos', 'vyos'); + } + public function testZxr10() { $this->checkOS('zxr10', 'ZTE Ethernet Switch ZXR10 5250-52TM-H, Version: V2.05.11B23');