From bac8f010b4172a2c753642eae26c5692e727146c Mon Sep 17 00:00:00 2001 From: Zachary Tong Date: Tue, 4 Apr 2017 12:13:23 -0400 Subject: [PATCH] Remove unnecessary headers in Model yaml tests Original commit: elastic/x-pack-elasticsearch@74e2a5e29a7a00a9e7d895f4bb0e5a1f0d3cdcb7 --- .../rest-api-spec/test/ml/delete_model_snapshot.yaml | 9 --------- .../rest-api-spec/test/ml/get_model_snapshots.yaml | 9 --------- .../rest-api-spec/test/ml/update_model_snapshot.yaml | 9 --------- 3 files changed, 27 deletions(-) diff --git a/plugin/src/test/resources/rest-api-spec/test/ml/delete_model_snapshot.yaml b/plugin/src/test/resources/rest-api-spec/test/ml/delete_model_snapshot.yaml index fe076ad9576..5423f2b5069 100644 --- a/plugin/src/test/resources/rest-api-spec/test/ml/delete_model_snapshot.yaml +++ b/plugin/src/test/resources/rest-api-spec/test/ml/delete_model_snapshot.yaml @@ -1,7 +1,4 @@ setup: - - skip: - features: ["headers"] - - do: xpack.ml.put_job: job_id: foo @@ -29,9 +26,6 @@ setup: job_id: foo - do: - #set the header so we won't randomize it - headers: - Content-Type: application/json index: index: .ml-anomalies-foo type: model_snapshot @@ -68,9 +62,6 @@ setup: } - do: - #set the header so we won't randomize it - headers: - Content-Type: application/json index: index: .ml-anomalies-foo type: model_snapshot diff --git a/plugin/src/test/resources/rest-api-spec/test/ml/get_model_snapshots.yaml b/plugin/src/test/resources/rest-api-spec/test/ml/get_model_snapshots.yaml index e386dae5965..b84d13c2a91 100644 --- a/plugin/src/test/resources/rest-api-spec/test/ml/get_model_snapshots.yaml +++ b/plugin/src/test/resources/rest-api-spec/test/ml/get_model_snapshots.yaml @@ -1,7 +1,4 @@ setup: - - skip: - features: ["headers"] - - do: indices.create: index: .ml-anomalies-foo @@ -13,9 +10,6 @@ setup: type: date - do: - #set the header so we won't randomize it - headers: - Content-Type: application/json index: index: .ml-anomalies-foo type: model_snapshot @@ -23,9 +17,6 @@ setup: body: { "job_id": "foo", "snapshot_id": "1", "timestamp": "2016-06-02T00:00:00Z" } - do: - #set the header so we won't randomize it - headers: - Content-Type: application/json index: index: .ml-anomalies-foo type: model_snapshot diff --git a/plugin/src/test/resources/rest-api-spec/test/ml/update_model_snapshot.yaml b/plugin/src/test/resources/rest-api-spec/test/ml/update_model_snapshot.yaml index 9d04c9d681c..d2a38850c20 100644 --- a/plugin/src/test/resources/rest-api-spec/test/ml/update_model_snapshot.yaml +++ b/plugin/src/test/resources/rest-api-spec/test/ml/update_model_snapshot.yaml @@ -1,7 +1,4 @@ setup: - - skip: - features: ["headers"] - - do: indices.create: index: .ml-anomalies-foo @@ -13,9 +10,6 @@ setup: type: date - do: - #set the header so we won't randomize it - headers: - Content-Type: application/json index: index: .ml-anomalies-foo type: model_snapshot @@ -29,9 +23,6 @@ setup: } - do: - #set the header so we won't randomize it - headers: - Content-Type: application/json index: index: .ml-anomalies-foo type: model_snapshot