Skip to content

Commit

Permalink
Comply with invalid-path-detected.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Jan 16, 2025
1 parent d8fb3cc commit ab120cc
Show file tree
Hide file tree
Showing 86 changed files with 172 additions and 147 deletions.
2 changes: 1 addition & 1 deletion spec/namespaces/ml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ paths:
responses:
'200':
$ref: '#/components/responses/ml.get_stats@200'
/_plugins/_ml/{node_id}/stats/:
/_plugins/_ml/{node_id}/stats:
get:
operationId: ml.get_stats.2
x-operation-group: ml.get_stats
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/analyze/filter/asciifolding.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test /_analyze with a filter.
warnings:
invalid-path-detected: false
version: '>= 2.17'
chapters:
- synopsis: Apply a asciifolding filter.
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/analyze/filter/lowercase.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test /_analyze with a filter.
warnings:
invalid-path-detected: false
chapters:
- synopsis: Apply a lowercase character filter.
path: /_analyze
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/analyze/filter/persian_stem.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test /_analyze with a filter.
warnings:
invalid-path-detected: false
version: '>= 2.17'
chapters:
- synopsis: Apply a persian_stem filter.
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/analyze/filter/porterstem.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test /_analyze with a filter.
warnings:
invalid-path-detected: false
version: '>= 2.17'
chapters:
- synopsis: Apply a porter_stem filter.
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/analyze/filter/stop.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test /_analyze with a filter.
warnings:
invalid-path-detected: false
chapters:
- synopsis: Combine a lowercase translation with a stop filter.
path: /_analyze
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/analyze/filter/uppercase.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test /_analyze with a filter.
warnings:
invalid-path-detected: false
chapters:
- synopsis: Apply an uppercase character filter.
path: /_analyze
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test document multi-search.
epilogues:
Expand Down
1 change: 1 addition & 0 deletions tests/default/_core/reindex/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ $schema: ../../../../json_schemas/test_story.schema.yaml

description: Test reindex with a Search pipeline.
warnings:
invalid-path-detected: false
multiple-paths-detected: false
epilogues:
- path: /movies
Expand Down
3 changes: 2 additions & 1 deletion tests/default/_core/scripts/context.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test the _scripts contexts endpoint.

warnings:
invalid-path-detected: false
prologues:
- path: /_scripts/add_ratings
method: DELETE
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/_source.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint (_source).
warnings:
invalid-path-detected: false
prologues:
- path: /movies/_doc
method: POST
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/aggregations/avg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test avg aggregation.
warnings:
invalid-path-detected: false
prologues:
- path: /_bulk
method: POST
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/aggregations/historgram.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test histogram aggregation.
warnings:
invalid-path-detected: false
prologues:
- path: /_bulk
method: POST
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/aggregations/max.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test max aggregation.
warnings:
invalid-path-detected: false
prologues:
- path: /_bulk
method: POST
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/aggregations/min.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test min aggregation.
warnings:
invalid-path-detected: false
prologues:
- path: /_bulk
method: POST
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/aggregations/nested.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test aggregation.
warnings:
invalid-path-detected: false
prologues:
- path: books
method: PUT
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/aggregations/range.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test range aggregation.
warnings:
invalid-path-detected: false
prologues:
- path: /_bulk
method: POST
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/aggregations/sum.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test sum aggregation.
warnings:
invalid-path-detected: false
prologues:
- path: /_bulk
method: POST
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/aggregations/terms.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test terms aggregation.
warnings:
invalid-path-detected: false
prologues:
- path: /movies
method: PUT
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/cancel_after_time_interval.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with cancel_after_time_interval.
warnings:
invalid-path-detected: false
prologues:
- path: /movies/_doc
method: POST
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/knn/on_disk.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with knn query.
warnings:
invalid-path-detected: false
version: '>= 2.17'

