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:
Clinton Gormley 2014-10-28 13:39:05 +01:00
parent 1d95630a35
commit b94b3b2bcd
2 changed files with 3 additions and 2 deletions

View File

@ -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": {

View File

@ -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: {}