Skip to content

Commit

Permalink
Rename cat.transform => cat.transforms (#54438)
Browse files Browse the repository at this point in the history
* 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 c495d22)
  • Loading branch information
Mpdreamz committed Apr 2, 2020
1 parent 54915a1 commit cfe6753
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ teardown:
---
"Test cat transform stats hiding headers":
- do:
cat.transform:
cat.transforms:
transform_id: "airline-transform-stats"
- match:
$body: |
Expand All @@ -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
Expand Down Expand Up @@ -90,7 +90,7 @@ teardown:
"description": "description"
}
- do:
cat.transform:
cat.transforms:
transform_id: "airline-transform-batch"
v: true
- match:
Expand Down Expand Up @@ -126,7 +126,7 @@ teardown:
}
}
- do:
cat.transform:
cat.transforms:
transform_id: "airline-transform-continuous"
v: true
- match:
Expand Down

0 comments on commit cfe6753

Please sign in to comment.