mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 17:38:44 +00:00
Tests: Refixed the put_alias tests
The missing/null index parameter is in the URL, not the body. So it should be required, and throw a param error if not provided. Relates #7863
This commit is contained in:
parent
1d95630a35
commit
b94b3b2bcd
@ -8,6 +8,7 @@
|
|||||||
"parts": {
|
"parts": {
|
||||||
"index": {
|
"index": {
|
||||||
"type" : "list",
|
"type" : "list",
|
||||||
|
"required" : true,
|
||||||
"description" : "A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices."
|
"description" : "A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices."
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
|
@ -106,7 +106,7 @@ setup:
|
|||||||
|
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
catch: request
|
catch: param
|
||||||
indices.put_alias:
|
indices.put_alias:
|
||||||
name: alias
|
name: alias
|
||||||
|
|
||||||
@ -116,6 +116,6 @@ setup:
|
|||||||
|
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
catch: request
|
catch: param
|
||||||
indices.put_alias: {}
|
indices.put_alias: {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user