def step_impl_then_get_facets(context, keys): assert_200(context.response) expect_json_contains(context.response, '_facets') data = get_json_data(context.response) facets = data['_facets'] for key in keys.split(','): assert_in(key, facets)
def step_impl_then_get_aggs(context, keys): assert_200(context.response) expect_json_contains(context.response, '_aggregations') data = get_json_data(context.response) aggs = data['_aggregations'] for key in keys.split(','): assert_in(key, aggs)
def step_impl_then_get_facets(context, keys): assert_200(context.response) expect_json_contains(context.response, '_facets') data = get_json_data(context.response) facets = data['_facets'] for key in keys.split(','): assert_in(key, facets)
def step_impl_then_get_aggs(context, keys): assert_200(context.response) expect_json_contains(context.response, '_aggregations') data = get_json_data(context.response) aggs = data['_aggregations'] for key in keys.split(','): assert_in(key, aggs)