Open Zempashi opened 5 years ago
=================================== FAILURES =================================== ________________ test_check_node_exporter_prometheus_endpoints _________________ request = <FixtureRequest for <Function 'test_check_node_exporter_prometheus_endpoints'>> prometheus_endpoints_res.json(), > prometheus_endpoints)) tests/post/test_prometheus.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/tests/lib/python3.6/site-packages/pytest_bdd/scenario.py:195: in _execute_scenario _execute_step_function(request, scenario, step, step_func) .tox/tests/lib/python3.6/site-packages/pytest_bdd/scenario.py:137: in _execute_step_function step_func(**kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = <FixtureRequest for <Function 'test_check_node_exporter_prometheus_endpoints'>> group_name = 'all' inventory_obj = <utils.helper.Inventory object at 0x7f6437780080> @then(parsers.parse('I should count as many endpoints as {group_name} hosts')) def count_prometheus_endpoint(request, group_name, inventory_obj): num_endpoints = len(request.prometheus_endpoints) num_nodes = len(inventory_obj.get_groups_dict()[group_name]) > assert num_endpoints == num_nodes E assert 5 == 6
Seems related to #446