From e0bebb38b6ac189f2e23cf855a5d24dba17d8235 Mon Sep 17 00:00:00 2001 From: dblock Date: Mon, 10 Jun 2024 15:17:22 -0400 Subject: [PATCH] Reorganized tests to match spec layout. Signed-off-by: dblock --- tests/{ => _core}/index.yaml | 2 +- tests/{ => _core}/info.yaml | 2 +- .../pipeline/_common/processors.yaml} | 15 +++++++-------- 3 files changed, 9 insertions(+), 10 deletions(-) rename tests/{ => _core}/index.yaml (97%) rename tests/{ => _core}/info.yaml (85%) rename tests/{text_embedding_processor.yaml => _ingest/pipeline/_common/processors.yaml} (57%) diff --git a/tests/index.yaml b/tests/_core/index.yaml similarity index 97% rename from tests/index.yaml rename to tests/_core/index.yaml index a2e955ad6..3873b0230 100644 --- a/tests/index.yaml +++ b/tests/_core/index.yaml @@ -1,4 +1,4 @@ -$schema: ../json_schemas/test_story.schema.yaml +$schema: ../../json_schemas/test_story.schema.yaml skip: false description: Test endpoints relevant the lifecycle of an index, from creation to deletion. diff --git a/tests/info.yaml b/tests/_core/info.yaml similarity index 85% rename from tests/info.yaml rename to tests/_core/info.yaml index 367ce3cd9..5a8e14f07 100644 --- a/tests/info.yaml +++ b/tests/_core/info.yaml @@ -1,5 +1,5 @@ -$schema: ../json_schemas/test_story.schema.yaml +$schema: ../../json_schemas/test_story.schema.yaml skip: false description: Test root endpoint. diff --git a/tests/text_embedding_processor.yaml b/tests/_ingest/pipeline/_common/processors.yaml similarity index 57% rename from tests/text_embedding_processor.yaml rename to tests/_ingest/pipeline/_common/processors.yaml index ac1a98550..214a27cb1 100644 --- a/tests/text_embedding_processor.yaml +++ b/tests/_ingest/pipeline/_common/processors.yaml @@ -1,32 +1,31 @@ -$schema: ../json_schemas/test_story.schema.yaml +$schema: ../../../../json_schemas/test_story.schema.yaml skip: false description: | - This test story checks that we can create an ingest pipeline with a text - embedding processor + Test the creation of an ingest pipeline with a text embedding processor. epilogues: - path: /_ingest/pipeline/books_pipeline method: DELETE status: [200, 404] chapters: - - synopsis: Create ingest pipeline for text embedding + - synopsis: Create ingest pipeline for text embedding. path: /_ingest/pipeline/{id} method: PUT parameters: id: books_pipeline request_body: payload: - description: "Extracts text from field and embeds it" + description: Extracts text from field and embeds it. processors: - text_embedding: - model_id: "text-embedding-model" + model_id: text-embedding-model field_map: - text: "passage_embedding" + text: passage_embedding response: status: 200 payload: acknowledged: true - - synopsis: Query created pipeline + - synopsis: Query created pipeline. path: /_ingest/pipeline/{id} method: GET parameters: