Rename upgrade.* client methods to migration.* (elastic/x-pack-elasticsearch#1881)

This makes client names consistent with REST APIs and makes it simplifies client development.

Original commit: elastic/x-pack-elasticsearch@90913f485b
This commit is contained in:
Igor Motov 2017-07-05 09:47:58 -04:00 committed by GitHub
parent 2e0560528f
commit c035adb568
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{ {
"xpack.upgrade.info": { "xpack.migration.get_assistance": {
"methods": [ "GET" ], "methods": [ "GET" ],
"url": { "url": {
"path": "/_xpack/migration/assistance", "path": "/_xpack/migration/assistance",

View File

@ -1,5 +1,5 @@
{ {
"xpack.upgrade": { "xpack.migration.upgrade": {
"methods": [ "POST" ], "methods": [ "POST" ],
"url": { "url": {
"path": "/_xpack/migration/upgrade/{index}", "path": "/_xpack/migration/upgrade/{index}",

View File

@ -37,14 +37,14 @@ setup:
--- ---
"Upgrade info - all": "Upgrade info - all":
- do: - do:
xpack.upgrade.info: { index: _all } xpack.migration.get_assistance: { index: _all }
- length: { indices: 0 } - length: { indices: 0 }
--- ---
"Upgrade info - all, but treat test2 as kibana": "Upgrade info - all, but treat test2 as kibana":
- do: - do:
xpack.upgrade.info: { index: _all, kibana_indices: test2 } xpack.migration.get_assistance: { index: _all, kibana_indices: test2 }
- length: { indices: 1 } - length: { indices: 1 }
- match: { indices.test2.action_required: "upgrade" } - match: { indices.test2.action_required: "upgrade" }
@ -53,7 +53,7 @@ setup:
"Upgrade test2 as kibana index": "Upgrade test2 as kibana index":
- do: - do:
xpack.upgrade: { index: test2, kibana_indices: test2 } xpack.migration.upgrade: { index: test2, kibana_indices: test2 }
- match: { total: 1 } - match: { total: 1 }
- match: { created: 1 } - match: { created: 1 }