mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 09:28:27 +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": {
|
||||
"index": {
|
||||
"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."
|
||||
},
|
||||
"name": {
|
||||
|
@ -106,7 +106,7 @@ setup:
|
||||
|
||||
|
||||
- do:
|
||||
catch: request
|
||||
catch: param
|
||||
indices.put_alias:
|
||||
name: alias
|
||||
|
||||
@ -116,6 +116,6 @@ setup:
|
||||
|
||||
|
||||
- do:
|
||||
catch: request
|
||||
catch: param
|
||||
indices.put_alias: {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user