mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-05 04:27:55 +00:00
cbf5cb3dae
Add a unit test for the routine that selects the blades. The test lifts the routine out of the plugin source, because the plugin needs a management node to load. The test gives the routine the row shapes that the writers of the mp table make: a management module and its blades from xCAT::PPCdb::add_systemX and the shipped mp template, a chassis that gives its hardware type, and one row for each hardware type that lsslp writes. It also shows that the handler reads the chassis attribute and that it stops before the arp table when the mp table holds no blades.