From 0ed20cc349d2a8ec4eb59943d24256a709de6663 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Thu, 2 Apr 2020 09:40:00 +0200 Subject: [PATCH] Rename cat.transform => cat.transforms (#54438) * Rename cat.transform => cat.transforms To match the url. We typically prefer singular url nouns but _cat tends to use plural and this API does in fact uses `/_cat/transforms` * also rename the api in the spec and tests (cherry picked from commit c495d220ac8fedba7f70f82387cd6d6a672b8b14) --- .../api/{cat.transform.json => cat.transforms.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/{cat.transform.json => cat.transforms.json} (99%) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/cat.transform.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/cat.transforms.json similarity index 99% rename from x-pack/plugin/src/test/resources/rest-api-spec/api/cat.transform.json rename to x-pack/plugin/src/test/resources/rest-api-spec/api/cat.transforms.json index 66b55d9a4bbcc..ad22e646f21bf 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/cat.transform.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/cat.transforms.json @@ -1,5 +1,5 @@ { - "cat.transform":{ + "cat.transforms":{ "documentation":{ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html", "description": "Gets configuration and usage information about transforms." 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 bf5d5311c27b4..68f1f68b02e14 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: - cat.transform: + cat.transforms: transform_id: "airline-transform-stats" - match: $body: | @@ -61,7 +61,7 @@ teardown: --- "Test cat transform stats with column selection": - do: - cat.transform: + cat.transforms: transform_id: "airline-transform-stats" v: true h: id,version,source_index,dest_index,search_total,index_total,docp,cdtea,indexed_documents_exp_avg @@ -90,7 +90,7 @@ teardown: "description": "description" } - do: - cat.transform: + cat.transforms: transform_id: "airline-transform-batch" v: true - match: @@ -126,7 +126,7 @@ teardown: } } - do: - cat.transform: + cat.transforms: transform_id: "airline-transform-continuous" v: true - match: