mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-27 07:14:59 +00:00
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:
parent
2e0560528f
commit
c035adb568
@ -1,5 +1,5 @@
|
||||
{
|
||||
"xpack.upgrade.info": {
|
||||
"xpack.migration.get_assistance": {
|
||||
"methods": [ "GET" ],
|
||||
"url": {
|
||||
"path": "/_xpack/migration/assistance",
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"xpack.upgrade": {
|
||||
"xpack.migration.upgrade": {
|
||||
"methods": [ "POST" ],
|
||||
"url": {
|
||||
"path": "/_xpack/migration/upgrade/{index}",
|
@ -37,14 +37,14 @@ setup:
|
||||
---
|
||||
"Upgrade info - all":
|
||||
- do:
|
||||
xpack.upgrade.info: { index: _all }
|
||||
xpack.migration.get_assistance: { index: _all }
|
||||
|
||||
- length: { indices: 0 }
|
||||
|
||||
---
|
||||
"Upgrade info - all, but treat test2 as kibana":
|
||||
- do:
|
||||
xpack.upgrade.info: { index: _all, kibana_indices: test2 }
|
||||
xpack.migration.get_assistance: { index: _all, kibana_indices: test2 }
|
||||
|
||||
- length: { indices: 1 }
|
||||
- match: { indices.test2.action_required: "upgrade" }
|
||||
@ -53,7 +53,7 @@ setup:
|
||||
"Upgrade test2 as kibana index":
|
||||
|
||||
- do:
|
||||
xpack.upgrade: { index: test2, kibana_indices: test2 }
|
||||
xpack.migration.upgrade: { index: test2, kibana_indices: test2 }
|
||||
|
||||
- match: { total: 1 }
|
||||
- match: { created: 1 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user