예제 #1
0
def test_discover_datapower_fan(datapower_fan_plugin: CheckPlugin) -> None:
    assert list(datapower_fan_plugin.discovery_function(_SECTION)) == [
        Service(item="Tray 1 Fan 1"),
        Service(item="Tray 1 Fan 2"),
        Service(item="Tray 1 Fan 3"),
        Service(item="Tray 1 Fan 4"),
    ]
예제 #2
0
def test_discover_scaleio_devices(scaleio_devices: CheckPlugin) -> None:
    assert list(scaleio_devices.discovery_function(_SECTION)) == [
        Service(item="devices"),
    ]