Skip to content

Commit

Permalink
added yaml test
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed May 17, 2024
1 parent a782e1e commit 26518c7
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,38 @@ setup:
"metrics": ["min", "max", "sum"]
}
]
---
"Deprecation validation failure":

- do:
indices.delete:
index: dummy-rollup-index

- do:
catch: /new rollup jobs are not allowed in clusters that don't have any rollup usage, since rollup has been deprecated/
headers:
Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser
rollup.put_job:
id: foo
body: >
{
"index_pattern": "foo",
"rollup_index": "foo_rollup",
"cron": "*/30 * * * * ?",
"page_size" :10,
"groups" : {
"date_histogram": {
"field": "the_field",
"calendar_interval": "1h"
}
},
"metrics": [
{
"field": "field_doesnt_exist",
"metrics": ["min", "max", "sum"]
}
]
}
---
Expand Down

0 comments on commit 26518c7

Please sign in to comment.