disable content-type randomization for some ml tests
post_data and get_model seem to support json only Original commit: elastic/x-pack-elasticsearch@683f998228
This commit is contained in:
parent
33ccc3bd6c
commit
39ccc67a7b
|
@ -1,4 +1,7 @@
|
||||||
setup:
|
setup:
|
||||||
|
- skip:
|
||||||
|
features: ["headers"]
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
xpack.ml.put_job:
|
xpack.ml.put_job:
|
||||||
job_id: foo
|
job_id: foo
|
||||||
|
@ -26,6 +29,9 @@ setup:
|
||||||
job_id: foo
|
job_id: foo
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
index:
|
index:
|
||||||
index: .ml-anomalies-foo
|
index: .ml-anomalies-foo
|
||||||
type: model_snapshot
|
type: model_snapshot
|
||||||
|
@ -62,6 +68,9 @@ setup:
|
||||||
}
|
}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
index:
|
index:
|
||||||
index: .ml-anomalies-foo
|
index: .ml-anomalies-foo
|
||||||
type: model_snapshot
|
type: model_snapshot
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
setup:
|
setup:
|
||||||
|
- skip:
|
||||||
|
features: ["headers"]
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
indices.create:
|
indices.create:
|
||||||
index: .ml-anomalies-foo
|
index: .ml-anomalies-foo
|
||||||
|
@ -10,6 +13,9 @@ setup:
|
||||||
type: date
|
type: date
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
index:
|
index:
|
||||||
index: .ml-anomalies-foo
|
index: .ml-anomalies-foo
|
||||||
type: model_snapshot
|
type: model_snapshot
|
||||||
|
@ -17,6 +23,9 @@ setup:
|
||||||
body: { "job_id": "foo", "snapshot_id": "1", "timestamp": "2016-06-02T00:00:00Z" }
|
body: { "job_id": "foo", "snapshot_id": "1", "timestamp": "2016-06-02T00:00:00Z" }
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
index:
|
index:
|
||||||
index: .ml-anomalies-foo
|
index: .ml-anomalies-foo
|
||||||
type: model_snapshot
|
type: model_snapshot
|
||||||
|
|
|
@ -54,8 +54,13 @@ setup:
|
||||||
|
|
||||||
---
|
---
|
||||||
"Test get job stats after uploading data prompting the creation of some stats":
|
"Test get job stats after uploading data prompting the creation of some stats":
|
||||||
|
- skip:
|
||||||
|
features: ["headers"]
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
xpack.ml.post_data:
|
xpack.ml.post_data:
|
||||||
job_id: job-stats-test
|
job_id: job-stats-test
|
||||||
body: >
|
body: >
|
||||||
|
@ -83,8 +88,13 @@ setup:
|
||||||
|
|
||||||
---
|
---
|
||||||
"Test get job stats for closed job":
|
"Test get job stats for closed job":
|
||||||
|
- skip:
|
||||||
|
features: ["headers"]
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
xpack.ml.post_data:
|
xpack.ml.post_data:
|
||||||
job_id: job-stats-test
|
job_id: job-stats-test
|
||||||
body: >
|
body: >
|
||||||
|
|
|
@ -38,7 +38,13 @@ setup:
|
||||||
|
|
||||||
---
|
---
|
||||||
"Test POST data job api, flush, close and verify DataCounts doc":
|
"Test POST data job api, flush, close and verify DataCounts doc":
|
||||||
|
- skip:
|
||||||
|
features: ["headers"]
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
xpack.ml.post_data:
|
xpack.ml.post_data:
|
||||||
job_id: farequote
|
job_id: farequote
|
||||||
body: >
|
body: >
|
||||||
|
@ -105,13 +111,22 @@ setup:
|
||||||
|
|
||||||
---
|
---
|
||||||
"Test POST data with invalid parameters":
|
"Test POST data with invalid parameters":
|
||||||
|
- skip:
|
||||||
|
features: ["headers"]
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
catch: missing
|
catch: missing
|
||||||
xpack.ml.post_data:
|
xpack.ml.post_data:
|
||||||
job_id: not_a_job
|
job_id: not_a_job
|
||||||
body: {}
|
body: {}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
catch: /parse_exception/
|
catch: /parse_exception/
|
||||||
xpack.ml.post_data:
|
xpack.ml.post_data:
|
||||||
job_id: farequote
|
job_id: farequote
|
||||||
|
@ -121,6 +136,9 @@ setup:
|
||||||
{"airline":"JZA","responsetime":"990.4628","sourcetype":"farequote","time":"1403481600"}
|
{"airline":"JZA","responsetime":"990.4628","sourcetype":"farequote","time":"1403481600"}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
catch: /parse_exception/
|
catch: /parse_exception/
|
||||||
xpack.ml.post_data:
|
xpack.ml.post_data:
|
||||||
job_id: farequote
|
job_id: farequote
|
||||||
|
@ -168,17 +186,29 @@ setup:
|
||||||
|
|
||||||
---
|
---
|
||||||
"Test flushing, posting and closing a closed job":
|
"Test flushing, posting and closing a closed job":
|
||||||
|
- skip:
|
||||||
|
features: ["headers"]
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
catch: /status_exception/
|
catch: /status_exception/
|
||||||
xpack.ml.flush_job:
|
xpack.ml.flush_job:
|
||||||
job_id: closed_job
|
job_id: closed_job
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
catch: /status_exception/
|
catch: /status_exception/
|
||||||
xpack.ml.close_job:
|
xpack.ml.close_job:
|
||||||
job_id: closed_job
|
job_id: closed_job
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
catch: /status_exception/
|
catch: /status_exception/
|
||||||
xpack.ml.post_data:
|
xpack.ml.post_data:
|
||||||
job_id: closed_job
|
job_id: closed_job
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
setup:
|
setup:
|
||||||
|
- skip:
|
||||||
|
features: ["headers"]
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
indices.create:
|
indices.create:
|
||||||
index: .ml-anomalies-foo
|
index: .ml-anomalies-foo
|
||||||
|
@ -10,6 +13,9 @@ setup:
|
||||||
type: date
|
type: date
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
index:
|
index:
|
||||||
index: .ml-anomalies-foo
|
index: .ml-anomalies-foo
|
||||||
type: model_snapshot
|
type: model_snapshot
|
||||||
|
@ -22,6 +28,9 @@ setup:
|
||||||
}
|
}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
#set the header so we won't randomize it
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
index:
|
index:
|
||||||
index: .ml-anomalies-foo
|
index: .ml-anomalies-foo
|
||||||
type: model_snapshot
|
type: model_snapshot
|
||||||
|
|
Loading…
Reference in New Issue