From 3a1881584d9ac96760963295865e2248fcd4f223 Mon Sep 17 00:00:00 2001 From: Gao Binlong Date: Mon, 25 Mar 2024 20:14:04 +0800 Subject: [PATCH] Use existing pipeline instead Signed-off-by: Gao Binlong --- .../rest-api-spec/test/ingest/70_bulk.yml | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/70_bulk.yml b/modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/70_bulk.yml index 8a1522dc51b70..d95b1239b1cf2 100644 --- a/modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/70_bulk.yml +++ b/modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/70_bulk.yml @@ -151,28 +151,12 @@ teardown: - skip: version: " - 2.99.99" reason: "fixed in 3.0.0" - - do: - ingest.put_pipeline: - id: "my_pipeline" - body: > - { - "description": "_description", - "processors": [ - { - "set" : { - "field" : "foo", - "value" : "bar" - } - } - ] - } - - match: { acknowledged: true } - do: bulk: refresh: true body: - - '{"update": {"_index": "test_index", "_id": "test_id3", "pipeline": "my_pipeline"}}' + - '{"update": {"_index": "test_index", "_id": "test_id3", "pipeline": "pipeline1"}}' - '{"upsert": {"f1": "v2", "f2": 47}, "doc": {"x": 1}}' - match: { errors: false } @@ -182,4 +166,4 @@ teardown: get: index: test_index id: test_id3 - - match: { _source: {"f1": "v2", "f2": 47, "foo": "bar"}} + - match: { _source: {"f1": "v2", "f2": 47, "field1": "value1"}}