Rest spec fixes (elastic/x-pack-elasticsearch#2965)
* Rename REST spec xpack.deprecation.info to xpack.migration.deprecations * Fixed parameter-type naming in xpack.ml.get_model_snapshots * Fixed QS multi-cluster search test to use cluster.remote_info Original commit: elastic/x-pack-elasticsearch@ccd35b4a6c
This commit is contained in:
parent
56e7512500
commit
d833af2046
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"xpack.deprecation.info": {
|
"xpack.migration.deprecations": {
|
||||||
"documentation": "http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html",
|
"documentation": "http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html",
|
||||||
"methods": [ "GET" ],
|
"methods": [ "GET" ],
|
||||||
"url": {
|
"url": {
|
|
@ -21,11 +21,11 @@
|
||||||
},
|
},
|
||||||
"params": {
|
"params": {
|
||||||
"from": {
|
"from": {
|
||||||
"type": "integer",
|
"type": "int",
|
||||||
"description": "Skips a number of documents"
|
"description": "Skips a number of documents"
|
||||||
},
|
},
|
||||||
"size": {
|
"size": {
|
||||||
"type": "integer",
|
"type": "int",
|
||||||
"description": "The default number of documents returned in queries as a string."
|
"description": "The default number of documents returned in queries as a string."
|
||||||
},
|
},
|
||||||
"start": {
|
"start": {
|
||||||
|
|
|
@ -7,7 +7,7 @@ setup:
|
||||||
---
|
---
|
||||||
"Test Deprecations":
|
"Test Deprecations":
|
||||||
- do:
|
- do:
|
||||||
xpack.deprecation.info:
|
xpack.migration.deprecations:
|
||||||
index: "*"
|
index: "*"
|
||||||
- length: { cluster_settings: 0 }
|
- length: { cluster_settings: 0 }
|
||||||
- length: { node_settings: 0 }
|
- length: { node_settings: 0 }
|
||||||
|
|
|
@ -36,7 +36,7 @@ teardown:
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
headers: { Authorization: "Basic am9lOnMza3JpdA==" }
|
headers: { Authorization: "Basic am9lOnMza3JpdA==" }
|
||||||
remote.info: {}
|
cluster.remote_info: {}
|
||||||
- match: { my_remote_cluster.connected: true }
|
- match: { my_remote_cluster.connected: true }
|
||||||
- match: { my_remote_cluster.num_nodes_connected: 1}
|
- match: { my_remote_cluster.num_nodes_connected: 1}
|
||||||
- match: { my_remote_cluster.max_connections_per_cluster: 1}
|
- match: { my_remote_cluster.max_connections_per_cluster: 1}
|
||||||
|
@ -69,7 +69,7 @@ teardown:
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
headers: { Authorization: "Basic am9lOnMza3JpdA==" }
|
headers: { Authorization: "Basic am9lOnMza3JpdA==" }
|
||||||
remote.info: {}
|
cluster.remote_info: {}
|
||||||
- set: { my_remote_cluster.http_addresses.0: remote_http }
|
- set: { my_remote_cluster.http_addresses.0: remote_http }
|
||||||
- match: { test_remote_cluster.http_addresses.0: $remote_http }
|
- match: { test_remote_cluster.http_addresses.0: $remote_http }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue