From 7282174320c7ec9367bddd26fa6f14e424c8480a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 6 Jul 2020 16:03:59 -0700 Subject: include new-style preservation+release_type aggs in container stats --- python/tests/web_search.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'python/tests') diff --git a/python/tests/web_search.py b/python/tests/web_search.py index 1e9b61b3..c90ad6e5 100644 --- a/python/tests/web_search.py +++ b/python/tests/web_search.py @@ -114,7 +114,18 @@ def test_container_stats(app, mocker): 'container_stats': {'buckets': { 'is_preserved': {'doc_count': 461939}, 'in_kbart': {'doc_count': 461939}, - 'in_web': {'doc_count': 2797}}}}, + 'in_web': {'doc_count': 2797}}}, + 'preservation': { + 'doc_count_error_upper_bound': 0, 'sum_other_doc_count': 0, + 'buckets': [{'key': 'bright', 'doc_count': 4143}, {'key': 'none', + 'doc_count': 101}, {'key': 'dark', 'doc_count': 79}, {'key': + 'shadows_only', 'doc_count': 5}]}, + 'release_type': { + 'doc_count_error_upper_bound': 0, 'sum_other_doc_count': 0, + 'buckets': [{'key': 'article-journal', 'doc_count': 4324}, {'key': + 'article', 'doc_count': 2}, {'key': '_unknown', 'doc_count': 1}, + {'key': 'editorial', 'doc_count': 1}]}, + }, 'hits': {'total': 461939, 'hits': [], 'max_score': 0.0}, '_shards': {'successful': 5, 'total': 5, 'skipped': 0, 'failed': 0}, 'took': 50 -- cgit v1.2.3