Skip to content
This repository was archived by the owner on Nov 14, 2021. It is now read-only.

Commit 3210a09

Browse files
committed
Updated tests for new ES2 queries and pipeline aggs.
1 parent c059c52 commit 3210a09

26 files changed

Lines changed: 239 additions & 46 deletions

tests/aggregates/avg_bucket.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"args": ["agg_name", "buckets_name"],
3+
"output": {
4+
"agg_name": {
5+
"avg_bucket": {
6+
"buckets_path": "buckets_name"
7+
}
8+
}
9+
}
10+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"args": ["agg_name", {"path": "buckets"}],
3+
"output": {
4+
"agg_name": {
5+
"bucket_script": {
6+
"buckets_path": {
7+
"path": "buckets"
8+
}
9+
}
10+
}
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"args": ["agg_name", {"path": "buckets"}],
3+
"output": {
4+
"agg_name": {
5+
"bucket_selector": {
6+
"buckets_path": {
7+
"path": "buckets"
8+
}
9+
}
10+
}
11+
}
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"args": ["agg_name", "buckets_name"],
3+
"output": {
4+
"agg_name": {
5+
"cumulative_sum": {
6+
"buckets_path": "buckets_name"
7+
}
8+
}
9+
}
10+
}

tests/aggregates/derivative.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"args": ["agg_name", "buckets_name"],
3+
"output": {
4+
"agg_name": {
5+
"derivative": {
6+
"buckets_path": "buckets_name"
7+
}
8+
}
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"args": ["agg_name", "buckets_name"],
3+
"output": {
4+
"agg_name": {
5+
"extended_stats_bucket": {
6+
"buckets_path": "buckets_name"
7+
}
8+
}
9+
}
10+
}

tests/aggregates/max_bucket.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"args": ["agg_name", "buckets_name"],
3+
"output": {
4+
"agg_name": {
5+
"max_bucket": {
6+
"buckets_path": "buckets_name"
7+
}
8+
}
9+
}
10+
}

tests/aggregates/min_bucket.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"args": ["agg_name", "buckets_name"],
3+
"output": {
4+
"agg_name": {
5+
"min_bucket": {
6+
"buckets_path": "buckets_name"
7+
}
8+
}
9+
}
10+
}

tests/aggregates/moving_avg.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"args": ["agg_name", "buckets_name"],
3+
"output": {
4+
"agg_name": {
5+
"moving_avg": {
6+
"buckets_path": "buckets_name"
7+
}
8+
}
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"args": ["agg_name", "buckets_name"],
3+
"output": {
4+
"agg_name": {
5+
"percentiles_bucket": {
6+
"buckets_path": "buckets_name"
7+
}
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)