[TEST] Remove broken test from jobs_get_result_categories.yaml
The YAML framework randomly sends the body wrapped in a `source` field if the API supports GET. Our API doesn't handle `source`. Taking the test out. relates elastic/x-pack-elasticsearch#1200 Original commit: elastic/x-pack-elasticsearch@fa77c071b2
This commit is contained in:
parent
ee650b3189
commit
9828161cff
|
@ -69,32 +69,6 @@ setup:
|
||||||
- match: { categories.0.job_id: farequote }
|
- match: { categories.0.job_id: farequote }
|
||||||
- match: { categories.0.category_id: 2 }
|
- match: { categories.0.category_id: 2 }
|
||||||
|
|
||||||
---
|
|
||||||
"Test post get categories with pagination":
|
|
||||||
- do:
|
|
||||||
xpack.ml.get_categories:
|
|
||||||
job_id: "farequote"
|
|
||||||
body: >
|
|
||||||
{
|
|
||||||
"page": { "size": 1}
|
|
||||||
}
|
|
||||||
|
|
||||||
- length: { categories: 1 }
|
|
||||||
- match: { categories.0.job_id: farequote }
|
|
||||||
- match: { categories.0.category_id: 1 }
|
|
||||||
|
|
||||||
- do:
|
|
||||||
xpack.ml.get_categories:
|
|
||||||
job_id: "farequote"
|
|
||||||
body: >
|
|
||||||
{
|
|
||||||
"page": { "from":1, "size": 1}
|
|
||||||
}
|
|
||||||
|
|
||||||
- length: { categories: 1 }
|
|
||||||
- match: { categories.0.job_id: farequote }
|
|
||||||
- match: { categories.0.category_id: 2 }
|
|
||||||
|
|
||||||
---
|
---
|
||||||
"Test get category by id":
|
"Test get category by id":
|
||||||
- do:
|
- do:
|
||||||
|
|
Loading…
Reference in New Issue