elastic: add more backend tests (#59312)

* elastic: added backend snapshot tests

* linter fixes
This commit is contained in:
Gábor Farkas
2022-11-28 14:59:57 +01:00
committed by GitHub
parent a7b2943dd1
commit f1dfaa784a
20 changed files with 1818 additions and 3 deletions
@@ -0,0 +1,56 @@
{
"took": 7,
"responses": [
{
"took": 7,
"timed_out": false,
"_shards": { "total": 1, "successful": 1, "skipped": 0, "failed": 0 },
"hits": { "total": { "value": 255, "relation": "eq" }, "max_score": null, "hits": [] },
"aggregations": {
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "val3",
"doc_count": 79,
"2": {
"buckets": [
{ "key_as_string": "1668422400000", "key": 1668422400000, "doc_count": 0 },
{ "key_as_string": "1668422460000", "key": 1668422460000, "doc_count": 27 },
{ "key_as_string": "1668422520000", "key": 1668422520000, "doc_count": 21 },
{ "key_as_string": "1668422580000", "key": 1668422580000, "doc_count": 31 }
]
}
},
{
"key": "val2",
"doc_count": 89,
"2": {
"buckets": [
{ "key_as_string": "1668422400000", "key": 1668422400000, "doc_count": 0 },
{ "key_as_string": "1668422460000", "key": 1668422460000, "doc_count": 28 },
{ "key_as_string": "1668422520000", "key": 1668422520000, "doc_count": 22 },
{ "key_as_string": "1668422580000", "key": 1668422580000, "doc_count": 39 }
]
}
},
{
"key": "val1",
"doc_count": 87,
"2": {
"buckets": [
{ "key_as_string": "1668422400000", "key": 1668422400000, "doc_count": 0 },
{ "key_as_string": "1668422460000", "key": 1668422460000, "doc_count": 26 },
{ "key_as_string": "1668422520000", "key": 1668422520000, "doc_count": 20 },
{ "key_as_string": "1668422580000", "key": 1668422580000, "doc_count": 41 }
]
}
}
]
}
},
"status": 200
}
]
}