Skip to content

Commit

Permalink
Added test for POST /{index}/_mapping (#745)
Browse files Browse the repository at this point in the history
* adding POST role mapping test

Signed-off-by: Tokesh <[email protected]>

* made code more redundant

Signed-off-by: Tokesh <[email protected]>

* lint fix

Signed-off-by: Tokesh <[email protected]>

---------

Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh authored Dec 18, 2024
1 parent 1b6935f commit 4a7439b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/default/indices/mapping/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ chapters:
acknowledged: true
- synopsis: Update mapping for an index with setting `dynamic` to `strict`.
path: /{index}/_mapping
method: PUT
method:
- POST
- PUT
parameters:
index: movies
allow_no_indices: true
Expand Down Expand Up @@ -145,4 +147,4 @@ chapters:
response:
status: 200
payload:
acknowledged: true
acknowledged: true

0 comments on commit 4a7439b

Please sign in to comment.