From 077bf52acc2793561a57ddcaa2a755590c8287d1 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Wed, 25 Mar 2020 18:15:10 +0100 Subject: [PATCH] transform.cat should live in the cat namespace. (#54196) * transform.cat should live in the cat namespace. Similarly to to ml cat API's also living in the `cat` namespace. Clients treat the `cat` namespace differently then other API's (return types, content types). This introduces an exception to this rule. * rename the specification file as well (cherry picked from commit 0a98904b1a73a30bbaebc32bd16a238c8d03c329) --- .../{transform.cat_transform.json => cat.transform.json} | 2 +- .../rest-api-spec/test/transform/transforms_cat_apis.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename x-pack/plugin/src/test/resources/rest-api-spec/api/{transform.cat_transform.json => cat.transform.json} (98%) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/transform.cat_transform.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/cat.transform.json similarity index 98% rename from x-pack/plugin/src/test/resources/rest-api-spec/api/transform.cat_transform.json rename to x-pack/plugin/src/test/resources/rest-api-spec/api/cat.transform.json index 9cdbc620eb93f..98a2fcac1c281 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/transform.cat_transform.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/cat.transform.json @@ -1,5 +1,5 @@ { - "transform.cat_transform":{ + "cat.transform":{ "documentation":{ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html" }, diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/transform/transforms_cat_apis.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/transform/transforms_cat_apis.yml index 37517b2c822f6..4b349f9c2e739 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/transform/transforms_cat_apis.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/transform/transforms_cat_apis.yml @@ -51,7 +51,7 @@ teardown: --- "Test cat transform stats hiding headers": - do: - transform.cat_transform: + cat.transform: transform_id: "airline-transform-stats" - match: $body: | @@ -61,7 +61,7 @@ teardown: --- "Test cat transform stats with column selection": - do: - transform.cat_transform: + cat.transform: transform_id: "airline-transform-stats" v: true h: id,version,source_index,dest_index,search_total,index_total,dt,cdtea,indexed_documents_exp_avg @@ -90,7 +90,7 @@ teardown: "description": "description" } - do: - transform.cat_transform: + cat.transform: transform_id: "airline-transform-batch" v: true - match: @@ -126,7 +126,7 @@ teardown: } } - do: - transform.cat_transform: + cat.transform: transform_id: "airline-transform-continuous" v: true - match: