From a468d4079ed837a860fc13874aee9aa32a1c65d4 Mon Sep 17 00:00:00 2001 From: Suraj Singh Date: Wed, 18 May 2022 10:43:32 -0700 Subject: [PATCH] [Type removal] Remove redundant _type in pipeline simulate action (#3371) Signed-off-by: Suraj Singh (cherry picked from commit 892e9846b599fe7717bc1cb1748c7c1a75a47ae4) --- .../java/org/opensearch/client/IngestRequestConvertersTests.java | 1 - .../resources/rest-api-spec/test/ingest/120_grok.yml | 1 - .../java/org/opensearch/ingest/IngestClientIT.java | 1 - 3 files changed, 3 deletions(-) diff --git a/client/rest-high-level/src/test/java/org/opensearch/client/IngestRequestConvertersTests.java b/client/rest-high-level/src/test/java/org/opensearch/client/IngestRequestConvertersTests.java index 0d95b3e7fddc0..0608a330b3047 100644 --- a/client/rest-high-level/src/test/java/org/opensearch/client/IngestRequestConvertersTests.java +++ b/client/rest-high-level/src/test/java/org/opensearch/client/IngestRequestConvertersTests.java @@ -121,7 +121,6 @@ public void testSimulatePipeline() throws IOException { + " \"docs\": [" + " {" + " \"_index\": \"index\"," - + " \"_type\": \"_doc\"," + " \"_id\": \"id\"," + " \"_source\": {" + " \"foo\": \"rab\"" diff --git a/modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/120_grok.yml b/modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/120_grok.yml index 14c70c17265af..c0aec0e3d7392 100644 --- a/modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/120_grok.yml +++ b/modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/120_grok.yml @@ -134,7 +134,6 @@ teardown: "docs": [ { "_index": "index", - "_type": "type", "_id": "id", "_source": { "field": "abc2xyz" diff --git a/server/src/internalClusterTest/java/org/opensearch/ingest/IngestClientIT.java b/server/src/internalClusterTest/java/org/opensearch/ingest/IngestClientIT.java index d577019590019..404b13aae5b9c 100644 --- a/server/src/internalClusterTest/java/org/opensearch/ingest/IngestClientIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/ingest/IngestClientIT.java @@ -111,7 +111,6 @@ public void testSimulate() throws Exception { .startArray("docs") .startObject() .field("_index", "index") - .field("_type", "type") .field("_id", "id") .startObject("_source") .field("foo", "bar")