diff --git a/spec/namespaces/ml.yaml b/spec/namespaces/ml.yaml index a5775127b..e4a7a31e9 100644 --- a/spec/namespaces/ml.yaml +++ b/spec/namespaces/ml.yaml @@ -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 diff --git a/tests/default/_core/analyze/filter/asciifolding.yaml b/tests/default/_core/analyze/filter/asciifolding.yaml index b2af17dcf..b5eb8321d 100644 --- a/tests/default/_core/analyze/filter/asciifolding.yaml +++ b/tests/default/_core/analyze/filter/asciifolding.yaml @@ -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. diff --git a/tests/default/_core/analyze/filter/lowercase.yaml b/tests/default/_core/analyze/filter/lowercase.yaml index cf80ae09b..def1bc19f 100644 --- a/tests/default/_core/analyze/filter/lowercase.yaml +++ b/tests/default/_core/analyze/filter/lowercase.yaml @@ -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 diff --git a/tests/default/_core/analyze/filter/persian_stem.yaml b/tests/default/_core/analyze/filter/persian_stem.yaml index 973ecbaae..26854fc5f 100644 --- a/tests/default/_core/analyze/filter/persian_stem.yaml +++ b/tests/default/_core/analyze/filter/persian_stem.yaml @@ -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. diff --git a/tests/default/_core/analyze/filter/porterstem.yaml b/tests/default/_core/analyze/filter/porterstem.yaml index d7b9d4a06..a4ffe9631 100644 --- a/tests/default/_core/analyze/filter/porterstem.yaml +++ b/tests/default/_core/analyze/filter/porterstem.yaml @@ -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. diff --git a/tests/default/_core/analyze/filter/stop.yaml b/tests/default/_core/analyze/filter/stop.yaml index bdcf78480..b5a7e3fa4 100644 --- a/tests/default/_core/analyze/filter/stop.yaml +++ b/tests/default/_core/analyze/filter/stop.yaml @@ -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 diff --git a/tests/default/_core/analyze/filter/uppercase.yaml b/tests/default/_core/analyze/filter/uppercase.yaml index e689916ff..8ca04fa50 100644 --- a/tests/default/_core/analyze/filter/uppercase.yaml +++ b/tests/default/_core/analyze/filter/uppercase.yaml @@ -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 diff --git a/tests/default/_core/msearch/index.yaml b/tests/default/_core/msearch.yaml similarity index 96% rename from tests/default/_core/msearch/index.yaml rename to tests/default/_core/msearch.yaml index 1a3a3df74..1166f4eab 100644 --- a/tests/default/_core/msearch/index.yaml +++ b/tests/default/_core/msearch.yaml @@ -1,4 +1,4 @@ -$schema: ../../../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test document multi-search. epilogues: diff --git a/tests/default/_core/reindex/pipeline.yaml b/tests/default/_core/reindex/pipeline.yaml index a91ecc8a8..ca0bf44cd 100644 --- a/tests/default/_core/reindex/pipeline.yaml +++ b/tests/default/_core/reindex/pipeline.yaml @@ -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 diff --git a/tests/default/_core/scripts/context.yaml b/tests/default/_core/scripts/context.yaml index 92a886e8e..46099ce4a 100644 --- a/tests/default/_core/scripts/context.yaml +++ b/tests/default/_core/scripts/context.yaml @@ -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 diff --git a/tests/default/_core/search/_source.yaml b/tests/default/_core/search/_source.yaml index e0a4c7d04..8b69d7ae6 100644 --- a/tests/default/_core/search/_source.yaml +++ b/tests/default/_core/search/_source.yaml @@ -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 diff --git a/tests/default/_core/search/aggregations/avg.yaml b/tests/default/_core/search/aggregations/avg.yaml index 13f0a3a46..a43b55c5c 100644 --- a/tests/default/_core/search/aggregations/avg.yaml +++ b/tests/default/_core/search/aggregations/avg.yaml @@ -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 diff --git a/tests/default/_core/search/aggregations/historgram.yaml b/tests/default/_core/search/aggregations/historgram.yaml index a5335a7a0..bf207d9fa 100644 --- a/tests/default/_core/search/aggregations/historgram.yaml +++ b/tests/default/_core/search/aggregations/historgram.yaml @@ -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 diff --git a/tests/default/_core/search/aggregations/max.yaml b/tests/default/_core/search/aggregations/max.yaml index ca3940b58..7ab721b3d 100644 --- a/tests/default/_core/search/aggregations/max.yaml +++ b/tests/default/_core/search/aggregations/max.yaml @@ -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 diff --git a/tests/default/_core/search/aggregations/min.yaml b/tests/default/_core/search/aggregations/min.yaml index 270682ddf..9f36d11d3 100644 --- a/tests/default/_core/search/aggregations/min.yaml +++ b/tests/default/_core/search/aggregations/min.yaml @@ -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 diff --git a/tests/default/_core/search/aggregations/nested.yaml b/tests/default/_core/search/aggregations/nested.yaml index 4b519dcc5..96de3c001 100644 --- a/tests/default/_core/search/aggregations/nested.yaml +++ b/tests/default/_core/search/aggregations/nested.yaml @@ -1,6 +1,8 @@ $schema: ../../../../../json_schemas/test_story.schema.yaml description: Test aggregation. +warnings: + invalid-path-detected: false prologues: - path: books method: PUT diff --git a/tests/default/_core/search/aggregations/range.yaml b/tests/default/_core/search/aggregations/range.yaml index 0c34de8db..42fc8c726 100644 --- a/tests/default/_core/search/aggregations/range.yaml +++ b/tests/default/_core/search/aggregations/range.yaml @@ -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 diff --git a/tests/default/_core/search/aggregations/sum.yaml b/tests/default/_core/search/aggregations/sum.yaml index 252785ca3..2f46b9a61 100644 --- a/tests/default/_core/search/aggregations/sum.yaml +++ b/tests/default/_core/search/aggregations/sum.yaml @@ -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 diff --git a/tests/default/_core/search/aggregations/terms.yaml b/tests/default/_core/search/aggregations/terms.yaml index 19c4a9606..229f72ea4 100644 --- a/tests/default/_core/search/aggregations/terms.yaml +++ b/tests/default/_core/search/aggregations/terms.yaml @@ -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 diff --git a/tests/default/_core/search/cancel_after_time_interval.yaml b/tests/default/_core/search/cancel_after_time_interval.yaml index 464c86a5a..545d8d130 100644 --- a/tests/default/_core/search/cancel_after_time_interval.yaml +++ b/tests/default/_core/search/cancel_after_time_interval.yaml @@ -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 diff --git a/tests/default/_core/search/knn/on_disk.yaml b/tests/default/_core/search/knn/on_disk.yaml index ac42d42f4..bdab136a7 100644 --- a/tests/default/_core/search/knn/on_disk.yaml +++ b/tests/default/_core/search/knn/on_disk.yaml @@ -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: diff --git a/tests/default/_core/search/match.yaml b/tests/default/_core/search/match.yaml index 978493787..5a6202b70 100644 --- a/tests/default/_core/search/match.yaml +++ b/tests/default/_core/search/match.yaml @@ -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 diff --git a/tests/default/_core/search/multi_match.yaml b/tests/default/_core/search/multi_match.yaml index be83a9145..2d579f9f4 100644 --- a/tests/default/_core/search/multi_match.yaml +++ b/tests/default/_core/search/multi_match.yaml @@ -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 diff --git a/tests/default/_core/search/phase_took.yaml b/tests/default/_core/search/phase_took.yaml index 5da69c466..33abc9a1b 100644 --- a/tests/default/_core/search/phase_took.yaml +++ b/tests/default/_core/search/phase_took.yaml @@ -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 diff --git a/tests/default/_core/search/pipeline.yaml b/tests/default/_core/search/pipeline.yaml index eab34717f..b046855d8 100644 --- a/tests/default/_core/search/pipeline.yaml +++ b/tests/default/_core/search/pipeline.yaml @@ -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 diff --git a/tests/default/_core/search/pipeline/request_processor/filter_query.yaml b/tests/default/_core/search/pipeline/request_processor/filter_query.yaml index 458eeb749..b62cc2fac 100644 --- a/tests/default/_core/search/pipeline/request_processor/filter_query.yaml +++ b/tests/default/_core/search/pipeline/request_processor/filter_query.yaml @@ -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 diff --git a/tests/default/_core/search/pipeline/response_processor/rename_field.yaml b/tests/default/_core/search/pipeline/response_processor/rename_field.yaml index d2b05957b..fd1b89020 100644 --- a/tests/default/_core/search/pipeline/response_processor/rename_field.yaml +++ b/tests/default/_core/search/pipeline/response_processor/rename_field.yaml @@ -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 diff --git a/tests/default/_core/search/pipeline/response_processor/sort.yaml b/tests/default/_core/search/pipeline/response_processor/sort.yaml index 837501f66..303dbb827 100644 --- a/tests/default/_core/search/pipeline/response_processor/sort.yaml +++ b/tests/default/_core/search/pipeline/response_processor/sort.yaml @@ -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 diff --git a/tests/default/_core/search/pipeline/response_processor/split_and_sort.yaml b/tests/default/_core/search/pipeline/response_processor/split_and_sort.yaml index 3f5cc74d0..6c0501c3c 100644 --- a/tests/default/_core/search/pipeline/response_processor/split_and_sort.yaml +++ b/tests/default/_core/search/pipeline/response_processor/split_and_sort.yaml @@ -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 diff --git a/tests/default/_core/search/point_in_time.yaml b/tests/default/_core/search/point_in_time.yaml index 7eba25818..5ff35d5ba 100644 --- a/tests/default/_core/search/point_in_time.yaml +++ b/tests/default/_core/search/point_in_time.yaml @@ -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 diff --git a/tests/default/_core/point_in_time/all.yaml b/tests/default/_core/search/point_in_time/all.yaml similarity index 92% rename from tests/default/_core/point_in_time/all.yaml rename to tests/default/_core/search/point_in_time/all.yaml index 86ff71e03..44adc16dc 100644 --- a/tests/default/_core/point_in_time/all.yaml +++ b/tests/default/_core/search/point_in_time/all.yaml @@ -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' diff --git a/tests/default/_core/search/query/fuzzy.yaml b/tests/default/_core/search/query/fuzzy.yaml index 7032089da..8bbfd8d6c 100644 --- a/tests/default/_core/search/query/fuzzy.yaml +++ b/tests/default/_core/search/query/fuzzy.yaml @@ -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 diff --git a/tests/default/_core/search/query/geo_bounding_box.yaml b/tests/default/_core/search/query/geo_bounding_box.yaml index bee1e0a30..9e7a637bb 100644 --- a/tests/default/_core/search/query/geo_bounding_box.yaml +++ b/tests/default/_core/search/query/geo_bounding_box.yaml @@ -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 diff --git a/tests/default/_core/search/query/geo_distance.yaml b/tests/default/_core/search/query/geo_distance.yaml index 21e93d156..e7be8cde7 100644 --- a/tests/default/_core/search/query/geo_distance.yaml +++ b/tests/default/_core/search/query/geo_distance.yaml @@ -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 diff --git a/tests/default/_core/search/query/geo_shape_point.yaml b/tests/default/_core/search/query/geo_shape_point.yaml index d55748f95..7402da419 100644 --- a/tests/default/_core/search/query/geo_shape_point.yaml +++ b/tests/default/_core/search/query/geo_shape_point.yaml @@ -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 diff --git a/tests/default/_core/search/query/geo_shape_shape.yaml b/tests/default/_core/search/query/geo_shape_shape.yaml index 224805a60..f11be63f2 100644 --- a/tests/default/_core/search/query/geo_shape_shape.yaml +++ b/tests/default/_core/search/query/geo_shape_shape.yaml @@ -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 diff --git a/tests/default/_core/search/query/script.yaml b/tests/default/_core/search/query/script.yaml index 525cddc8c..ccaf67bb0 100644 --- a/tests/default/_core/search/query/script.yaml +++ b/tests/default/_core/search/query/script.yaml @@ -1,6 +1,8 @@ $schema: ../../../../../json_schemas/test_story.schema.yaml description: Test ScriptQuery functionality. +warnings: + invalid-path-detected: false prologues: - path: /movies diff --git a/tests/default/_core/search/query/terms/array_terms.yaml b/tests/default/_core/search/query/terms/array_terms.yaml index 13b2020f4..2ca422fd2 100644 --- a/tests/default/_core/search/query/terms/array_terms.yaml +++ b/tests/default/_core/search/query/terms/array_terms.yaml @@ -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: diff --git a/tests/default/_core/search/query/terms/array_terms_with_boost.yaml b/tests/default/_core/search/query/terms/array_terms_with_boost.yaml index 5b7141117..bff5428e0 100644 --- a/tests/default/_core/search/query/terms/array_terms_with_boost.yaml +++ b/tests/default/_core/search/query/terms/array_terms_with_boost.yaml @@ -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: diff --git a/tests/default/_core/search/query/terms/terms_lookup.yaml b/tests/default/_core/search/query/terms/terms_lookup.yaml index 3b6b6cf30..9c1c0c387 100644 --- a/tests/default/_core/search/query/terms/terms_lookup.yaml +++ b/tests/default/_core/search/query/terms/terms_lookup.yaml @@ -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: diff --git a/tests/default/_core/search/query/terms_set.yaml b/tests/default/_core/search/query/terms_set.yaml index 28d453c23..d6316e6b9 100644 --- a/tests/default/_core/search/query/terms_set.yaml +++ b/tests/default/_core/search/query/terms_set.yaml @@ -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: diff --git a/tests/default/_core/search/query/xy_shape_point.yaml b/tests/default/_core/search/query/xy_shape_point.yaml index 2e3a12995..f455b975a 100644 --- a/tests/default/_core/search/query/xy_shape_point.yaml +++ b/tests/default/_core/search/query/xy_shape_point.yaml @@ -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 diff --git a/tests/default/_core/search/query/xy_shape_shape.yaml b/tests/default/_core/search/query/xy_shape_shape.yaml index 74f87eba0..e85b7b4d4 100644 --- a/tests/default/_core/search/query/xy_shape_shape.yaml +++ b/tests/default/_core/search/query/xy_shape_shape.yaml @@ -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 diff --git a/tests/default/_core/search/rest_total_hits_as_int.yaml b/tests/default/_core/search/rest_total_hits_as_int.yaml index 32f9b3c2d..1725aabbf 100644 --- a/tests/default/_core/search/rest_total_hits_as_int.yaml +++ b/tests/default/_core/search/rest_total_hits_as_int.yaml @@ -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 diff --git a/tests/default/_core/search/search_after.yaml b/tests/default/_core/search/search_after.yaml index 0da17c906..464dc31d2 100644 --- a/tests/default/_core/search/search_after.yaml +++ b/tests/default/_core/search/search_after.yaml @@ -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 diff --git a/tests/default/_core/search/seq_no_primary_term.yaml b/tests/default/_core/search/seq_no_primary_term.yaml index 8324f9850..ef1c0fd61 100644 --- a/tests/default/_core/search/seq_no_primary_term.yaml +++ b/tests/default/_core/search/seq_no_primary_term.yaml @@ -1,6 +1,8 @@ $schema: ../../../../json_schemas/test_story.schema.yaml description: Test search endpoint with seq_no_primary_term. +warnings: + invalid-path-detected: false prologues: - path: /movies/_doc method: POST diff --git a/tests/default/_core/search/size.yaml b/tests/default/_core/search/size.yaml index 7bf68e2c2..d12aed100 100644 --- a/tests/default/_core/search/size.yaml +++ b/tests/default/_core/search/size.yaml @@ -1,6 +1,8 @@ $schema: ../../../../json_schemas/test_story.schema.yaml description: Test search endpoint with size. +warnings: + invalid-path-detected: false prologues: - path: /movies/_doc method: POST diff --git a/tests/default/_core/search/sort_by_field.yaml b/tests/default/_core/search/sort_by_field.yaml index ff9329286..4ca561cf3 100644 --- a/tests/default/_core/search/sort_by_field.yaml +++ b/tests/default/_core/search/sort_by_field.yaml @@ -1,6 +1,8 @@ $schema: ../../../../json_schemas/test_story.schema.yaml description: Test different ways to sort by field. +warnings: + invalid-path-detected: false epilogues: - path: /movies diff --git a/tests/default/asynchronous_search/search.yaml b/tests/default/asynchronous_search/asynchronous_search.yaml similarity index 100% rename from tests/default/asynchronous_search/search.yaml rename to tests/default/asynchronous_search/asynchronous_search.yaml diff --git a/tests/default/cat/index.yaml b/tests/default/cat/cat.yaml similarity index 100% rename from tests/default/cat/index.yaml rename to tests/default/cat/cat.yaml diff --git a/tests/default/cat/pit_segments/pit_segments.yaml b/tests/default/cat/pit_segments.yaml similarity index 93% rename from tests/default/cat/pit_segments/pit_segments.yaml rename to tests/default/cat/pit_segments.yaml index 84b9cafd8..fd542b2ed 100644 --- a/tests/default/cat/pit_segments/pit_segments.yaml +++ b/tests/default/cat/pit_segments.yaml @@ -1,4 +1,4 @@ -$schema: ../../../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test cat/pit_segments endpoints. version: '>= 2.4' diff --git a/tests/default/cluster/health.yaml b/tests/default/cluster/health.yaml index 7453963a0..45a1a5ad9 100644 --- a/tests/default/cluster/health.yaml +++ b/tests/default/cluster/health.yaml @@ -1,6 +1,15 @@ $schema: ../../../json_schemas/test_story.schema.yaml description: Test cluster health. +prologues: + - path: /{index} + method: PUT + parameters: + index: books +epilogues: + - path: /books + method: DELETE + status: [200, 404] chapters: - synopsis: Returns a simple status of the health of the cluster. path: /_cluster/health @@ -27,3 +36,19 @@ chapters: awareness_attribute: zone response: status: 200 + - synopsis: Returns a status of the health of the cluster for a given index. + path: /_cluster/health/{index} + method: GET + parameters: + index: books + expand_wildcards: all + level: cluster + local: false + timeout: 10s + wait_for_active_shards: 0 + wait_for_nodes: <2 + wait_for_events: normal + wait_for_no_relocating_shards: false + wait_for_no_initializing_shards: false + response: + status: 200 diff --git a/tests/default/cluster/health/index.yaml b/tests/default/cluster/health/index.yaml deleted file mode 100644 index b9428ade2..000000000 --- a/tests/default/cluster/health/index.yaml +++ /dev/null @@ -1,29 +0,0 @@ -$schema: ../../../../json_schemas/test_story.schema.yaml - -description: Test cluster health for an index. -prologues: - - path: /{index} - method: PUT - parameters: - index: books -epilogues: - - path: /books - method: DELETE - status: [200, 404] -chapters: - - synopsis: Returns a status of the health of the cluster for a given index. - path: /_cluster/health/{index} - method: GET - parameters: - index: books - expand_wildcards: all - level: cluster - local: false - timeout: 10s - wait_for_active_shards: 0 - wait_for_nodes: <2 - wait_for_events: normal - wait_for_no_relocating_shards: false - wait_for_no_initializing_shards: false - response: - status: 200 diff --git a/tests/default/cluster/stats/index_metric.yaml b/tests/default/cluster/stats/index_metric.yaml index 6b353913e..938a704e1 100644 --- a/tests/default/cluster/stats/index_metric.yaml +++ b/tests/default/cluster/stats/index_metric.yaml @@ -2,6 +2,8 @@ $schema: ../../../../json_schemas/test_story.schema.yaml description: Test cluster manager stats. # TODO: Re-enable in 3.0, see https://github.com/opensearch-project/opensearch-api-specification/pull/613 +warnings: + invalid-path-detected: false version: '>= 2.18 < 3' chapters: - synopsis: Get mapping and analysis indices stats. diff --git a/tests/default/cluster/stats/metric.yaml b/tests/default/cluster/stats/metric.yaml index 2af5022f7..2d10d8770 100644 --- a/tests/default/cluster/stats/metric.yaml +++ b/tests/default/cluster/stats/metric.yaml @@ -1,6 +1,8 @@ $schema: ../../../../json_schemas/test_story.schema.yaml description: Test cluster manager stats. +warnings: + invalid-path-detected: false # TODO: Re-enable in 3.0, see https://github.com/opensearch-project/opensearch-api-specification/pull/613 version: '>= 2.18 < 3' chapters: diff --git a/tests/default/flow_framework/search.yaml b/tests/default/flow_framework/search.yaml deleted file mode 100644 index d6c2e556d..000000000 --- a/tests/default/flow_framework/search.yaml +++ /dev/null @@ -1,40 +0,0 @@ -$schema: ../../../json_schemas/test_story.schema.yaml -description: Test flow_framework provision endpoints. -version: '>= 2.12' -prologues: - - path: /_plugins/_flow_framework/workflow - id: workflow - method: POST - parameters: - use_case: semantic_search_with_cohere_embedding_query_enricher - request: - payload: - create_connector.credential.key: test_api_key - output: - workflow_id: payload.workflow_id -epilogues: - - path: /_plugins/_flow_framework/workflow/{workflow_id} - method: DELETE - status: [200, 404] - parameters: - workflow_id: ${workflow.workflow_id} -chapters: - - synopsis: Search workflow match the name. - path: /_plugins/_flow_framework/workflow/_search - method: POST - request: - payload: - query: - match: - name: test - response: - status: 200 - - synopsis: Search all workflow. - path: /_plugins/_flow_framework/workflow/_search - method: POST - request: - payload: - query: - match_all: {} - response: - status: 200 \ No newline at end of file diff --git a/tests/default/flow_framework/search_state.yaml b/tests/default/flow_framework/search_state.yaml deleted file mode 100644 index 130998e0b..000000000 --- a/tests/default/flow_framework/search_state.yaml +++ /dev/null @@ -1,31 +0,0 @@ -$schema: ../../../json_schemas/test_story.schema.yaml -description: Test flow_framework provision endpoints. -version: '>= 2.12' -prologues: - - path: /_plugins/_flow_framework/workflow - id: workflow - method: POST - parameters: - use_case: semantic_search_with_cohere_embedding_query_enricher - request: - payload: - create_connector.credential.key: test_api_key - output: - workflow_id: payload.workflow_id -epilogues: - - path: /_plugins/_flow_framework/workflow/{workflow_id} - method: DELETE - status: [200, 404] - parameters: - workflow_id: ${workflow.workflow_id} -chapters: - - synopsis: Search workflow state. - path: /_plugins/_flow_framework/workflow/state/_search - method: POST - request: - payload: - query: - match: - state: NOT_STARTED - response: - status: 200 \ No newline at end of file diff --git a/tests/default/flow_framework/deprovision.yaml b/tests/default/flow_framework/workflow/deprovision.yaml similarity index 95% rename from tests/default/flow_framework/deprovision.yaml rename to tests/default/flow_framework/workflow/deprovision.yaml index 83ac14cba..51b72d148 100644 --- a/tests/default/flow_framework/deprovision.yaml +++ b/tests/default/flow_framework/workflow/deprovision.yaml @@ -1,4 +1,4 @@ -$schema: ../../../json_schemas/test_story.schema.yaml +$schema: ../../../../json_schemas/test_story.schema.yaml description: Test flow_framework provision endpoints. version: '>= 2.12' prologues: diff --git a/tests/default/flow_framework/provision.yaml b/tests/default/flow_framework/workflow/provision.yaml similarity index 94% rename from tests/default/flow_framework/provision.yaml rename to tests/default/flow_framework/workflow/provision.yaml index 37da72073..dab624954 100644 --- a/tests/default/flow_framework/provision.yaml +++ b/tests/default/flow_framework/workflow/provision.yaml @@ -1,4 +1,4 @@ -$schema: ../../../json_schemas/test_story.schema.yaml +$schema: ../../../../json_schemas/test_story.schema.yaml description: Test flow_framework provision endpoints. version: '>= 2.12' prologues: diff --git a/tests/default/flow_framework/workflow/search.yaml b/tests/default/flow_framework/workflow/search.yaml index 0b3816364..f2f1c6b32 100644 --- a/tests/default/flow_framework/workflow/search.yaml +++ b/tests/default/flow_framework/workflow/search.yaml @@ -1,36 +1,40 @@ $schema: ../../../../json_schemas/test_story.schema.yaml -description: Test flow_framework workflow search endpoints. +description: Test flow_framework provision endpoints. version: '>= 2.12' +prologues: + - path: /_plugins/_flow_framework/workflow + id: workflow + method: POST + parameters: + use_case: semantic_search_with_cohere_embedding_query_enricher + request: + payload: + create_connector.credential.key: test_api_key + output: + workflow_id: payload.workflow_id epilogues: - path: /_plugins/_flow_framework/workflow/{workflow_id} method: DELETE status: [200, 404] parameters: workflow_id: ${workflow.workflow_id} -prologues: - - id: workflow - path: /_plugins/_flow_framework/workflow +chapters: + - synopsis: Search workflow match the name. + path: /_plugins/_flow_framework/workflow/_search method: POST request: payload: - name: Test Workflow - status: [201] - output: - workflow_id: payload.workflow_id -chapters: - - synopsis: Search for a workflow. + query: + match: + name: test + response: + status: 200 + - synopsis: Search all workflow. path: /_plugins/_flow_framework/workflow/_search - method: GET + method: POST request: payload: query: match_all: {} response: - status: 200 - payload: - hits: - hits: - - _index: .plugins-flow-framework-templates - _source: - name: Test Workflow - + status: 200 \ No newline at end of file diff --git a/tests/default/flow_framework/status.yaml b/tests/default/flow_framework/workflow/status.yaml similarity index 94% rename from tests/default/flow_framework/status.yaml rename to tests/default/flow_framework/workflow/status.yaml index 7f07f4d9c..0ba206d27 100644 --- a/tests/default/flow_framework/status.yaml +++ b/tests/default/flow_framework/workflow/status.yaml @@ -1,4 +1,4 @@ -$schema: ../../../json_schemas/test_story.schema.yaml +$schema: ../../../../json_schemas/test_story.schema.yaml description: Test flow_framework provision endpoints. version: '>= 2.12' prologues: diff --git a/tests/default/flow_framework/steps.yaml b/tests/default/flow_framework/workflow/steps.yaml similarity index 94% rename from tests/default/flow_framework/steps.yaml rename to tests/default/flow_framework/workflow/steps.yaml index 24ef624c9..774b67f74 100644 --- a/tests/default/flow_framework/steps.yaml +++ b/tests/default/flow_framework/workflow/steps.yaml @@ -1,4 +1,4 @@ -$schema: ../../../json_schemas/test_story.schema.yaml +$schema: ../../../../json_schemas/test_story.schema.yaml description: Test flow_framework provision endpoints. version: '>= 2.12' prologues: diff --git a/tests/default/flow_framework/template.yaml b/tests/default/flow_framework/workflow/template.yaml similarity index 98% rename from tests/default/flow_framework/template.yaml rename to tests/default/flow_framework/workflow/template.yaml index 45334166b..6e1c698a5 100644 --- a/tests/default/flow_framework/template.yaml +++ b/tests/default/flow_framework/workflow/template.yaml @@ -1,5 +1,8 @@ -$schema: ../../../json_schemas/test_story.schema.yaml +$schema: ../../../../json_schemas/test_story.schema.yaml description: Test flow_framework endpoints using a sample template. +warnings: + invalid-path-detected: false + multiple-paths-detected: false version: '>= 2.12' epilogues: - path: /_plugins/_flow_framework/workflow/{workflow_id} @@ -7,8 +10,6 @@ epilogues: status: [200, 404] parameters: workflow_id: ${workflow.workflow_id} -warnings: - multiple-paths-detected: false chapters: - synopsis: Create workflow with openAI model. id: workflow diff --git a/tests/default/indices/cache.yaml b/tests/default/indices/cache/clear.yaml similarity index 95% rename from tests/default/indices/cache.yaml rename to tests/default/indices/cache/clear.yaml index f6f731719..bb7dfc49a 100644 --- a/tests/default/indices/cache.yaml +++ b/tests/default/indices/cache/clear.yaml @@ -1,4 +1,4 @@ -$schema: ../../../json_schemas/test_story.schema.yaml +$schema: ../../../../json_schemas/test_story.schema.yaml description: Test index clear cache. distributions: diff --git a/tests/default/indices/component_template.yaml b/tests/default/indices/component_template.yaml index 389db0e3c..6fb4f7a93 100644 --- a/tests/default/indices/component_template.yaml +++ b/tests/default/indices/component_template.yaml @@ -3,6 +3,7 @@ $schema: ../../../json_schemas/test_story.schema.yaml description: Test component templates. warnings: multiple-paths-detected: false + invalid-path-detected: false epilogues: - path: /logs-2020-01-01 method: DELETE diff --git a/tests/default/indices/mapping/index.yaml b/tests/default/indices/mapping/mapping.yaml similarity index 100% rename from tests/default/indices/mapping/index.yaml rename to tests/default/indices/mapping/mapping.yaml diff --git a/tests/default/indices/msearch/index.yaml b/tests/default/indices/msearch/msearch.yaml similarity index 100% rename from tests/default/indices/msearch/index.yaml rename to tests/default/indices/msearch/msearch.yaml diff --git a/tests/default/indices/resolve.yaml b/tests/default/indices/resolve/index.yaml similarity index 87% rename from tests/default/indices/resolve.yaml rename to tests/default/indices/resolve/index.yaml index 1e495be97..34e17b88c 100644 --- a/tests/default/indices/resolve.yaml +++ b/tests/default/indices/resolve/index.yaml @@ -1,4 +1,4 @@ -$schema: ../../../json_schemas/test_story.schema.yaml +$schema: ../../../../json_schemas/test_story.schema.yaml description: Tests to see if the specified index exits using the `_resolve` endpoint. prologues: diff --git a/tests/default/ingest/pipeline/text_embedding.yaml b/tests/default/ingest/pipeline/text_embedding.yaml index fe70aee21..48b6bb4c5 100644 --- a/tests/default/ingest/pipeline/text_embedding.yaml +++ b/tests/default/ingest/pipeline/text_embedding.yaml @@ -1,6 +1,8 @@ $schema: ../../../../json_schemas/test_story.schema.yaml description: Test the creation of an ingest pipeline with a text embedding processor. +warnings: + invalid-path-detected: false epilogues: - path: /_ingest/pipeline/books_pipeline method: DELETE diff --git a/tests/default/nodes/info.yaml b/tests/default/nodes/nodes.yaml similarity index 100% rename from tests/default/nodes/info.yaml rename to tests/default/nodes/nodes.yaml diff --git a/tests/default/ppl/query.yaml b/tests/default/ppl/ppl.yaml similarity index 100% rename from tests/default/ppl/query.yaml rename to tests/default/ppl/ppl.yaml diff --git a/tests/default/rollups/jobs.yaml b/tests/default/rollup/jobs.yaml similarity index 100% rename from tests/default/rollups/jobs.yaml rename to tests/default/rollup/jobs.yaml diff --git a/tests/default/rollups/jobs/explain.yaml b/tests/default/rollup/jobs/explain.yaml similarity index 100% rename from tests/default/rollups/jobs/explain.yaml rename to tests/default/rollup/jobs/explain.yaml diff --git a/tests/default/rollups/jobs/start.yaml b/tests/default/rollup/jobs/start.yaml similarity index 100% rename from tests/default/rollups/jobs/start.yaml rename to tests/default/rollup/jobs/start.yaml diff --git a/tests/default/rollups/jobs/stop.yaml b/tests/default/rollup/jobs/stop.yaml similarity index 100% rename from tests/default/rollups/jobs/stop.yaml rename to tests/default/rollup/jobs/stop.yaml diff --git a/tests/default/security/sslinfo.yaml b/tests/default/security/sslinfo.yaml index acb164fc1..9d84b7ca9 100644 --- a/tests/default/security/sslinfo.yaml +++ b/tests/default/security/sslinfo.yaml @@ -1,6 +1,8 @@ $schema: ../../../json_schemas/test_story.schema.yaml description: Test sslinfo endpoint. +warnings: + invalid-path-detected: false chapters: - synopsis: Get ssl info. path: /_opendistro/_security/sslinfo diff --git a/tests/default/sql/settings.yaml b/tests/default/sql/query/settings.yaml similarity index 94% rename from tests/default/sql/settings.yaml rename to tests/default/sql/query/settings.yaml index 4de2b1158..02e5a7b71 100644 --- a/tests/default/sql/settings.yaml +++ b/tests/default/sql/query/settings.yaml @@ -1,4 +1,4 @@ -$schema: ../../../json_schemas/test_story.schema.yaml +$schema: ../../../../json_schemas/test_story.schema.yaml description: Test updating SQL settings in OS cluster. diff --git a/tests/default/sql/query.yaml b/tests/default/sql/sql.yaml similarity index 100% rename from tests/default/sql/query.yaml rename to tests/default/sql/sql.yaml diff --git a/tests/default/transforms/preview.yaml b/tests/default/transforms/transform/preview.yaml similarity index 94% rename from tests/default/transforms/preview.yaml rename to tests/default/transforms/transform/preview.yaml index 1624e78d3..ccf44a9d7 100644 --- a/tests/default/transforms/preview.yaml +++ b/tests/default/transforms/transform/preview.yaml @@ -1,4 +1,4 @@ -$schema: ../../../json_schemas/test_story.schema.yaml +$schema: ../../../../json_schemas/test_story.schema.yaml description: Test previewing a transform job's results. prologues: diff --git a/tests/plugins/analysis/indices/mapping/icu_collation_keyword.yaml b/tests/plugins/analysis/indices/mapping/icu_collation_keyword.yaml index 3fa7dd601..c32c991cb 100644 --- a/tests/plugins/analysis/indices/mapping/icu_collation_keyword.yaml +++ b/tests/plugins/analysis/indices/mapping/icu_collation_keyword.yaml @@ -2,6 +2,7 @@ $schema: ../../../../../json_schemas/test_story.schema.yaml description: Test mappings endpoints. warnings: + invalid-path-detected: false multiple-paths-detected: false prologues: [] epilogues: diff --git a/tests/plugins/ml/ml/models.yaml b/tests/plugins/ml/ml/models.yaml index 7258c5d07..e3663048b 100644 --- a/tests/plugins/ml/ml/models.yaml +++ b/tests/plugins/ml/ml/models.yaml @@ -6,11 +6,8 @@ distributions: - amazon-managed - amazon-serverless version: '>= 2.11' -warnings: - multiple-paths-detected: false -chapters: - - synopsis: Register model. - id: register_model +prologues: + - id: register_model path: /_plugins/_ml/models/_register method: POST request: @@ -22,8 +19,7 @@ chapters: status: 200 output: task_id: payload.task_id - - synopsis: Wait to get completed task. - id: get_completed_task + - id: get_completed_task path: /_plugins/_ml/tasks/{task_id} method: GET parameters: @@ -37,6 +33,7 @@ chapters: retry: count: 5 wait: 30000 +chapters: - synopsis: Search model. path: /_plugins/_ml/models/_search method: GET diff --git a/tests/plugins/ml/ml/stats.yaml b/tests/plugins/ml/ml/stats.yaml index 5d367c487..a6025b52b 100644 --- a/tests/plugins/ml/ml/stats.yaml +++ b/tests/plugins/ml/ml/stats.yaml @@ -61,7 +61,7 @@ chapters: response: status: 200 - synopsis: Get all stats for a specific node. - path: /_plugins/_ml/{node_id}/stats/ + path: /_plugins/_ml/{node_id}/stats method: GET parameters: node_id: ${get_completed_task.node_id} diff --git a/tests/plugins/ml/ml/tasks.yaml b/tests/plugins/ml/ml/tasks.yaml index 542ea3468..02f3275f2 100644 --- a/tests/plugins/ml/ml/tasks.yaml +++ b/tests/plugins/ml/ml/tasks.yaml @@ -4,9 +4,8 @@ description: Test the creation of tasks. version: '>= 2.11' warnings: multiple-paths-detected: false -chapters: - - synopsis: Register model. - id: register_model +prologues: + - id: register_model path: /_plugins/_ml/models/_register method: POST request: @@ -18,8 +17,8 @@ chapters: status: 200 output: task_id: payload.task_id +chapters: - synopsis: Delete task. - id: delete_task path: /_plugins/_ml/tasks/{task_id} method: DELETE parameters: diff --git a/tests/plugins/ml/ml/train_and_predict.yaml b/tests/plugins/ml/ml/train_predict.yaml similarity index 100% rename from tests/plugins/ml/ml/train_and_predict.yaml rename to tests/plugins/ml/ml/train_predict.yaml diff --git a/tests/plugins/replication/stats.yaml b/tests/plugins/replication/stats.yaml index 57f85baee..fbae9d44f 100644 --- a/tests/plugins/replication/stats.yaml +++ b/tests/plugins/replication/stats.yaml @@ -3,6 +3,7 @@ $schema: ../../../json_schemas/test_story.schema.yaml description: Test replication stats. version: '>= 1.1' warnings: + invalid-path-detected: false multiple-paths-detected: false prologues: - path: /_bulk diff --git a/tests/remote_store/remote_store/restore.yaml b/tests/remote_store/remotestore/restore.yaml similarity index 100% rename from tests/remote_store/remote_store/restore.yaml rename to tests/remote_store/remotestore/restore.yaml