librenms/tests/Unit
Tony Murray d8c372bbf4
Refactor MAC utilities into a single class (#15379)
* Refactor MAC utils to a new utility class

* Apply fixes from StyleCI

* Inline functions
Add tests
Handle bridgeid format

* Apply fixes from StyleCI

* Dedicated code path for stp bridge parsing, and improve STP output a bit

* Correctly parse dot1dBaseBridgeAddress and don't store int in bool field

* trim any unexpected character from bridge addresses, add extra test data.

* better comment

* barsBridge can handle dot1dBaseBridgeAddress correctly now

* parseBridge, check for properly formatted mac first.

* update test data, empty data = empty mac

* Fix new usage after rebase

* import

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-06 07:34:14 -05:00
..
Alert/Transports Alert transport cleanup, no_proxy support and other proxy cleanups (#14763) 2023-05-23 09:25:17 -05:00
Data Laravel 10.x Shift (#14995) 2023-05-24 22:21:54 +02:00
Util Refactor MAC utilities into a single class (#15379) 2023-10-06 07:34:14 -05:00
ApiTransportTest.php Alert transport cleanup, no_proxy support and other proxy cleanups (#14763) 2023-05-23 09:25:17 -05:00
CiHelperTest.php Laravel 10.x Shift (#14995) 2023-05-24 22:21:54 +02:00
ComponentTest.php Laravel 10.x Shift (#14995) 2023-05-24 22:21:54 +02:00
ConnectivityHelperTest.php Rename NetSnmp to SnmpQuery (#13344) 2021-10-07 17:03:53 -05:00
DeviceTest.php Laravel 10.x Shift (#14995) 2023-05-24 22:21:54 +02:00
FileCategorizerTest.php Laravel 10.x Shift (#14995) 2023-05-24 22:21:54 +02:00
LocationTest.php Laravel 10.x Shift (#14995) 2023-05-24 22:21:54 +02:00
PermissionsTest.php Apply fixes from StyleCI (#15101) 2023-06-13 13:35:00 +02:00
SnmpResponseTest.php Improve SnmpResponse value() (#14605) 2022-11-30 19:50:46 -06:00
SnmpTranslateTest.php Set mibs explicitly in SnmpQuery (#15199) 2023-08-05 14:45:15 +02:00
SqliteTest.php Laravel 10.x Shift (#14995) 2023-05-24 22:21:54 +02:00
ValidationFixTest.php Automatic fixes for validation failures (#13930) 2022-06-10 16:25:33 -05:00