def test_attribute_defaults(monkeypatch, ipaddress): hostname = "testhost" Scenario().add_host(hostname).apply(monkeypatch) # NOTE: pylint is quite buggy when it comes to class hierarchies and abstract methods! source = IPMIManagementBoardDataSource(hostname, ipaddress) # pylint: disable=abstract-class-instantiated assert source.id() == "mgmt_ipmi" assert source.title() == "Management board - IPMI" assert source._cpu_tracking_id() == source.id() assert source._gather_check_plugin_names() == {"mgmt_ipmi_sensors"} assert source._summary_result("anything will do") == (0, "Version: unknown", []) assert source._get_ipmi_version() == "unknown"
def test_attribute_defaults(monkeypatch, ipaddress): hostname = "testhost" Scenario().add_host(hostname).apply(monkeypatch) source = IPMIManagementBoardDataSource(hostname, ipaddress) assert source._for_mgmt_board is True assert source._hostname == hostname # Address comes from management board. assert source._ipaddress is None assert source.id() == "mgmt_ipmi" assert source.title() == "Management board - IPMI" assert source._cpu_tracking_id() == source.id() assert source._gather_check_plugin_names() == {"mgmt_ipmi_sensors"} assert source._summary_result(True) == (0, "Version: unknown", []) assert source._get_ipmi_version() == "unknown"