Skip to content

Commit

Permalink
Added tests for _field_caps. (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock authored Sep 11, 2024
1 parent a499dbf commit 9d59d92
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions tests/default/_core/field_caps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test field capabilities API.
prologues:
- path: /movies
method: PUT
epilogues:
- path: /movies
method: DELETE
status: [200, 404]
chapters:
- synopsis: Get information about the capabilities of all fields.
path: /_field_caps
method: GET
parameters:
fields: '*'
allow_no_indices: false
expand_wildcards: all
ignore_unavailable: true
include_unmapped: true
response:
status: 200
- synopsis: Get information about the capabilities of all fields for a given index.
path: /{index}/_field_caps
method: GET
parameters:
fields: type
index: movies
response:
status: 200
- synopsis: Get information about the capabilities of specific fields.
path: /_field_caps
method: POST
parameters:
fields: type
request:
payload:
index_filter:
match_all: {}
response:
status: 200
- synopsis: Get information about the capabilities of all fields for a given index.
path: /{index}/_field_caps
method: POST
parameters:
fields: type
index: movies
request:
payload:
index_filter:
match_all: {}
response:
status: 200

0 comments on commit 9d59d92

Please sign in to comment.