prologues:
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/match.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with match query.
warnings:
invalid-path-detected: false
prologues:
- path: /movies/_doc
method: POST
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/multi_match.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with multi_match query.
warnings:
invalid-path-detected: false
prologues:
- path: /movies/_doc
method: POST
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/phase_took.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with phase_took.
warnings:
invalid-path-detected: false
prologues:
- path: /movies/_doc
method: POST
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test the creation of a search pipeline.
warnings:
invalid-path-detected: false
version: '>= 2.9'
epilogues:
- path: /_search/pipeline/empty-pipeline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ $schema: ../../../../../../json_schemas/test_story.schema.yaml

description: |-
Test the creation of a search pipeline with a filter_query request processor.
warnings:
invalid-path-detected: false
version: '>= 2.8'
prologues:
- path: /_bulk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ $schema: ../../../../../../json_schemas/test_story.schema.yaml

description: |-
Test the creation of a search pipeline with a response processor.
warnings:
invalid-path-detected: false
version: '>= 2.8'
prologues:
- path: /movies/_doc/1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ $schema: ../../../../../../json_schemas/test_story.schema.yaml

description: |-
Test the creation of a search pipeline with a response processor.
warnings:
invalid-path-detected: false
version: '>= 2.16'
prologues:
- path: /movies/_doc/1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ $schema: ../../../../../../json_schemas/test_story.schema.yaml

description: |-
Test the creation of a search pipeline with split and sort response processors.
warnings:
invalid-path-detected: false
version: '>= 2.17'
prologues:
- path: /numbers/_doc/1
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/point_in_time.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test point-in-time.
warnings:
invalid-path-detected: false
version: '>= 2.4'
epilogues:
- path: /_search/point_in_time/_all
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../../../json_schemas/test_story.schema.yaml
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test point-in-time.
version: '>= 2.4'
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/query/fuzzy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with fuzzy query.
warnings:
invalid-path-detected: false
prologues:
- path: /movies
method: PUT
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/query/geo_bounding_box.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with geo_bounding_box query.
warnings:
invalid-path-detected: false
prologues:
- path: /cinemas
method: PUT
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/query/geo_distance.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with geo_distance query.
warnings:
invalid-path-detected: false
prologues:
- path: /cinemas
method: PUT
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/query/geo_shape_point.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with geo_shape query.
warnings:
invalid-path-detected: false
prologues:
- path: /cinemas
method: PUT
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/query/geo_shape_shape.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with geo_shape query.
warnings:
invalid-path-detected: false
prologues:
- path: /cinemas
method: PUT
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/query/script.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test ScriptQuery functionality.
warnings:
invalid-path-detected: false

prologues:
- path: /movies
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/query/terms/array_terms.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../../json_schemas/test_story.schema.yaml

description: Comprehensive test suite for TermsQuery, including array of terms.
warnings:
invalid-path-detected: false
version: '>= 1.2'

prologues:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../../json_schemas/test_story.schema.yaml

description: Comprehensive test suite for TermsQuery, including array of terms with boost top level parameter.
warnings:
invalid-path-detected: false
version: '>= 1.2'

prologues:
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/query/terms/terms_lookup.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../../json_schemas/test_story.schema.yaml

description: Comprehensive test suite for TermsQuery, including term lookup.
warnings:
invalid-path-detected: false
version: '>= 1.2'

prologues:
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/query/terms_set.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test TermsSetQuery functionality with complex example using movies.
warnings:
invalid-path-detected: false
version: '>= 1.2'

prologues:
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/query/xy_shape_point.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with xy query.
warnings:
invalid-path-detected: false
version: '>= 2.4'
prologues:
- path: /point_index
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/query/xy_shape_shape.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with xy query.
warnings:
invalid-path-detected: false
version: '>= 2.4'
prologues:
- path: /shape_index
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/rest_total_hits_as_int.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with rest_total_hits_as_int.
warnings:
invalid-path-detected: false
prologues:
- path: /movies/_doc
method: POST
Expand Down
2 changes: 2 additions & 0 deletions tests/default/_core/search/search_after.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test search endpoint with search_after.
warnings:
invalid-path-detected: false
epilogues:
- path: /movies
method: DELETE
Expand Down
Loading

0 comments on commit ab120cc

Please sign in to comment.