def test_read_config_wrapper_exception(mock_read_config): """Verify the exceptions raised in read_config_wrapper.""" result = cluster.read_config_wrapper() assert list(result.failed_items.keys())[0] == WazuhError(1001)
def test_read_config_wrapper(mock_read_config): """Verify that the read_config_wrapper returns the default configuration.""" result = cluster.read_config_wrapper() assert result.affected_items == [default_config]