From f11df2c0c7d82c6771431312cf7f021c735ddd9d Mon Sep 17 00:00:00 2001 From: David Kyle Date: Tue, 11 Apr 2017 14:56:52 +0100 Subject: [PATCH] [ML] Give the jobs in index_layout.yaml more meaningful names (elastic/x-pack-elasticsearch#1047) For debugging the CI failures Original commit: elastic/x-pack-elasticsearch@5f6a3d1c6dfeb3655c5e8f12615a65dc9f15dc71 --- .../rest-api-spec/test/ml/index_layout.yaml | 78 +++++++++---------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/plugin/src/test/resources/rest-api-spec/test/ml/index_layout.yaml b/plugin/src/test/resources/rest-api-spec/test/ml/index_layout.yaml index e58244a5978..8b2df232b3a 100644 --- a/plugin/src/test/resources/rest-api-spec/test/ml/index_layout.yaml +++ b/plugin/src/test/resources/rest-api-spec/test/ml/index_layout.yaml @@ -3,10 +3,10 @@ - do: xpack.ml.put_job: - job_id: farequote + job_id: index-layout-job body: > { - "job_id":"farequote", + "job_id":"index-layout-job", "description":"Analysis of response time by airline", "analysis_config" : { "bucket_span": "1h", @@ -18,15 +18,15 @@ "time_format":"epoch" } } - - match: { job_id: "farequote" } + - match: { job_id: "index-layout-job" } - do: xpack.ml.put_job: - job_id: farequote2 + job_id: index-layout-job2 body: > { - "job_id":"farequote2", + "job_id":"index-layout-job2", "description":"Analysis of response time by airline", "analysis_config" : { "bucket_span": "1h", @@ -38,26 +38,26 @@ "time_format":"epoch" } } - - match: { job_id: "farequote2" } + - match: { job_id: "index-layout-job2" } - do: xpack.ml.open_job: - job_id: farequote + job_id: index-layout-job - do: xpack.ml.open_job: - job_id: farequote2 + job_id: index-layout-job2 - do: xpack.ml.post_data: - job_id: farequote + job_id: index-layout-job body: > {"airline":"AAL","responsetime":"132.2046","sourcetype":"farequote","time":"1403481600"} {"airline":"JZA","responsetime":"990.4628","sourcetype":"farequote","time":"1403481700"} - do: xpack.ml.post_data: - job_id: farequote2 + job_id: index-layout-job2 body: > {"airline":"AAL","responsetime":"132.2046","sourcetype":"farequote","time":"1403481600"} {"airline":"JZA","responsetime":"990.4628","sourcetype":"farequote","time":"1403481700"} @@ -65,23 +65,23 @@ - do: xpack.ml.flush_job: - job_id: farequote + job_id: index-layout-job - match: { flushed: true } - do: xpack.ml.flush_job: - job_id: farequote2 + job_id: index-layout-job2 - match: { flushed: true } - do: xpack.ml.close_job: - job_id: farequote + job_id: index-layout-job - match: { closed: true } - do: xpack.ml.close_job: - job_id: farequote2 + job_id: index-layout-job2 - match: { closed: true } - do: @@ -91,7 +91,7 @@ - do: indices.exists: - index: ".ml-anomalies-farequote" + index: ".ml-anomalies-index-layout-job" - is_true: '' - do: @@ -109,13 +109,13 @@ - do: count: - index: .ml-anomalies-farequote + index: .ml-anomalies-index-layout-job body: query: constant_score: filter: term: - job_id: farequote + job_id: index-layout-job - match: {count: 4} @@ -127,19 +127,19 @@ constant_score: filter: term: - job_id: farequote + job_id: index-layout-job - match: {count: 4} - do: count: - index: .ml-anomalies-farequote2 + index: .ml-anomalies-index-layout-job2 body: query: constant_score: filter: term: - job_id: farequote2 + job_id: index-layout-job2 - match: {count: 4} @@ -151,7 +151,7 @@ constant_score: filter: term: - job_id: farequote2 + job_id: index-layout-job2 - match: {count: 4} # Put some categorizer state @@ -159,7 +159,7 @@ index: index: .ml-state type: categorizer_state - id: farequote2#1 + id: index-layout-job2#1 body: key: value @@ -167,13 +167,13 @@ index: index: .ml-state type: categorizer_state - id: farequote2#2 + id: index-layout-job2#2 body: key: value - do: xpack.ml.delete_job: - job_id: "farequote" + job_id: "index-layout-job" - match: { acknowledged: true } - do: @@ -197,7 +197,7 @@ constant_score: filter: term: - job_id: farequote + job_id: index-layout-job - match: {count: 0} - do: @@ -208,13 +208,13 @@ - do: count: - index: .ml-anomalies-farequote2 + index: .ml-anomalies-index-layout-job2 body: query: constant_score: filter: term: - job_id: farequote2 + job_id: index-layout-job2 - match: {count: 4} @@ -226,13 +226,13 @@ constant_score: filter: term: - job_id: farequote2 + job_id: index-layout-job2 - match: {count: 4} - do: xpack.ml.delete_job: - job_id: "farequote2" + job_id: "index-layout-job2" - match: { acknowledged: true } - do: @@ -242,12 +242,12 @@ - do: indices.exists: - index: ".ml-anomalies-farequote" + index: ".ml-anomalies-index-layout-job" - is_false: '' - do: indices.exists: - index: ".ml-anomalies-farequote2" + index: ".ml-anomalies-index-layout-job2" - is_false: '' - do: @@ -269,10 +269,10 @@ - do: xpack.ml.put_job: - job_id: farequote + job_id: index-layout-job body: > { - "job_id":"farequote", + "job_id":"index-layout-job", "description":"Analysis of response time by airline", "analysis_config" : { "bucket_span": "1h", @@ -284,15 +284,15 @@ "time_format":"epoch" } } - - match: { job_id: "farequote" } + - match: { job_id: "index-layout-job" } - do: xpack.ml.open_job: - job_id: farequote + job_id: index-layout-job - do: xpack.ml.post_data: - job_id: farequote + job_id: index-layout-job body: > {"airline":"AAL","responsetime":"132.2046","sourcetype":"farequote","time":"1403481600"} {"airline":"JZA","responsetime":"990.4628","sourcetype":"farequote","time":"1403481700"} @@ -329,17 +329,17 @@ - do: xpack.ml.flush_job: - job_id: farequote + job_id: index-layout-job - match: { flushed: true } - do: xpack.ml.close_job: - job_id: farequote + job_id: index-layout-job - match: { closed: true } - do: xpack.ml.delete_job: - job_id: "farequote" + job_id: "index-layout-job" - match: { acknowledged: true } - do: