Fixed typo jnxPowerSupplyOK (#12556)

* Fixed typo jnxPowerSupplyOK

* Fixed unit tests for jnxPowerSupplyOK
This commit is contained in:
Heath Barnhart
2021-02-24 15:56:26 -06:00
committed by GitHub
parent c6acd86528
commit e12bdbea55
2 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ return [
'JUNIPER-LDP-MIB::jnxLdpSesDown' => \LibreNMS\Snmptrap\Handlers\JnxLdpSesDown::class,
'JUNIPER-LDP-MIB::jnxLdpSesUp' => \LibreNMS\Snmptrap\Handlers\JnxLdpSesUp::class,
'JUNIPER-MIB::jnxPowerSupplyFailure' => \LibreNMS\Snmptrap\Handlers\JnxPowerSupplyFailure::class,
'JUNIPER-MIB::jnxPowerSupplyOk' => \LibreNMS\Snmptrap\Handlers\JnxPowerSupplyOk::class,
'JUNIPER-MIB::jnxPowerSupplyOK' => \LibreNMS\Snmptrap\Handlers\JnxPowerSupplyOk::class,
'JUNIPER-VPN-MIB::jnxVpnIfDown' => \LibreNMS\Snmptrap\Handlers\JnxVpnIfDown::class,
'JUNIPER-VPN-MIB::jnxVpnIfUp' => \LibreNMS\Snmptrap\Handlers\JnxVpnIfUp::class,
'JUNIPER-VPN-MIB::jnxVpnPwDown' => \LibreNMS\Snmptrap\Handlers\JnxVpnPwDown::class,

View File

@@ -62,7 +62,7 @@ SNMPv2-MIB::snmpTrapEnterprise.0 JUNIPER-CHASSIS-DEFINES-MIB::jnxProductNameMX96
$trapText = "$device->hostname
UDP: [$device->ip]:49716->[10.0.0.1]:162
DISMAN-EVENT-MIB::sysUpTimeInstance 470:23:25:41.21
SNMPv2-MIB::snmpTrapOID.0 JUNIPER-MIB::jnxPowerSupplyOk
SNMPv2-MIB::snmpTrapOID.0 JUNIPER-MIB::jnxPowerSupplyOK
JUNIPER-MIB::jnxContentsContainerIndex.2.4.0.0 2
JUNIPER-MIB::jnxContentsL1Index.2.4.0.0 4
JUNIPER-MIB::jnxContentsL2Index.2.4.0.0 0
@@ -75,6 +75,6 @@ SNMPv2-MIB::snmpTrapEnterprise.0 JUNIPER-CHASSIS-DEFINES-MIB::jnxProductNameMX96
$message = 'Power Supply PEM 4 is OK';
\Log::shouldReceive('event')->once()->with($message, $device->device_id, 'trap', 1);
$this->assertTrue(Dispatcher::handle($trap), 'Could not handle JnxPowerSupplyOk');
$this->assertTrue(Dispatcher::handle($trap), 'Could not handle JnxPowerSupplyOK');
}
}